OFFSET
1,3
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..640
Reinhard Zumkeller, Products of largest prime factors of numbers <= n.
MATHEMATICA
EulerPhi[FoldList[Times, Array[FactorInteger[#][[-1, 1]] &, 30]]] (* Amiram Eldar, Apr 08 2024 *)
PROG
(PARI) gpf(n) = my(f=factor(n)[, 1]); f[#f];
a(n) = eulerphi(prod(i=2, n, gpf(i))); \\ Michel Marcus, Nov 12 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 06 2005
EXTENSIONS
a(1) prepended by Michel Marcus, Nov 12 2023
STATUS
approved