OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
EXAMPLE
The largest divisor of 9 which occurs among the first 8 terms of the sequence is 3. So a(9) = a(8) + 3 = 19.
MATHEMATICA
f[l_List] := Block[{n = Length[l] + 1}, Append[l, Last[l] + Max[Select[l, Mod[n, # ] == 0 &]]]]; Nest[f, {1}, 60] (* Ray Chandler, Sep 30 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Sep 27 2006
EXTENSIONS
Extended by Ray Chandler, Sep 30 2006
STATUS
approved