Problem Archive

For a positive integer $k$, define $d(k)$ as the sum of the digits of $k$ in its usual decimal representation. Thus $d(42) = 4+2 = 6$.

For a positive integer $n$, define $S(n)$ as the number of positive integers $k \lt 10^n$ with the following properties :

You are given that $S(9) = 263626$ and $S(42) = 6377168878570056$.

Find $S(11^{12})$ and give your answer mod $10^9$.

Solution
No solution yet. Write yours at solutions/s294.md.
Problems sourced from Project Euler · Non-commercial & educational use only · CC BY-NC-SA 4.0