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”).

A088936
a(1)=1, a(2)=2 then a(A(k))=a(k) where a(1),a(2),...,a(k) are k consecutive defined terms and A(k)=a(1)+a(2)+...+a(k). Fill in any undefined places with max{a(i)+1 : 1<=i<=k}.
4
1, 2, 2, 3, 2, 4, 4, 3, 4, 2, 5, 5, 5, 4, 5, 5, 5, 4, 5, 5, 3, 5, 5, 5, 4, 5, 2, 6, 6, 6, 6, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 5, 6, 6, 6, 4, 6, 6, 6, 6, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 5, 6, 6, 6, 4, 6, 6, 6, 6, 5, 6, 6, 6, 6, 5, 6, 6, 3, 6, 6, 6, 6, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 5, 6, 6, 6, 4, 6, 6, 6, 6, 5, 6, 2, 7
OFFSET
1,2
FORMULA
a(2+(1/2)*{sum(k=1, n, sum(i=0, k, i!)))=2
CROSSREFS
Cf. A088937(partial sums), A088938 (occurrences of 2's), A088939, A088940.
Sequence in context: A371745 A209700 A115980 * A328405 A049822 A140060
KEYWORD
nonn
AUTHOR
Benoit Cloitre and Claude Lenormand (claude.lenormand(AT)free.fr), Oct 25 2003
STATUS
approved