OFFSET
1,1
COMMENTS
The sequence must start with a(1) = 2 in order to be infinite, and for any n > 1, a(n) <= Sum_{k=1..n-1} a(k).
This sequence has similarities with A160855.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Density plot of the first 100000000 terms
Rémy Sigrist, C++ program for A317788
EXAMPLE
The first terms, alongside the binary representations of a(n) and of Sum_{k=1..n-1} a(k), are:
n a(n) bin(a(n)) bin(Sum_{k=1..n-1} a(k))
-- ---- --------- ------------------------
1 2 10 0
2 1 1 10
3 3 11 11
4 6 110 110
5 4 100 1100
6 8 1000 10000
7 12 1100 11000
8 9 1001 100100
9 5 101 101101
10 18 10010 110010
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Aug 07 2018
STATUS
approved