OFFSET
1,2
COMMENTS
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
PROG
(PARI) a(n) = my(x=0); forstep(k=n, 1, -1, x = eulerphi(prime(k)+x)); x; \\ Michel Marcus, Jan 22 2025
(Python)
from functools import reduce
from sympy import totient, primerange
def A380354(n): return totient(reduce(lambda x, y:totient(x)+y, tuple(reversed(tuple(primerange(prime(n)+1)))))) # Chai Wah Wu, Jan 23 2025
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Paolo Xausa, Jan 22 2025
STATUS
approved