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

A035334
a(n) = smallest number which is not the sum of exactly 1 or a(n-1) earlier terms.
2
1, 2, 5, 3, 14, 4, 39, 6, 119, 7, 352, 8, 706, 9, 2104, 10, 4209, 11, 8419, 12, 24552, 13, 49106, 15, 188594, 16, 524494, 17, 1933822, 18, 5605163, 19, 15069555, 20
OFFSET
1,2
LINKS
Sean A. Irvine, Java program (github)
EXAMPLE
a(5)=14 since all earlier numbers are either in list (1,2,3,5) or the sum of 3 terms from list (4=1+1+2, 6=2+2+2, ..., 12=2+5+5, 13=3+5+5).
CROSSREFS
Cf. A055456.
Sequence in context: A028415 A211306 A267101 * A243506 A341351 A285742
KEYWORD
nonn,more
EXTENSIONS
a(9)-a(16) from Henry Bottomley, May 19 2000
a(17)-a(26) from Larry Reeves (larryr(AT)acm.org), May 08 2001
a(27)-a(32) from Sean A. Irvine, Oct 07 2020
a(33)-a(34) from Michael S. Branicky, Dec 06 2024
STATUS
approved