Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 1.3.45* (Count the pairs $(x,y)$ with given gcd and lcm.)

Exercise 1.3.45* (Count the pairs $(x,y)$ with given gcd and lcm.)

Let positive integers g and l be given with g l . Prove that the number of pairs of positive integers x , y satisfying ( x , y ) = g and [ x , y ] = l is 2 k , where k is the number of distinct prime factors of l g .(Count x 1 , y 1 and x 2 , y 2 as different pairs if x 1 x 2 or y 1 y 2 .)

Answers

Notations:

  • ( x , y ) denotes an ordered pair, so that ( x , y ) = ( x , y ) x = x and y = y (universal notation).
  • { x , y } unordered pair : t { x , y } t = x  or  t = y } .
  • x y = gcd ( x , y ) .
  • x y = lcm ( x , y ) .

We begin with an example. Take

g = 3 5 2 , l = 3 5 3 1 1 2 .

Then the ordered pairs ( x , y ) such that x y = g , x y = l are

x y 3 5 2 3 5 3 1 1 2 3 5 3 3 5 2 1 1 2 3 5 2 1 1 2 3 5 3 3 5 3 1 1 2 3 5 2

We have no choice for the common factor 3 , but we can take 5 2 to the left and 5 3 to the right, or the inverse. Idem with 1 1 2 , 1 1 0 = 1 .

Now we give a proof for the general case.

Proof.

Let p 1 a 1 , , p l a l the powers of primes common to g and l , and q 1 , , q k the primes whose powers are distinct in the decompositions of g and l in prime factors:

g = p 1 a 1 p l a l q 1 b 1 q k b k , a i > 0 ( 1 i l ) , l = p 1 a 1 p l a l q 1 c 1 q k c k , 0 b i < c i ( 1 j k ) .

Then l g = q 1 c 1 b 1 q k c k b k , where c j b j > 0 for j = 1 , k , so that the prime factors of l g are q 1 , , q k .

The prime factors of x , y are in { p 1 , , p l , q 1 , , q k } (the prime factors of x y ).

Write

x = p 1 u 1 p l u l q 1 v 1 q k v k , y = p 1 u 1 p l u l q 1 v 1 q k v k .

Hence, for every i = 1 , , l ,

a i = min ( u i , u i ) = max ( u i , u i ) ,

therefore a i = u i = u i .

For every j = 1 , , k ,

b j = min ( v j , v j ) , c j = max ( v j , v j ) .

Hence

v j = b j  and  v j = c j ,  or  v j = c j  and  v j = b j .

There are two ways to choose v j , v j to build a solution ( x , y ) , for every j = 1 , , k . This gives 2 k solutions.

More formally, note that we can write in both cases

v j = 𝜀 j b j + ( 1 𝜀 j ) c j , v j = ( 1 𝜀 j ) b j + 𝜀 j c j ,

where 𝜀 j { 0 , 1 } .

Let S be the set of solutions ( x , y ) :

S = { ( x , y ) 2 x y = g , x y = l } ,

and consider the map φ

{ { 0 , 1 } k S , ( 𝜀 1 , , 𝜀 k ) ( p 1 a 1 p l a l q 1 𝜀 1 b 1 + ( 1 𝜀 1 ) c 1 q k 𝜀 k b k + ( 1 𝜀 k ) c k , p 1 a 1 p l a l q 1 ( 1 𝜀 1 ) b 1 + 𝜀 1 c 1 q k ( 1 𝜀 k ) b k + 𝜀 k c k )

Then φ is a bijection, and | S | = | { 0 , 1 } k | = 2 k .

To conclude, if l , g are such that g l , the number of ( x , y ) 2 satisfying x y = g and x y = l is 2 k , where k is the number of distinct prime factors of l g . □

User profile picture
2024-07-14 09:09
Comments