login
A380340
a(n) = phi(1 + phi(2 + phi(3 + ... phi(n)))).
6
1, 1, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
OFFSET
1,3
LINKS
Luis Palacios Vela and Christian Wolird, The Forestry of Adversarial Totient Iterations, arXiv:2501.10616 [math.NT], 2025.
FORMULA
a(n) = 4 for n >= 5 (see Vela and Wolird). - Paolo Xausa, Jan 22 2025
G.f.: x*(2*x^4+x^2+1)/(1-x). - Alois P. Heinz, Jan 22 2025
MATHEMATICA
PadRight[{1, 1, 2, 2}, 100, 4] (* Paolo Xausa, Jan 22 2025 *)
PROG
(PARI) a(n) = my(x=0); forstep(k=n, 1, -1, x = eulerphi(x+k)); x;
(Python)
from functools import reduce
from sympy import totient
def A380340(n): return reduce(lambda x, y:totient(x)+y, range(n, -1, -1)) # Chai Wah Wu, Jan 22 2025
KEYWORD
nonn,easy
AUTHOR
Michel Marcus, Jan 22 2025
STATUS
approved