OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
EXAMPLE
a(16) = 165, 17 < 165, so a(17) = (least integer multiple of 165/17) = 165.
MATHEMATICA
FoldList[If[#2 > #1, #1*#2, Numerator[#1/#2]] &, 1, Range[2, 56]] (* Ivan Neretin, Mar 21 2018 *)
PROG
(PARI) q=1; for(n=2, 57, print1(q, ", "); q=if(n>q, q*n, q/gcd(q, n)))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Apr 29 2004
EXTENSIONS
Edited by Klaus Brockhaus, May 02 2004
STATUS
approved