OFFSET
0,3
COMMENTS
Numbers such that no run of 1-bits has length >= A000040(1 + the total number of 0-bits anywhere right of that run in the binary expansion of n).
Indexing starts from zero as a(0) = 0 is a special case in this sequence.
LINKS
EXAMPLE
60 ("111100" in binary, A007088) is present as 4 < prime(2+1) = 5.
PROG
(Scheme, with Antti Karttunen's IntSeq-library)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Sep 26 2016
STATUS
approved