OFFSET
0,3
COMMENTS
Is it ever impossible to extend the sequence -- meaning there is no number less than a(n-1)+n which has not appeared?
After 10^11 terms, the smallest number which has not appeared is 609790506.
LINKS
Benjamin Chaffin, Table of n, a(n) for n = 0..10000
EXAMPLE
a(23) = 18. To get a(24) we try 18-24, but that is negative; so we try 18+24 = 42, but 42 has already appeared; so we try 18+24-1, but 41 has also already appeared; so we try 18+24-2. 40 is positive and has not yet appeared, and so a(24) = 40.
CROSSREFS
KEYWORD
nonn
AUTHOR
Benjamin Chaffin, Oct 19 2016
STATUS
approved