Read · 2 min

There exists a theorem stating that for any two positive integers aa and bb, the product of their greatest common factor (GCF) and their least common multiple (LCM) is equal to the product abab.

Proof of the theorem

We let a=(2a1)⋅(3a2)⋅(5a3)⋅(⋯ )⋅(Pan)a = (2^{a_1}) \cdot (3^{a_2}) \cdot (5^{a_3}) \cdot (\cdots) \cdot (P^{a_n}) and b=(2b1)⋅(3b2)⋅(5b3)⋅(⋯ )⋅(Pbn)b = (2^{b_1}) \cdot (3^{b_2}) \cdot (5^{b_3}) \cdot (\cdots )\cdot (P^{b_n}), where PP is the greatest element of {prime numbers}∩({factors of a}∪{factors of b})\{ \text{prime numbers}\}\cap(\{\text{factors of } a\}\cup\{\text{factors of } b\}), and nn is the index of PP in {primes}\{\text{primes}\}.

Lemma 1. The greatest common factor of aa and bb is G=(2min⁡(a1,b1))⋅(3min⁡(a2,b2))⋅(5min⁡(a3,b3))⋅(⋯ )∗(Pmin⁡(an,bn))G=(2^{\min(a_1, b_1)}) \cdot (3^{\min(a_2, b_2)}) \cdot (5^{\min(a_3, b_3)}) \cdot (\cdots) * (P^{\min(a_n, b_n)}). Proof of lemma 1. Obviously, by properties of exponents, GG divides both aa and bb. Now, again by properties of exponents, GG is the greatest number that divides both aa and bb (since if you increment one power of one prime number, it will not be a factor of at least one of aa or bb (for that prime, say p∗p^*, let the two powers be rr and ss, where r≤sr \le s. Then we have that the power of p∗p^* in p∗Gp^* G is r+1r+1, and then p∗Gp^* G does not divide the number where rr is the exponent of p∗p^*. Thus we have defined the GCF of two numbers in terms of the numbers' prime factors. Lemma 2. The least common multiple of aa and bb is L=(2max⁡(a1,b1))⋅(3max⁡(a2,b2))⋅(5max⁡(a3,b3))⋅(⋯ )∗(Pmax⁡(an,bn))L=(2^{\max(a_1, b_1)}) \cdot (3^{\max(a_2, b_2)}) \cdot (5^{\max(a_3, b_3)}) \cdot (\cdots) * (P^{\max(a_n, b_n)}). Proof of lemma 2. Obviously, by properties of exponents, LL is a multiple of both aa and bb. Now, again by properties of exponents, LL is the least(since if you decrement one power of one prime number, it will not be a multiple of at least one of aa or bb (for that prime, say p∗p^*, let the two powers be rr and ss, where r≥sr \ge s. Then we have that the power of p∗p^* in G/p∗G/p^* is r−1r-1, and then G/p∗G/p^* is not a multiple of the number where rr is the exponent of p∗p^*. Thus we have defined the LCM of two numbers in terms of the numbers' prime factors. Lemma 3. We have max⁡(x,y)+min⁡(x,y)=x+y\max(x, y) + \min(x, y) = x + y. Proof of lemma 3. WLOG, assume x≤yx \le y. Then x=min⁡(x,y)x = \min(x,y) and y=max⁡(x,y)y=\max(x, y). The result follows by substitution. The actual proof. We consider ab=(2a1+b1)⋅(3a2+b2)⋅(5a3+b3)⋅(⋯ )⋅(Pan+bn)ab = (2^{a_1 + b_1}) \cdot (3^{a_2 + b_2}) \cdot (5^{a_3 + b_3}) \cdot (\cdots) \cdot (P^{a_n + b_n}) and GL=(2max⁡(a1,b1)+min⁡(a1,b1))⋅(3max⁡(a2,b2)+min⁡(a2,b2))⋅(5max⁡(a3,b3)+min⁡(a3,b3))⋅(⋯ )∗(Pmax⁡(an,bn)+max⁡(an,bn)).GL=(2^{\max(a_1, b_1)+\min(a_1, b_1)}) \cdot (3^{\max(a_2, b_2) + \min(a_2, b_2)}) \cdot (5^{\max(a_3, b_3) + \min(a_3, b_3)}) \cdot (\cdots) * (P^{\max(a_n, b_n) + \max(a_n, b_n)}). By lemma 3, these two are equal. Thus we have ab=ab = GCF(a,b)(a,b)LCM(a,b). ■(a,b).\text{ } \blacksquare

Interactive · 1 question

We've used the gcd/lcm formula with prime factorisation and a fact that max⁡{x,y}+min⁡{x,y}=x+y\max \{ x,y \}+ \min \{ x,y \}=x+y to prove gcd⁡(m,n)⋅lcm(m,n)=mn\gcd (m,n) \cdot \text{lcm}(m,n)=mn (see Andrew Machkasov's proof in other explanation).

Can this be generalised? Is this following generalisation true?

Can we have gcd⁡(m1,m2,…,mk)⋅lcm(m1,m2,…,mk)=m1m2⋯mk\gcd (m_1,m_2, \ldots , m_k) \cdot \text{lcm} (m_1,m_2, \ldots, m_k)=m_1m_2 \cdots m_k for positive integer mi≥2,i=1,…,km_i \ge 2,i=1, \ldots,k and k≥3k \ge 3 ?

Choose one answer

Read · 1 min

Let us first consider the following: gcd(a,b)=1  ⟹  lcm(a,b)=abgcd(a, b) = 1 \implies lcm(a, b) = a b lcm(ac,bc)=clcm(a,b)lcm(a c, b c) = c lcm(a, b) And lastly: gcd(agcd(a,b),bgcd(a,b))=1gcd(\frac{a}{gcd(a, b)}, \frac{b}{gcd(a, b)} ) = 1

Why is it so? GCD indicates how much alike are the numbers (according to their prime factors). Dividing a number aa by its GCD with bb will result in number cc which is nothing like bb, and so GCD(c,b)=1GCD(c, b) = 1. So the third identity may be easily understood.

Now the first identity is trivial: if numbers are nothing alike, then LCM must be their product.

The second formula interprets as follows: if there is something alike between numbers aa and bb then it must surely be a part of their LCM.

Invoking all of them: lcm(a,b)=lcm(agcd(a,b)gcd(a,b),bgcd(a,b)gcd(a,b))=lcm(a, b) = lcm(\frac{a gcd(a, b)}{gcd(a, b)}, \frac{b gcd(a, b)}{gcd(a, b)} ) = gcd(a,b)lcm(agcd(a,b),bgcd(a,b))=gcd(a,b)agcd(a,b)bgcd(a,b)=abgcd(a,b)gcd(a, b) lcm(\frac{a}{gcd(a, b)}, \frac{b}{gcd(a, b)} ) = gcd(a, b) \frac{a}{gcd(a, b)} \frac{b}{gcd(a, b)} = \frac{a b}{gcd(a, b)}

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems