A358439 Number of even digits necessary to write all positive n-digit integers.
4, 85, 1300, 17500, 220000, 2650000, 31000000, 355000000, 4000000000, 44500000000, 490000000000, 5350000000000, 58000000000000, 625000000000000, 6700000000000000, 71500000000000000, 760000000000000000, 8050000000000000000, 85000000000000000000, 895000000000000000000
Offset: 1
Examples
To write the integers from 10 up to 99, each of the digits 2, 4, 6 and 8 must be used 19 times, and digit 0 must be used 9 times hence a(2) = 4*19 + 9 = 85.
Links
- Index entries for linear recurrences with constant coefficients, signature (20,-100).
Programs
-
Maple
seq((5*(9*n-1))*10^(n-2), n = 1 .. 30);
-
Mathematica
a[n_] := 5*(9*n - 1)*10^(n - 2); Array[a, 22] (* Amiram Eldar, Nov 16 2022 *)
Comments