OFFSET
1,1
COMMENTS
Sequence A249331 lists the numbers not in this sequence, i.e., 1, 5, 9, 15, 30, 40, 51, 76, 90, 106, 123, 141, 180, 201, 223, 246, 270, 295, ... .
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..964
E. Angelini, Sum of the a(n) first terms of S is not in S, SeqFan list, Oct 23 2014
EXAMPLE
The number 1 cannot appear in the sequence, since the sum of the first n=1 terms equals a(1) which is necessarily in the sequence. (Similarly for 0.)
So the smallest number that can be in the sequence is a(1)=2.
There is no (further) restriction on a(2) since 2+a(2) will always be a number not in the set {2, a(2)}. Thus the next larger number, a(2)=3, is also in this list.
The number a(3)=4 is also allowed, but because of a(1)=2 the number a(1)+a(2)=5 is excluded, as well as the number a(1)+a(2)+a(3)=2+3+4=9 because of a(2)=3.
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric Angelini and M. F. Hasler, Oct 24 2014
STATUS
approved