Exercise · Volume 1 · 1.2.8-2
Exercise 1.2.8-2
not stated yet in Lean solution written
| Rating | 20 |
|---|---|
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers |
The task
Use the rounding formula for and base-10 logarithms to find the size and the leading digits of .
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
Eq. (15) says that is rounded to an integer. The rounding changes the number by less than , so for a number with 200 digits it can be ignored.
Hint 2
Take of . You need and to about eight digits, because the first is multiplied by .
Solution
Show the solution
By eq. 1.2.8(15), is rounded to the nearest integer. The error of the rounding is less than , and this changes only the digits far to the right of the 209 digits of the number. So the leading digits come from
The tables give and , so . Then
The integer part says that has digits. The fraction is the logarithm of the leading digits: . Hence
Eight digits of are needed: an error of in gives an error of in the logarithm of the answer, which is about relative error.
Check
Exact integer arithmetic in python3 gives , a number with digits, which is . The value from the logarithm agrees with it to the accuracy of the tables.
Remarks
The same method gives the size of any : the number of digits is for . Exercise 1.2.8-3 prints all numbers and needs this size. The proof of eq. (15) is in the C1 chapter on Section 1.2.8.
This solution is checked, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.