OFFSET
1,3
COMMENTS
Sum of first n terms of this sequence is A120878(n).
LINKS
Samuel B. Reid, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^16, showing first appearances of number k in red, and repeated appearances of number k in blue.
EXAMPLE
The sum of the first 9 terms of the sequence is 27. Among the first 9 terms of the sequence there are 4 terms (a(1)=1, a(2)=1, a(4)=3, a(6)=3) which divide 27.
So a(10) = 4.
MATHEMATICA
s={1}; Do[ ct=0; sm=Total[s]; Do[If[Divisible[sm, s[[j]]], ct++] , {j, n-1}]; AppendTo[s, ct], {n, 2, 86}]; s (* James C. McMahon, Oct 12 2024 *)
PROG
(PARI) {m=86; print1(a=1, ", "); v=[a]; for(n=2, m, a=0; q=sum(i=1, n-1, v[i]); for(j=1, n-1, if(q%v[j]==0, a++)); print1(a, ", "); v=concat(v, a))} \\ Klaus Brockhaus, Aug 16 2006
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jul 10 2006
EXTENSIONS
More terms from Klaus Brockhaus, Aug 16 2006
STATUS
approved