Exercise · Volume 1 · 1.2.4-10
Exercise 1.2.4-10
proved in Lean solution written
| Rating | 10 |
|---|---|
| Markers | recommended |
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Evaluate , and .
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
The definition works for real arguments. Compute the quotient first, then its floor.
Solution
Show the solution
.
.
.
Check
The first two results lie in and the third lies in . Also , a multiple of the modulus. In binary floating point the value may come out slightly below or above it, so a computer check should use exact fractions: .
Remarks
The first value is the fractional part of . Exercise 1.2.4-15 shows that the second value is .
This solution is checked, and a person has not reviewed it yet. The source.
In Lean
proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.
- Problem:
TAOCP.S1_2_4.Ex10.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex10.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.