OFFSET
1,2
MATHEMATICA
a[n_] := Sum[MoebiusMu[k] * k^k, {k, 1, n}]; Array[a, 20] (* Amiram Eldar, May 19 2021 *)
Accumulate[Table[MoebiusMu[n]n^n, {n, 20}]] (* Harvey P. Dale, Jan 25 2022 *)
PROG
(PARI) a(n) = sum(k=1, n, moebius(k)*k^k);
(Python)
from sympy import mobius
def A344430(n): return sum(mobius(k)*k**k for k in range(1, n+1)) # Chai Wah Wu, Apr 05 2023
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, May 19 2021
STATUS
approved