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!)
A181356 Smallest k such that 2^(2^n) - k is a safe prime. 4
5, 29, 269, 209, 1469, 15449, 36113, 38117, 1093337, 1942289, 10895177, 43644929, 364486013, 718982153, 2356107437 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
These numbers are useful as Diffie-Hellman moduli.
LINKS
EXAMPLE
a(2)=5 because 2^(2^2) - 5 = 11 is the largest safe prime less than 16.
PROG
(PARI) a(n) = {k = 1; pow2 = 2^(2^n); while (! (isprime(pow2 - k) && isprime((pow2 - k - 1)/2)), k +=2; ); k; } \\ Michel Marcus, Aug 16 2013
CROSSREFS
Sequence in context: A144015 A326986 A228387 * A177440 A292567 A355376
KEYWORD
nonn,more,hard
AUTHOR
Ken Takusagawa, Jan 27 2011
EXTENSIONS
a(14) from Ken Takusagawa, May 31 2011
a(15) from Gary Barnes, Oct 26 2011
a(16) from Mark Andreas, Jan 23 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 April 25 11:06 EDT 2024. Contains 371967 sequences. (Running on oeis4.)