OFFSET
0,3
LINKS
David A. Corneth, Table of n, a(n) for n = 0..998
M. F. Hasler, "Digits d in 0 through 123...n", OEIS Wiki, Nov. 2016.
FORMULA
EXAMPLE
For n=2 are counted the same '1' as for n=1, plus the 4 additional digits '1' in 10, 11 and 12.
PROG
(PARI) print1(c=N=0); for(n=1, 8, print1(", "c+=sum(k=N+1, N=N*10+n, #select(d->d==1, digits(k)))))
(PARI) A277831(n)=if(n<2, n, n<11, A277832(n)+3*10^(n-2), error("n > 10 not yet implemented")) \\ M. F. Hasler, Nov 02 2016, edited Dec 28 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Nov 01 2016
EXTENSIONS
More terms from Lars Blomberg, Nov 05 2016
Removed incorrect b-file. - David A. Corneth, Dec 31 2020
STATUS
approved