OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(12)=6 because the triangular numbers dividing 12 are 1,3 and 6.
MAPLE
a:=proc(n) local P, j; P:={}: for j from 1 to n do if type(n/(j*(j+1)/2), integer)=true then P:=P union {j*(j+1)/2} else P:=P: fi od: P[nops(P)]; end: seq(a(n), n=1..105); # Emeric Deutsch, Mar 01 2006
MATHEMATICA
With[{trnos=Accumulate[Range[100]]}, Table[Last[Select[trnos, Divisible[ n, #]&]], {n, 100}]] (* Harvey P. Dale, Nov 08 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Feb 23 2006
EXTENSIONS
More terms from Emeric Deutsch, Mar 01 2006
STATUS
approved