OFFSET
1,3
COMMENTS
Analogous to A053048.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = log_2(A053098(n)). - Amiram Eldar, Nov 19 2024
EXAMPLE
For n = 6, A002110(6) = 30030, the corresponding iteration chain is {30030, 5760, 1536, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1}. The first power of 2 is the 4th item after 3 iterations. It is 512, therefore a(6) = log_2(512) = 9 and a(6) + 1 = 10 iterations is needed to reach the stationary value = 1.
MATHEMATICA
a[n_] := Max@ IntegerExponent[ FixedPointList[ EulerPhi, Times @@ Prime[ Range@ n]], 2]; Array[a, 60] (* Giovanni Resta, May 30 2018 *)
PROG
(PARI) a(n) = {my(p = prod(i=1, n, prime(i))); while(p >> valuation(p, 2) > 1, p = eulerphi(p)); valuation(p, 2); } \\ Amiram Eldar, Nov 19 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Feb 28 2000
STATUS
approved