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