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 a and b are positive integers then

i = 1 a 2 ib a + j = 1 b 2 ja b = a 2 b 2 + ( a , b ) 2

Answers

Proof. As in the proof of the law of quadratic reciprocity (p.138), consider the set 𝒮 of all ordered pairs of integers ( x , y ) satisfying 1 x a 2 , 1 y b 2 . These conditions are equivalent to 1 x a 2 , 1 y b 2 , so

Card S = a 2 b 2 .

Separate this set into three mutually exclusive subsets 𝒮 1 , 𝒮 2 , 𝒟 , where

𝒮 1 = { ( x , y ) 𝒮 bx ay > 0 } , 𝒮 2 = { ( x , y ) 𝒮 bx ay < 0 } , 𝒟 = { ( x , y ) 𝒮 bx ay = 0 } .

If L is the line with equation bx ay = 0 , then Card 𝒮 1 is the number of points of 𝒮 under the line L , Card 𝒮 2 is the number of points of 𝒮 above the line L , and Card 𝒟 the number of points of S on the line L . Then

Card S = Card 𝒮 1 + Card 𝒮 2 + Card 𝒟 ,

thus

Card S = Card ( 𝒮 1 𝒟 ) + Card ( 𝒮 2 𝒟 ) Card 𝒟 . (1)

We compute separately this three terms.

  • The set 𝒮 1 𝒟 can be described as the set of points ( x , y ) 𝒮 under or on the line L , i.e. the points ( x , y ) such that 1 x a 2 , 1 y bx a , or equivalently, 1 x a 2 , 1 y bx a . Therefore

    Card ( 𝒮 1 𝒟 ) = i = 1 a 2 ib a .

  • Symmetrically, 𝒮 2 consists of the ordered pairs ( x , y ) such that 1 y b 2 , 1 x ay b , so

    Card ( 𝒮 2 𝒟 ) = j = 1 b 2 ja b .

  • Let ( x , y ) S . Then ( x , y ) 𝒟 if and only if bx ay = 0 . Put d = a b = gcd ( a , b ) . Then

    ( x , y ) 𝒟 bx ay = 0 b d x a d y = 0 .

    Since b d a d = 1 , and a d b d x , then a d x , where 1 x a 2 . Thus x = λ ( a d ) a 2 for some integer λ , where 1 λ d 2 , and y = λ ( b d ) .

    Conversely every point ( λ a d , λ b d ) , where 1 λ d 2 is in 𝒟 . Therefore 𝒟 is the set of ( x , y ) = ( λ a d , λ b d ) such that 1 λ d 2 , so

    Card 𝒟 = a b 2 .

Then equation (1) gives

i = 1 a 2 ib a + j = 1 b 2 ja b = a 2 b 2 + a b 2 .

User profile picture
2024-10-27 10:41
Comments