Based on some of the problems from Prof. Dragos Ghioca's
problem set 1.
Question 1#
Let a,b∈N. Show that if gcd(a,b)=lcm(a,b), then a=b.
Question Explanation#
a,b here are natural numbers, i.e. the ones that are used to count things: 1,2,…
Now, consider the set of all numbers that divide both a and b.
The maximum of this set is defined to be gcd(a,b).
Formally: gcd(a,b):=max{x:x∣a and x∣b}.
Similarly, consider the set of all numbers that are divisible by both a and b.
The minimum of this set is defined to be lcm(a,b).
Formally: lcm(a,b):=min{x:a∣x and b∣x}.
Solution 1
- a∣lcm(a,b) and b∣lcm(a,b), thus a≤lcm(a,b) and b≤lcm(a,b) (by definition).
- gcd(a,b)∣a and gcd(a,b)∣b, thus gcd(a,b)≤a and gcd(a,b)≤b (by definition).
- Combine both inequalities together:
- gcd(a,b)≤a≤lcm(a,b)
- gcd(a,b)≤b≤lcm(a,b)
- We are given that gcd(a,b)=lcm(a,b), therefore inequalities are actually equalities:
- gcd(a,b)=a=lcm(a,b)
- gcd(a,b)=b=lcm(a,b)
- Hence, a=b.