OFFSET
1,4
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Rasa Steuding, Jörn Steuding, and László Tóth, A modified Möbius mu-function, Rendiconti del Circolo Matematico di Palermo, Vol. 60 (2011), pp. 13-21; arXiv preprint, arXiv:1109.4242 [math.NT], 2011.
MATHEMATICA
f[p_, e_] := (-1)^DigitCount[e, 2, 1]; imu[1] = 1; imu[n_] := Times @@ f @@@ FactorInteger[n]; Accumulate[Array[imu, 100]]
PROG
(PARI) imu(n) = vecprod(apply(x -> (-1)^hammingweight(x), factor(n)[, 2]));
lista(nmax) = {my(s = 0); for(k = 1, nmax, s+ = imu(k); print1(s, ", ")); }
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Amiram Eldar, Dec 23 2023
STATUS
approved