Exercise · Volume 1 · 1.2.4-6
Exercise 1.2.4-6
proved in Lean solution written
| Rating | 20 |
|---|---|
| Markers | recommended |
| Kind | K2, decide: say whether a claim holds from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Decide which of three equations hold for every positive real : (a) , (b) , (c) .
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
For equation (a) use the characterization if and only if (Exercise 1.2.4-3), and square the inequalities.
Hint 2
Equation (b) is the mirror image of (a) for ceilings. For (c), try an a little above a perfect square.
Solution
Show the solution
(a) is true. Let . This is a nonnegative integer with , so . Since is an integer, is the same as (1.2.4-3(b)). Since is an integer, is the same as (1.2.4-3(a)). So , and taking square roots gives . Hence .
(b) is true. Let . Since , , and , so . Since is an integer, is the same as . Since is an integer, is the same as (1.2.4-3(d)). So , and taking square roots gives . Hence .
(c) is false. Take . Then , but , since .
Check
A run with exact arithmetic over for shows that (a) and (b) hold each time and that (c) fails first at , where the left side is and the right side is . A single counterexample, as above, is enough for (c).
Remarks
The proofs of (a) and (b) work for and whenever is continuous and increasing and is an integer only for an integer . The square root has this property: if is an integer, then so is . Exercise 1.2.4-34 treats the logarithm in the same way.
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.Ex6.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex6.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.