OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = Sum[Nest[co, n, j], {j, 1, x[n]}]; co[n]=A051953[n], x[n] is the number of iterations
EXAMPLE
If n=130 and A051953 is iterated, we obtain {130,82,42,30,22,12,8,4,2,1,0}. The sum of these terms is 130 + 92 + 42 + 30 + 12 + 8 + 4 + 2 + 1 = 333, so a(130)=333.
MATHEMATICA
Array[Total@ Most@ NestWhileList[# - EulerPhi@ # &, #, # > 0 &] &, 66] (* Michael De Vlieger, Nov 20 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jan 14 2000
STATUS
approved