OFFSET
0
COMMENTS
The Dirichlet character associated with the imaginary quadratic field Q(sqrt(-35)).
Note that (Sum_{i=0..35} i*a(i))/(-35) = 2 gives the class number of the imaginary quadratic field Q(sqrt(-35)).
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Class Number.
Index entries for linear recurrences with constant coefficients, signature (1,0,-1,1,0,-1,1,0,-1,1,0,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1).
FORMULA
Completely multiplicative with a(5) = a(7) = 0, a(p) = 1 for primes p == 1, 3, 4, 9, 11, 12, 13, 16, 17, 27, 29, 33 (mod 35), a(p) = -1 for primes p == 2, 6, 8, 18, 19, 22, 23, 24, 26, 31, 32, 34 (mod 35).
a(n) = (Product_{1<=k<=17} sin(2*k*Pi/35))/(Product_{1<=k<=17} sin(2*Pi/35)) = (sqrt(35)/2^17) * (Product_{1<=k<=17} sin(2*k*Pi/35)).
Sum_{n>=1} a(n)/n = -(Pi/35^(3/2)) * (Sum_{i=0..34} i*a(i)) = 2*Pi/sqrt(35) (Dirichlet class number formula).
MATHEMATICA
a[n_] := KroneckerSymbol[-35, n]; Array[a, 101, 0] (* Amiram Eldar, Mar 25 2026 *)
PROG
(PARI) a(n) = kronecker(-35, n)
CROSSREFS
Moebius transform of A035155.
Kronecker symbols {(D/n)} for negative fundamental discriminants D = -3..-47, -67, -163: A102283, A101455, A175629, A188510, A011582, A316569, A011585, A289741, A011586, A109017, A011588, this sequence, A388073, A388072, A011591, A011592, A011596, A011615.
KEYWORD
sign,easy,mult
AUTHOR
Jianing Song, Dec 11 2025
STATUS
approved
