A360511 a(n) = Product_{i=1..n} p(i) - p(n+1)^3, where p(i) is the i-th prime.
-25, -119, -313, -1121, 113, 25117, 503651, 9687523, 223068481, 6469663439, 200560439477, 7420738065889, 304250263447703, 13082761331566207, 614889782588342533, 32589158477189839351, 1922760350154212412089, 117288381359406970682507, 7858321551080267055521179, 557940830126698960967026373
Offset: 1
Keywords
References
- S. W. Golomb, Elementary Problem E3137, Amer. Math. Monthly, Proposed 93 (1986), p. 215; Solution and Editorial Comments, 94 (1987), 883-884.
Links
- Paolo Xausa, Table of n, a(n) for n = 1..300
Programs
-
Mathematica
FoldList[Times, Most[#]] - Rest[#]^3 & [Prime[Range[25]]] (* Paolo Xausa, Nov 06 2024 *)
-
Python
from sympy import prime, primorial def A360511(n): return primorial(n)-prime(n+1)**3 # Chai Wah Wu, Feb 24 2023
Comments