OFFSET
1,1
COMMENTS
Note that the primes congruent to 3 modulo 4 are precisely the rational primes in the ring of Gaussian integers.
Primes p == 3 (mod 4), p > 3 such that (1+-i)^((p^2-1)/24) == 1 (mod p). Note that p^2-1 is always divisible by 24 for primes p > 3.
Primes p = A002145(k) such that the multiplicative order of 1+-i modulo p (A385163(k)) divides (p^2-1)/24. Since A385165(k) = 4*ord(-4,p), this is also primes p == 3 (mod 4) such that 96*ord(-4,p) divides p^2-1, where ord(a,p) is the multiplicative order of a modulo p.
Sequence is infinite since it contains all primes congruent to 95 modulo 96.
Primes p == 3 (mod 4), p > 3 such that [1,-1;1,1]^((p^2-1)/24) or [1,1;-1,1]^((p^2-1)/24) == I_2 (mod p).
Since 96 divides p^2-1 for p being a term of this sequence, we must have p == 15 (mod 16).
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
EXAMPLE
31 is a term since (1+-i)^((31^2-1)/24) = (-4)^((31^2-1)/96) = 1048576 == 1 (mod 31). Indeed, the solutions to x^24 == 1+i (mod 31) are x == {17-6*i, 16+6*i, 1+8*i, -1+13*i, 9-5*i, 3+5*i} X {+-1, +-i} (mod 31).
MATHEMATICA
q[p_] := Mod[p, 16] == 15 && PowerMod[-4, (p^2 - 1)/96, p] == 1; Select[Prime[Range[1220]], q] (* Amiram Eldar, Mar 28 2026 *)
PROG
(PARI) isA385190(p) = isprime(p) && p%16==15 && Mod(-4, p)^((p^2-1)/96) == 1
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Jun 20 2025
STATUS
approved
