Compute the decimal expansion of π.Yourscorewillbemin(23,k), where k is the number of consecutive correct digits immediately following the decimal point in your answer.
A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.
Solution
For this problem, it is useful to know the following square root algorithm that allows for digit-by-digit extraction of xandgivesonedecimalplaceofx for each two decimal places of x. We will illustrate how to extract the second digit after the decimal point of π,knowingthatπ=3.1415⋯ and π=1.7⋯.Letd be the next decimal digit. Then d should be the largest digit such that (1.7+0.01 d)2<π, which in this case we will treat as (1.7+0.01 d)^{2}<3.1415.Expandingthis,weget2.89+0.034 d+0.0001 d^{2}< 3.1415, from which we get the value of dtobeapproximately⌊0.0343.1415−2.89⌋=⌊0.0340.2515⌋=7, since the 0.0001d2 term is negligible. Indeed, 7 is the largest such digit, and so d=7 is the second digit of π$. Because we are constantly subtracting the square of our extracted answer so far, we can record the difference in a manner similar to long division, which yields a quick method of extracting square roots by hand.
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.
Source: Omni-MATH,
licensed Apache-2.0.
Statement reproduced verbatim; metadata (topic, difficulty) added by this project.