Project Euler/40
From charlesreid1
Champernowne's Constant
Problem Statement
An irrational decimal fraction is created by concatenating the positive integers:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle 0.12345678910{\color{red}\mathbf 1}112131415161718192021\cdots}
It can be seen that the 12th digit of the fractional part is 1
If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle d_n} represents the nth digit of the fractional part, find the value of the following expression.
Solution
Flags