Exercise · Volume 1 · 1.2.4-36
Exercise 1.2.4-36
not stated yet in Lean solution written
| Rating | M23 |
|---|---|
| Markers | M (mathematical) |
| 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
Prove and find the value 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
Induct on . The step needs .
Hint 2
For the ceiling, write as a floor of a shifted argument.
Solution
Show the solution
Floors. For both sides are . Assume the formula for . It is enough to show that .
If is even, then , with floor , and . The difference is .
If is odd, then and has floor . The difference is .
So the formula holds for all .
Ceilings. For an integer , since both equal for odd and for even . Hence
The third step extends the floor sum to terms and removes the term , which is .
Check
For : gives , and gives . Both formulas hold for in a computer run.
Remarks
The two sums add up to , so as well. The value is the largest product of two nonnegative integers with sum .
The book's answer takes another route: it pairs the term for with the term for and uses Exercise 1.2.4-33.
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.