Problem Archive

Let $F_5(n)$ be the number of strings $s$ such that:

For example, $F_5(4) = 0$, $F_5(5) = 8$, $F_5(6) = 42$ and $F_5(11) = 3844$.

Let $D(L)$ be the number of integers $n$ such that $5 \le n \le L$ and $F_5(n)$ is divisible by $87654321$.

For example, $D(10^7) = 0$ and $D(5 \cdot 10^9) = 51$.

Find $D(10^{18})$.

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