Exercise · Volume 1 · 1.2.4-34
Exercise 1.2.4-34
proved in Lean solution written
| Rating | M21 |
|---|---|
| Markers | M (mathematical), 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
Find the real numbers for which for every real .
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
Try and , and a few values of near a power of .
Hint 2
For a non-integer , the number itself is a good test value of .
Hint 3
For integer , use the fact that powers of are integers.
Solution
Show the solution
Answer. The condition holds if and only if is an integer.
Sufficiency. Let be an integer and real. Put . Then and . The number is an integer not larger than , so by the defining property of the floor. Also . Hence , and .
Necessity. Let be not an integer. Take . Then . On the other side , so and . The two sides differ.
Check
With and the left side is and the right side is . In a run over for , the identity holds for and fails for .
Remarks
The same argument works for the ceiling: holds for all exactly when is an integer. Compare Exercise 1.2.4-6 for the square root and Exercise 1.2.4-35 for the general principle behind this proof.
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.Ex34.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex34.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.