login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A120392 a(1) is the least k such that p(1) = (k*3)^2 + k*3 - 1 is prime, then a(n+1) is the least k such that (k*p(n))^2 + k*p(n) - 1 = p(n+1) is prime. 3
1, 1, 1, 1, 13, 1, 101, 130, 109, 418, 388, 876, 5011, 11529 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
The p(n) sequence starts 11, 131, 17291, 298995971, 15108361827832297751, ...
LINKS
EXAMPLE
a(1) = 1 as 3^2 + 3 - 1 = 11 = p(1) is prime.
MATHEMATICA
f[0] = {0, 3}; 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
Sequence in context: A278345 A277866 A278594 * A133371 A223515 A281092
KEYWORD
nonn
AUTHOR
Pierre CAMI, Jul 01 2006
EXTENSIONS
a(11)-a(14) from Amiram Eldar, Aug 28 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:51 EDT 2024. Contains 371967 sequences. (Running on oeis4.)