login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A229123
a(n) gives the number of bases, b>1, in which n is an early bird.
1
0, 0, 1, 0, 2, 2, 3, 2, 3, 2, 4, 3, 6, 4, 5, 3, 7, 2, 7, 5, 7, 6, 7, 4, 9, 7, 6, 5, 8, 5, 10, 4, 8, 8, 7, 5, 13, 8, 8, 6, 12, 7, 12, 7, 8, 11, 11, 5, 13, 9, 12, 9, 11, 5, 13, 11, 13, 12, 12, 5, 17, 11, 11, 8, 13, 9, 14, 9, 12, 7, 14, 8, 18, 11, 9, 11, 13, 11
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.
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