A273871 Primes p such that (4^(p-1)-1) == 0 mod ((p-1)^2+1).
3, 5, 17, 257, 8209, 59141, 65537, 649801
Offset: 1
Examples
5 is a term because (4^(5-1)-1) == 0 mod ((5-1)^2+1); 255 == 0 mod 17.
Programs
-
Magma
[n: n in [1..100000] | IsPrime(n) and (4^(n-1)-1) mod ((n-1)^2+1) eq 0];
-
PARI
is(n)=isprime(n) && Mod(4,(n-1)^2+1)^(n-1)==1 \\ Charles R Greathouse IV, Jun 08 2016
Comments