OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
If n is a power of 2, then it is of largest exponent. If n=2400, then its phi-sequence is {2400,640,256,128,64,32,16,8,4,2,1}. The value of first power of 2 is 256. Thus a(2400)=256.
MATHEMATICA
Table[SelectFirst[NestWhileList[EulerPhi[#]&, n, #>1&], IntegerQ[Log[2, #]]&], {n, 120}] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 23 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved