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!)
A372769 Primes p such that 2^p == p (mod nextprime(p)). 0
3, 7, 3499, 554849 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(5) > 1.6*10^11, if it exists. - Amiram Eldar, May 13 2024
LINKS
EXAMPLE
3 is a term because 2^3 mod nextprime(3) = 8 mod 5 = 3;
7 is a term because 2^7 mod nextprime(7) = 128 mod 11 = 7;
3499 is a term because 2^3499 mod nextprime(3499) = 2^3499 mod 3511 = 3499;
554849 is a term because 2^554849 mod nextprime(554849) = 2^554849 mod 554887 = 554849.
MAPLE
R:= NULL: q:= 2:
while q < 10^6 do
p:= q: q:= nextprime(p);
if 2 &^ p mod q = p then R:= R, p fi
od:
R; # Robert Israel, May 13 2024
PROG
(Magma) [p: p in PrimesUpTo(10^6) | 2^p mod NextPrime(p) eq p];
(PARI) lista(pmax) = {my(p = 2); forprime(pnext = 3, pmax, if(Mod(2, pnext)^p == p, print1(p, ", ")); p = pnext); } \\ Amiram Eldar, May 13 2024
CROSSREFS
Sequence in context: A296351 A349007 A101006 * A306632 A083461 A137029
KEYWORD
nonn,more
AUTHOR
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 August 18 01:44 EDT 2024. Contains 375255 sequences. (Running on oeis4.)