OFFSET
1,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..387
FORMULA
a(n) = Sum_{j=1..n} Sum_{d|j} n^(d-1) * mu(j/d).
a(n) = A143327(n,n).
a(n) = Sum_{j=1..n} A143325(j,n).
a(n) = A143326(n,n) / n.
a(n) = [x^n] (1/(1 - x)) * Sum_{k>=1} mu(k) * x^k / (1 - n*x^k). - Ilya Gutkovskiy, Feb 16 2020
MAPLE
b:= (n, k)-> add(`if`(d=n, k^(n-1), -b(d, k)), d=numtheory[divisors](n)):
g:= proc(n, k) option remember; b(n, k)+`if`(n<2, 0, g(n-1, k)) end:
a:= n-> g(n$2):
seq(a(n), n=1..23);
MATHEMATICA
a[n_] := Sum[n^(d-1)*MoebiusMu[j/d], {j, 1, n}, {d, Divisors[j]}];
Table[a[n], {n, 1, 20}] (* Jean-François Alcover, Oct 25 2022, after A143327 *)
PROG
(PARI) a(n) = sum(j=1, n, sumdiv(j, d, n^(d-1) * moebius(j/d))); \\ Michel Marcus, Feb 16 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Oct 05 2018
STATUS
approved