A264858 Integers k such that A007504(k) + 1 is a square.
0, 17, 539, 652, 6420, 350857847
Offset: 1
Examples
a(2) = 17 because A007504(17) + 1 = 440 + 1 = 441 is a square.
Programs
-
Mathematica
t = Accumulate[Prime@ Range@ 100000]; Prepend[Select[Range@ 7000, IntegerQ@ Sqrt[t[[#]] + 1] &], 0] (* Michael De Vlieger, Nov 29 2015, after Zak Seidov at A007504 *) Join[{0},Position[Accumulate[Prime[Range[6500]]]+1,?(IntegerQ[Sqrt[ #]]&)]] // Flatten (* _Harvey P. Dale, Feb 12 2018 *)
-
PARI
lista(nn) = { print1(0, ", "); s = 1; for(k=1, nn, s += prime(k); if(issquare(s), print1(k, ", ")););}
Extensions
a(6) from Jinyuan Wang, Aug 09 2023
Comments