OFFSET
1,1
COMMENTS
The p(n) sequence starts 4691, 352106459, 123978958821625139, ...
EXAMPLE
a(1) = 4 as (4*17)^2 + 4*17 - 1 = 4691 = p(1) is prime.
MATHEMATICA
f[0] = {0, 17}; f[n_] := f[n] = Module[{k = 1, p = f[n - 1][[2]]}, While[! PrimeQ[(k*p)^2 + k*p - 1], k++]; {k, (k*p)^2 + k*p - 1}]; Table[f[n][[1]], {n, 1, 10}] (* Amiram Eldar, Aug 28 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Jul 01 2006
EXTENSIONS
a(9)-a(12) from Amiram Eldar, Aug 28 2021
STATUS
approved