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 and be given with . Prove that the number of pairs of positive integers satisfying and is , where is the number of distinct prime factors of .(Count and as different pairs if or .)
Answers
Notations:
- denotes an ordered pair, so that and (universal notation).
- unordered pair : .
- .
- .
We begin with an example. Take
Then the ordered pairs such that are
We have no choice for the common factor , but we can take to the left and to the right, or the inverse. Idem with .
Now we give a proof for the general case.
Proof.
Let the powers of primes common to and , and the primes whose powers are distinct in the decompositions of and in prime factors:
Then , where for , so that the prime factors of are .
The prime factors of are in (the prime factors of ).
Write
Hence, for every ,
therefore .
For every ,
Hence
There are two ways to choose to build a solution , for every . This gives solutions.
More formally, note that we can write in both cases
where .
Let be the set of solutions :
and consider the map
Then is a bijection, and
To conclude, if are such that , the number of satisfying and is , where is the number of distinct prime factors of . □