Exercise · Volume 1 · 1.2.4-41
Exercise 1.2.4-41
not stated yet in Lean solution written
| Rating | M23 |
|---|---|
| Markers | M (mathematical) |
| 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
Give a closed form, with floors or ceilings, for the th term of the sequence in which each appears times.
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 value occupies the positions after the first terms, up to position .
Hint 2
So is the least with . Solve the quadratic inequality.
Solution
Show the solution
The value appears at the positions with . So for exactly these , that is, is the least integer with .
A form with a ceiling. The inequality holds for (as ). The least integer with this property is
A form with a floor. Claim: . Let . Then Here , and are integers. The left inequality means , and the right inequality means . These are exactly .
Check
For the floor formula gives . For : , floor . For : , floor . The ceiling form gives at and at . Both forms agree with the sequence for .
Remarks
A form that needs only an integer square root is (checked for ). This is the triangular root, the inverse of . Exercise 1.2.4-43 sums a similar step function.
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.