The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A102602 a(n) = least k such that ((m+1)^k)*(m^k-1) - 1 is prime, with m = 2n+1, or 0 if no such k exists. 0
1, 1, 1, 1, 4, 1, 1, 50, 1, 1, 2, 4, 1, 1, 3, 1, 1, 1, 2, 9, 1, 4, 1, 1, 9, 36, 1, 158, 45, 1, 1, 10, 4, 1, 1, 3, 1, 1, 3, 5, 2, 6, 2, 1, 3, 1, 2, 2, 4, 2, 1, 15, 1, 4, 8, 2, 2, 1, 1, 1, 14, 5, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
For n=64 (m=129), k > 2000 if k exists.
When k=1, the prime is of the form 4*n^2 + 4*n - 1 (or m^2 - 2).
LINKS
MATHEMATICA
f[n_] := Block[{k = 1}, While[ !PrimeQ[((n + 1)^k)*(n^k - 1) - 1], k++ ]; k]; Table[ f[n], {n, 3, 128, 2}] (* Robert G. Wilson v, Aug 06 2005 *)
PROG
(PARI) a(n) = {my(k = 1); my(m = 2*n+1); while(! isprime((m+1)^k*(m^k-1) - 1), k++; ); k; } \\ Michel Marcus, Feb 06 2014
CROSSREFS
Sequence in context: A228836 A176419 A299471 * A156951 A357052 A121066
KEYWORD
more,nonn
AUTHOR
Pierre CAMI, Jan 29 2005
EXTENSIONS
Definition and comment edited by Michel Marcus, Feb 06 2014
a(27)=1 inserted by Michel Marcus, Feb 06 2014
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 May 14 12:08 EDT 2024. Contains 372532 sequences. (Running on oeis4.)