OFFSET
1,5
COMMENTS
A number n is called an early bird in base b, if its digits in base b appear in the concatenation of the digits in base b of the numbers from 1 to n-1.
LINKS
EXAMPLE
The number 1 is never an early bird, so a(1)=0.
The number 3 is an early bird only in base 2, so a(3)=1.
The number 7 is an early bird in bases 2, 3 and 5, so a(7)=3.
PROG
(C) See Link section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paul Tek, Sep 14 2013
STATUS
approved