OFFSET
0,2
FORMULA
EXAMPLE
a(6) = LCM(30030,5760) = 5765760.
MAPLE
[seq(ilcm(product(ithprime(k), k=1..m), product(ithprime(k)-1, k=1..m)), m=1..20)];
MATHEMATICA
LCM[#, EulerPhi[#]]&/@Rest[FoldList[Times, 1, Prime[Range[15]]]] (* Harvey P. Dale, Nov 29 2011 *)
PROG
(PARI) P(n) = prod(k=1, n, prime(k)); \\ A002110
a(n) = my(p= P(n)); lcm(p, eulerphi(p)); \\ Michel Marcus, Apr 27 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 05 2000
EXTENSIONS
a(0)=1 inserted by Jamie Morken, Apr 27 2022
STATUS
approved