close
login
A259502
Primes p such that nextprime(p + 1)^(p - 1) == 1 (mod p^2).
4
5, 47, 151051, 240727, 911135839
OFFSET
1,1
COMMENTS
Nextprime as defined in A007918.
These are Wieferich primes p to a prime base q where the difference between p and q has minimal or almost minimal (if the difference between p and the previous prime is smaller) value.
No further terms up to 10^9.
Contains the intersection of A355959 and A001359. Similarly, it contains primes from A355961, A355963, and A355965 whenever the distance to the next prime is 6, 8, and 10, respectively. - Max Alekseyev, Nov 05 2025
PROG
(PARI) forprime(p=1, , if(Mod(nextprime(p+1), p^2)^(p-1)==1, print1(p, ", ")))
KEYWORD
nonn,hard,more
AUTHOR
Felix Fröhlich, Nov 08 2015
STATUS
approved