OFFSET
1,1
COMMENTS
The multiplicative order of 4 modulo a(n) is A385227(n).
Primes p such that neither ord(2,p) nor ord(-2,p) is divisible by 4, where ord(a,m) is the multiplicative order of a modulo m. (Note that we have either (a) ord(2,p) = ord(-2,p) and both are even; (b) ord(-2,p) = 2*ord(2,p), ord(2,p) is odd, ord(-2,p) == 2 (mod 4); or (c) ord(2,p) = 2*ord(-2,p), ord(-2,p) is odd, ord(2,p) == 2 (mod 4)).
Contains all primes congruent to 3 modulo 4 (A002145).
Conjecture: this sequence has density 7/12 among the primes (see A014663).
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) isA385221(p) = isprime(p) && (p!=2) && znorder(Mod(4, p))%2
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Jun 22 2025
STATUS
approved
