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!)
A229627 a(n) is the smallest prime q such that 2*q^k - 1 is prime for k = 1, 2, ..., n. 2
2, 2, 3, 92581, 385939, 464938699, 24137752519, 1095265755949 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The prime number 2 in the definition is used because 2 is the only prime p such that p*q^k - 1 can be prime for more than one prime q.
a(9) > 3*10^13. - Tyler Busby, Jan 14 2023
LINKS
MATHEMATICA
a[1]=2; a[n_]:=a[n]=(For[m=PrimePi[a[n-1]], Union[Table[PrimeQ[2 Prime[m]^k-1], {k, n}]]!={True}, m++]; Prime[m])]
PROG
(PARI) a(n)=forprime(m=2, , for(k=1, n, if(!ispseudoprime(2*m^k-1), next(2))); return(m)) \\ Charles R Greathouse IV, Oct 01 2013
CROSSREFS
Sequence in context: A359354 A006560 A088251 * A140839 A320299 A357969
KEYWORD
nonn,more
AUTHOR
Farideh Firoozbakht, Sep 27 2013
EXTENSIONS
a(7) from Giovanni Resta, Oct 01 2013
a(8) from Tyler Busby, Jan 06 2023
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 June 6 04:28 EDT 2024. Contains 373115 sequences. (Running on oeis4.)