OFFSET
1,2
COMMENTS
a(n) is either 1, 4, 12, 36, 40, 48, 72, 88, 96, 110, 112, 116, or 156 (see Vela and Wolird). - Chai Wah Wu, Jan 22 2025
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Paolo Xausa)
Luis Palacios Vela and Christian Wolird, The Forestry of Adversarial Totient Iterations, arXiv:2501.10616 [math.NT], 2025.
MATHEMATICA
A380342[n_] := Fold[EulerPhi[#2 + #] &, 0, Range[n, 1, -1]^3];
Array[A380342, 100] (* Paolo Xausa, Jan 22 2025 *)
PROG
(PARI) a(n) = my(x=0); forstep(k=n, 1, -1, x = eulerphi(x+k^3)); x;
(Python)
from functools import reduce
from sympy import totient
def A380342(n): return reduce(lambda x, y:totient(x)+y, (m**3 for m in range(n, -1, -1))) # Chai Wah Wu, Jan 22 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Jan 22 2025
STATUS
approved