Exercise · Volume 1 · 1.2.4-35
Exercise 1.2.4-35
not stated yet in Lean solution written
| Rating | M20 |
|---|---|
| Markers | M (mathematical), recommended |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Show that for integers and and real , and decide whether the same holds with ceilings.
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
Two integers are equal if, for each integer , one is at least exactly when the other is.
Hint 2
Use the rule for an integer , and the rule for an integer .
Solution
Show the solution
Let be any integer. Then
The first and last steps use for integer . The third step uses for the integer . The second and fourth steps use .
The two integers and have the same set of integers below or at them, so they are equal.
The ceiling. The analogous result holds: . The proof is the same with the rules and for integers and .
Check
Take , , . Then and . For the ceiling, and . A run over for , , confirms both identities.
Remarks
The case says that : dividing by an integer and then taking the floor needs only the integer part of . The proof of Exercise 1.2.4-34 uses the same idea: the test for an integer sees only .
The book's answer takes another route: it traps the left side between two values with a chain of inequalities and then applies Exercise 1.2.4-3.
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.