OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MAPLE
T:=n->n*(n+1)/2: a[1]:=1: for n from 1 to 28 do if type(a[n]/T(n+1), integer)=true then a[n+1]:=a[n]/T(n+1) else a[n+1]:=a[n]*T(n+1) fi od: seq(a[n], n=1..29); # Emeric Deutsch, Aug 11 2005
MATHEMATICA
nxt[{n_, a_}]:=Module[{tr=((n+1)(n+2))/2}, {n+1, If[Divisible[ a, tr], a/tr, a*tr]}]; Transpose[NestList[nxt, {1, 1}, 30]][[2]] (* Harvey P. Dale, Aug 22 2014 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Aug 05 2005
EXTENSIONS
More terms from Emeric Deutsch, Aug 11 2005
STATUS
approved