OFFSET
1
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..100000
FORMULA
MATHEMATICA
f[p_, e_] := (-1)^e; f[3, e_] := 0; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Dec 30 2022 *)
PROG
(PARI) A359378(n) = { my(f = factor(n)); prod(k=1, #f~, (3!=f[k, 1])*((-1)^f[k, 2])); };
CROSSREFS
KEYWORD
sign,mult
AUTHOR
Antti Karttunen, Dec 29 2022
STATUS
approved