OFFSET
1,2
LINKS
Diana Mecum, Table of n, a(n) for n = 1..1128
EXAMPLE
The sum of the first 7 terms of the sequence is 63. The terms, from among the first 7 terms, which divide 63 are 1,3,9. So a(8) = a(7) + 1 + 3 + 9 = 32.
MATHEMATICA
a = {1}; For[n = 2, n < 60, n++, su = Plus @@ a; co = 0; For[i = 1, i < n, i++, If[IntegerQ[su/a[[i]]], co = co + a[[i]]]]; AppendTo[a, a[[ -1]] + co]]; a (* Stefan Steinerberger, Jun 27 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jun 26 2007
EXTENSIONS
More terms from Stefan Steinerberger, Jun 27 2007
STATUS
approved