OFFSET
1,1
COMMENTS
In calculating terms of this sequence, use the convention that a(n)=0 for n <= 0.
Most terms in this sequence alternate between 2 and a large number. Such runs of terms are separated by 102 other terms, and each run is approximately twice as long as the previous.
LINKS
Nathan Fox, Table of n, a(n) for n = 1..10000
FORMULA
For nonnegative integers i, if 1 <= 2n + r <= 594*2^(i+1) - 2, then
a(594*2^i + 100 + 2n) = 2
a(594*2^i + 100 + 2n + 1) = 594*2^(i+1) - 2.
MAPLE
CROSSREFS
KEYWORD
nonn
AUTHOR
Nathan Fox, Mar 19 2017
STATUS
approved