OFFSET
1
COMMENTS
Multiplicative because A102283 is.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..100000
FORMULA
a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, d<n} A102283(n/d) * a(d).
Multiplicative with a(p) = -Legendre(-3, p), and a(p^e) = 0 for e >= 2. - Amiram Eldar, Sep 16 2023
MATHEMATICA
f[p_, e_] := If[e == 1, -JacobiSymbol[-3, p], 0]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Sep 16 2023 *)
PROG
(PARI) A365428(n) = { my(f=factor(n)); prod(k=1, #f~, if(1<f[k, 2], 0, -kronecker(-3, f[k, 1]))); }; \\ (After Amiram Eldar's multiplicative formula).
(PARI)
A102283(n) = ([0, 1, -1][n%3 + 1]);
memoA365428 = Map();
CROSSREFS
KEYWORD
sign,mult
AUTHOR
Antti Karttunen, Sep 16 2023
STATUS
approved