OFFSET
1,3
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 1..495
FORMULA
a(1) = 1; a(n+1) = Sum_{k=1..n} a(n/gcd(n, k)).
a(n) = Sum_{k=1..n} a(gcd(n,k))*phi(gcd(n,k))/phi(n/gcd(n,k)). - Richard L. Ollerton, May 07 2021
MATHEMATICA
a[1] = 1; a[n_] := Sum[EulerPhi[d] a[d], {d, Divisors[n - 1]}]; Table[a[n], {n, 1, 25}]
a[1] = 1; a[n_] := a[n] = Sum[a[(n - 1)/GCD[n - 1, k]], {k, 1, n - 1}]; Table[a[n], {n, 1, 25}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 24 2020
STATUS
approved