Project Euler/40: Difference between revisions
From charlesreid1
(Created page with "Champernowne's Constant ==Problem Statement== An irrational decimal fraction is created by concatenating the positive integers: <math>0.12345678910{\color{red}\mathbf 1}112...") |
No edit summary |
||
| Line 12: | Line 12: | ||
<math>d_1 \times d_{10} \times d_{100} \times d_{1000} \times d_{10000} \times d_{100000} \times d_{1000000}</math> | <math>d_1 \times d_{10} \times d_{100} \times d_{1000} \times d_{10000} \times d_{100000} \times d_{1000000}</math> | ||
==Solution== | |||
[[Project Euler/40/Solution]] | |||
==Flags== | |||
{{ProjectEulerFlag}} | |||
Latest revision as of 02:15, 20 April 2025
Champernowne's Constant
Problem Statement
An irrational decimal fraction is created by concatenating the positive integers:
$ 0.12345678910{\color{red}\mathbf 1}112131415161718192021\cdots $
It can be seen that the 12th digit of the fractional part is 1
If $ d_n $ represents the nth digit of the fractional part, find the value of the following expression.
$ d_1 \times d_{10} \times d_{100} \times d_{1000} \times d_{10000} \times d_{100000} \times d_{1000000} $
Solution
Flags