Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.2.23* ($\sum_{i=1}^{\lfloor a/2 \rfloor} \lfloor ib/a \rfloor + \sum_{j=1}^{\lfloor b/2 \rfloor} \lfloor ja/b \rfloor = \lfloor a/2 \rfloor \lfloor b/2 \rfloor + \lfloor (a,b)/2\rfloor$)
Exercise 3.2.23* ($\sum_{i=1}^{\lfloor a/2 \rfloor} \lfloor ib/a \rfloor + \sum_{j=1}^{\lfloor b/2 \rfloor} \lfloor ja/b \rfloor = \lfloor a/2 \rfloor \lfloor b/2 \rfloor + \lfloor (a,b)/2\rfloor$)
Show that if and are positive integers then
Answers
Proof. As in the proof of the law of quadratic reciprocity (p.138), consider the set of all ordered pairs of integers satisfying , . These conditions are equivalent to , , so
Separate this set into three mutually exclusive subsets , where
If is the line with equation , then is the number of points of under the line , is the number of points of above the line , and the number of points of on the line . Then
thus
We compute separately this three terms.
-
The set can be described as the set of points under or on the line , i.e. the points such that , or equivalently, . Therefore
-
Symmetrically, consists of the ordered pairs such that , so
-
Let . Then if and only if . Put . Then
Since , and , then , where . Thus for some integer , where , and .
Conversely every point , where is in . Therefore is the set of such that , so
Then equation (1) gives
□