OFFSET
1,1
COMMENTS
Note that if k is odd and b^((k-1)/2) == -(b/k) (mod k), then taking Jacobi symbol modulo k (which depends only on the remainder modulo k) yields (b/k)^((k-1)/2) = -(b/k), or (b/k)^((k+1)/2) = -1. This implies that (k+1)/2 is odd, so k == 1 (mod 4). Moreover, if k > 1, then (b/k) = -1 (see the Math Stack Exchange link below), so b^((k-1)/2) == 1 (mod k). In particular, this sequence is equivalent to "numbers k == 5 (mod 12) such that 3^((k-1)/2) == 1 (mod k)". [Comment rewritten by Jianing Song, Sep 07 2024]
LINKS
Jianing Song, Table of n, a(n) for n = 1..1000
Mathematics Stack Exchange, There are no a in Z and odd k > 1 such that (a/k) = 1 and a^((k-1)/2) == -1 (mod k).
EXAMPLE
1541 is a term because (3/1541) = -1, and 3^((1541-1)/2) == 1 (mod 1541).
MATHEMATICA
q[k_] := Mod[k, 12] == 5 && PowerMod[3, (k-1)/2, k] == 1; Select[Range[10^6], q] (* Amiram Eldar, Mar 21 2026 *)
PROG
(PARI) isA375490(k) = (k>1) && gcd(k, 6)==1 && Mod(3, k)^((k-1)/2)==-kronecker(3, k)
(PARI) isA375490(k) = k%12==5 && Mod(3, k)^((k-1)/2)==1 \\ Jianing Song, Sep 07 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Sep 01 2024
STATUS
approved
