login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A123090
a(1)=1. For n>=2, a(n) = a(n-1) + (largest divisor of n which occurs among the earlier terms of the sequence).
2
1, 2, 3, 5, 10, 13, 14, 16, 19, 29, 30, 33, 46, 60, 65, 81, 82, 85, 104, 114, 117, 119, 120, 123, 128, 141, 144, 158, 187, 217, 218, 234, 267, 269, 274, 277, 278, 297, 310, 320, 321, 335, 336, 338, 343, 389, 390, 406, 407, 417, 420, 433, 434, 437, 442, 456, 475
OFFSET
1,2
LINKS
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
Sequence in context: A252353 A241167 A083571 * A129281 A289536 A022426
KEYWORD
nonn
AUTHOR
Leroy Quet, Sep 27 2006
EXTENSIONS
Extended by Ray Chandler, Sep 30 2006
STATUS
approved