OFFSET
0,2
COMMENTS
LINKS
R. Zumkeller, Table of n, a(n) for n = 0..25000
Eric Weisstein's World of Mathematics, Digit
EXAMPLE
a(12) = #{0,1,2,3,4,5,6,7,8,9,10,12} = 12;
a(24) = a(12) + #{13,14,15,16,17,18,19,20,21,23,24} = 23.
MATHEMATICA
f[n_] := Length[ Select[ Range[0, n], Max[ DigitCount[#]] == 1 &]]; Array[f, 70, 0] (* Robert G. Wilson v, Dec 13 2016 after Harvey P. Dale in A010784 *)
PROG
(Haskell)
a178787 n = a178787_list !! n
a178787_list = scanl1 (+) a178788_list
-- Reinhard Zumkeller, Mar 15 2014
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Reinhard Zumkeller, Jun 30 2010
STATUS
approved