OFFSET
1,1
COMMENTS
The multiplicative order of -4 modulo a(n) is A385230(n).
The sequence contains no primes congruent to 3 modulo 4 and all primes congruent to 5 modulo 8:
- If p is a term of this sequence, then -4 is a quadratic residue modulo p, so p == 1 (mod 4);
- For p == 1 (mod 4), we have (-4)^((p-1)/4) == (+-1+-i)^(p-1) == 1 (mod p), where i is a solution to i^2 == -1 (mod p).
Conjecture: this sequence has density 1/3 among the primes.
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime[Range[200]], OddQ[MultiplicativeOrder[-4, #]] &] (* Paolo Xausa, Jun 28 2025 *)
PROG
(PARI) isA385224(p) = isprime(p) && (p!=2) && znorder(Mod(-4, p))%2
CROSSREFS
Subsequence of A002144 (primes congruent to 1 modulo 4).
Contains A007521 (primes congruent to 5 or modulo 8) as a proper subsequence.
Cf. A385230 (the actual multiplicative orders).
Cf. other bases: A014663 (base 2), A385220 (base 3), A385221 (base 4), A385192 (base 5), A163183 (base -2), A385223 (base -3), this sequence (base -4), A385225 (base -5).
Cf. A133204.
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Jun 22 2025
STATUS
approved
