login
A388072
a(n) = Kronecker symbol (-10/n).
31
0, 1, 0, -1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, -1, 0, 1, 0, -1, 0, 1, 0, 0, 0, -1, 0, -1, 0, -1, 0, -1, 0, 0, 0, 1, 0, -1, 0, 1, 0, -1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, -1, 0, 1, 0, -1, 0, 1, 0, 0, 0, -1, 0, -1, 0, -1, 0, -1, 0, 0, 0, 1, 0, -1, 0, 1, 0, -1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, -1, 0, 1, 0
OFFSET
0
COMMENTS
Also a(n) = (-40/n).
The Dirichlet character associated with the imaginary quadratic field Q(sqrt(-10)) (discriminant -40).
Note that (Sum_{i=0..39} i*a(i))/(-40) = 2 gives the class number of the imaginary quadratic field Q(sqrt(-10)).
LINKS
Eric Weisstein's World of Mathematics, Class Number.
Index entries for linear recurrences with constant coefficients, signature (0,0,0,1,0,0,0,-1,0,0,0,1,0,0,0,-1).
FORMULA
a(n) = A080891(n) * A188510(n).
Completely multiplicative with a(2) = a(5) = 0, a(p) = 1 for primes p == 1, 7, 9, 11, 13, 19, 23, 37 (mod 40), a(p) = -1 for primes p == 3, 17, 21, 27, 29, 31, 33, 39 (mod 40).
Sum_{n>=1} a(n)/n = -(Pi/40^(3/2)) * (Sum_{i=0..39} i*a(i)) = Pi/sqrt(10) (Dirichlet class number formula).
MATHEMATICA
a[n_] := KroneckerSymbol[-10, n]; Array[a, 101, 0] (* Amiram Eldar, Mar 25 2026 *)
PROG
(PARI) a(n) = kronecker(-10, n)
CROSSREFS
Moebius transform of A035180.
Cf. A293859 (primes not inert in Q(sqrt(-10))), A155488 (primes decomposing), A296925 (prime remaining inert).
Kronecker symbols {(D/n)} for negative fundamental discriminants D = -3..-47, -67, -163: A102283, A101455, A175629, A188510, A011582, A316569, A011585, A289741, A011586, A109017, A011588, A390614, A388073, this sequence, A011591, A011592, A011596, A011615.
Kronecker symbols {(D/n)} for positive fundamental discriminants D = 5..41: A080891, A091337, A110161, A011583, A011584, A322829, A322796, A390615, A011587, A391502, A011589, A391503, A011590.
Sequence in context: A284851 A289741 A185276 * A391503 A127266 A083923
KEYWORD
sign,easy,mult
AUTHOR
Jianing Song, Dec 11 2025
STATUS
approved