OFFSET
1,1
COMMENTS
From Jianing Song, Sep 05 2018: (Start)
Numbers in A047713 that are congruent to 1 mod 4. Most terms are congruent to 1 mod 8. For terms congruent to 5 mod 8, see A244626.
Also composite k == 1 (mod 4) such that (-4)^((k-1)/4) == 1 (mod k). Note that this is satisfied by all primes == 1 (mod 4), see A318898. (End)
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..889 from Jianing Song using data from A047713)
MATHEMATICA
Select[1 + 4*Range[100000], PrimeQ[#] == False && PowerMod[1 + I, #, #] == 1 + I &]
PROG
(PARI) forstep(n=5, 10^5, 4, if(Mod(2, n)^((n-1)/2)==kronecker(2, n) && !isprime(n), print1(n, ", "))) \\ Jianing Song, Sep 06 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
José María Grau Ribas, Mar 21 2016
STATUS
approved