Problem Archive

Let $d_n(x)$ be the $n$th decimal digit of the fractional part of $x$, or $0$ if the fractional part has fewer than $n$ digits.

For example:

Let $\displaystyle S(n) = \sum_{k=1}^n d_n \mathopen{}\left( \frac 1 k \right)\mathclose{}$.

You are given:

Find $S(10^7)$.

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