OFFSET
1,3
FORMULA
a(1) = 1; a(n) = Sum_{k=1..n-1} gcd(n, k) * a(gcd(n, k)).
MATHEMATICA
a[1] = 1; a[n_] := Sum[If[d < n, EulerPhi[n/d] d a[d], 0], {d, Divisors[n]}]; Table[a[n], {n, 1, 55}]
a[1] = 1; a[n_] := Sum[GCD[n, k] a[GCD[n, k]], {k, 1, n - 1}]; Table[a[n], {n, 1, 55}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 23 2020
STATUS
approved