OFFSET
1,2
EXAMPLE
a(5) = 30 because given a(4) = 6: lcm(5, 6) / gcd(5, 6) = 30 / 1 = 30.
MATHEMATICA
k = 1; Print[k]; Do[k = LCM[n, k] / GCD[n, k]; Print[k], {n, 2, 30}] (* Ryan Propper, Jun 19 2005 *)
nxt[{n_, a_}]:={n+1, LCM[n+1, a]/GCD[n+1, a]}; Transpose[NestList[nxt, {1, 1}, 40]] [[2]] (* Harvey P. Dale, Mar 07 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Oct 30 2002
EXTENSIONS
Corrected and extended by Ryan Propper, Jun 19 2005
STATUS
approved