The task
Prove that the sum , for integers and and real , equals with .
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
First treat . Then the remainders of modulo run through in some order.
Hint 2
Write and sum each part. Use the formula (Exercise 1.2.4-38).
Hint 3
For , split with , so that the sum falls into copies of a sum with coprime parameters.
Solution
Show the solution
Plan. First the coprime case, then the general case by a reduction.
Case . Let . For write with and . If , then , so by Euclid's lemma, and so . Hence is one-to-one on values in , so it is onto: the are in some order.
The sum of the is
Since is an integer, , and
The last step is the formula of Exercise 1.2.4-38 with . So for the sum is , which agrees with the claim for (the term is ).
Case . Write and with , . Every with is in exactly one way with and . Then
so , where the last step divides numerator and denominator by . Sum over first. By the coprime case with in place of ,
Now sum over . The term adds up to over all pairs, and the second part is counted times:
The first two terms give . Using , , , this is . So the total is
The proof does not use . For the parameters are , , , and the sum reduces to the single value taken times.
Check
Take , , , so . The terms for are , with sum . The formula gives . A run over , and for shows no exception.
Remarks
For the right side is symmetric in and , so the sum does not change when and are swapped. This is the reciprocity discussed in Exercise 1.2.4-45. For and the sum is , which counts the lattice points strictly inside the triangle with corners , , when .
The book's answer takes another route: it subtracts the sum of the fractional parts from the sum without floors and evaluates that sum.
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.