A277834 Number of '4' digits in the set of all numbers from 0 to A014824(n) = Sum_{i=1..n} i*10^(n-i) = (0, 1, 12, 123, 1234, 12345, ...).
0, 0, 1, 22, 344, 4671, 59053, 713985, 8374417, 96089849, 1084355281, 12078120713, 133126886145, 1454725651577, 15781824417015, 170163923182508, 1825096021948551, 19485528120720094, 207200960219546637, 2195466392318923180, 23189231824423799723
Offset: 0
Examples
For n=2 there is only one digit '4' in the sequence 0, 1, 2, ..., 12. For n=3 there are 11 + 10 = 21 more digits '4' in { 14, 24, 34, 40, ..., 49, 54, ..., 114 }, where 44 accounts for two '4's.
Links
- David A. Corneth, Table of n, a(n) for n = 0..998
Programs
Formula
Extensions
More terms from Lars Blomberg, Nov 05 2016
Removed incorrect b-file. - David A. Corneth, Dec 31 2020