A260507 Primes p such that (2^p+1)^(p-1) == 1 (mod p^2).
2, 7, 179, 619, 17807
Offset: 1
Examples
2^7 + 1 = 129 and 129^6 == 1 (mod 7^2), so 7 is a term of the sequence.
Programs
-
Mathematica
Select[Prime@ Range@ 120, Mod[(2^# + 1)^(# - 1), #^2] == 1 &] (* Michael De Vlieger, Jul 29 2015 *)
-
PARI
forprime(p=2, , if(Mod(2^p+1, p^2)^(p-1)==1, print1(p, ", ")))
Comments