A131981 Number of early bird numbers <= n.
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 9, 10, 10, 10, 10, 10, 10, 11, 12, 13, 14, 14, 15, 15, 15, 15, 15, 16, 17, 18, 19, 20, 20, 21, 21, 21, 21, 22, 23, 24, 25, 26, 27, 27, 28, 28, 28, 29, 30, 31, 32
Offset: 1
Examples
There are two early bird numbers <= 21, viz. 12 and 21, hence a(21) = 2.
Links
- Klaus Brockhaus, Table of n, a(n) for n = 1..6000
- Klaus Brockhaus, Plots of A131981(n)/n at various scales
Crossrefs
Programs
-
JBASIC
s$ = "" : d = 0 FOR n = 1 TO 84 sn$ = str$(n) IF instr(s$, sn$) > 0 THEN d = d+1 s$ = s$ + sn$ : print d ; ","; NEXT
Comments