OFFSET
1,1
EXAMPLE
n=6, A002110(6)=30030; the corresponding iteration chain is {30030, 24270, 17806, 9238, 4798, 2400, 1760, 1120, 736, 384, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0}. Its length is 20, so a(6) = 20-1 = 19.
MATHEMATICA
Array[-1 + Length@ NestWhileList[# - EulerPhi@ # &, Product[Prime@ i, {i, #}], # > 0 &] &, 30] (* Michael De Vlieger, Nov 20 2017 *)
CROSSREFS
KEYWORD
more,nonn
AUTHOR
Labos Elemer, Feb 28 2000
EXTENSIONS
More terms from Thomas Baruchel, Oct 11 2003
More terms from Sean A. Irvine, Dec 15 2021
STATUS
approved