OFFSET
1,1
COMMENTS
EXAMPLE
5 is a term because (4^(5-1)-1) == 0 mod ((5-1)^2+1); 255 == 0 mod 17.
PROG
(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
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jaroslav Krizek, Jun 01 2016
STATUS
approved