A380414 a(n) = phi(2 + phi(3 + phi(4 + ... + phi(A246655(n))))), where phi is Euler's totient function (A000010).
1, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 8, 6, 4, 8, 8, 4, 8, 4, 4, 4, 4, 8, 4, 4, 6, 4, 4, 4, 4, 4, 4, 4, 4, 6, 4, 4, 4, 4, 4, 8, 4, 4, 4, 6, 4, 8, 8, 4, 4, 8, 4, 8, 8, 4, 4, 8, 4, 4, 4, 4, 4, 4, 8, 6, 4, 8, 4, 4, 8, 4, 8, 8, 4, 4, 8, 4, 4, 6, 4, 4, 8, 4, 4, 4, 4, 4, 8
Offset: 1
Keywords
Links
- Paolo Xausa, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
With[{pp = Select[Range[1000], PrimePowerQ]}, Table[Fold[EulerPhi[#2 + #] &, 0, pp[[n ;; 1 ;; -1]]], {n, Length[pp]}]]
Comments