OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..973
FORMULA
a(n) = lcm(n, Sum_{k=1..n-1} a(k)), with a(1) = 1. - Michel Marcus, Nov 11 2020
MAPLE
a[1] := 1:a[2] := 2:s := 3:for n from 3 to 50 do a[n] := lcm(s, n):s := s+a[n]:od:seq(a[k], k=1..50);
MATHEMATICA
nxt[{n_, a_, t_}]:={n+1, LCM[n+1, t], t+LCM[n+1, t]}; NestList[nxt, {1, 1, 1}, 30][[All, 2]] (* Harvey P. Dale, Dec 06 2018 *)
PROG
(PARI) lista(nn) = my(va=vector(nn)); va[1]=1; for (n=2, nn, va[n] = lcm(n, vecsum(va))); va; \\ Michel Marcus, Nov 11 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 31 2002
EXTENSIONS
Corrected and extended by Sascha Kurz, Feb 12 2003
STATUS
approved