OFFSET
1,2
COMMENTS
If n is a power of a prime p, then a(n) = n*(p-1). - Robert Israel, May 20 2015
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
For n=72, phi(72)=24, cototient(72)=48, a(72) = lcm(72,24,48) = 144.
For n=255, phi(255)=128, cototient(255)=127, a(255) = lcm(255,128,127) = 4145280.
MAPLE
seq(ilcm(n, numtheory:-phi(n), n - numtheory:-phi(n)), n=1..100); # Robert Israel, May 20 2015
MATHEMATICA
Table[LCM[n, EulerPhi[n], n - EulerPhi[n]], {n, 53}] (* Ivan Neretin, May 20 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jan 20 2000
STATUS
approved