login
A360510
a(n) = Product_{i=2..n} p(i) - p(n+1)^2, where p(i) is the i-th prime.
2
-8, -22, -34, -16, 986, 14726, 254894, 4849316, 111545594, 3234845654, 100280243696, 3710369065724, 152125131761756, 6541380665832806, 307444891294242896, 16294579238595018884, 961380175077106315814, 58644190679703485487146, 3929160775540133527934504, 278970415063349480483702366
OFFSET
1,1
COMMENTS
It is known that a(n) >= 0 for n >= 5.
Remember an empty product equals 1 by convention.
See A064819 for another version.
REFERENCES
S. W. Golomb, Elementary Problem E3137, Amer. Math. Monthly, Proposed 93 (1986), p. 215; Solution and Editorial Comments, 94 (1987), 883-884.
LINKS
MATHEMATICA
FoldList[Times, 1, Most[#]] - #^2 & [Prime[Range[2, 25]]] (* Paolo Xausa, Nov 06 2024 *)
PROG
(Python)
from sympy import prime, primorial
def A360510(n): return (primorial(n)>>1)-prime(n+1)**2 # Chai Wah Wu, Feb 24 2023
CROSSREFS
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Feb 24 2023
STATUS
approved