HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /For two numbers, gcd · lcm equals the product…
AdvancedMathematicsHigh School (11–12)Number TheoryConceptualNumericalOlympiad

For two numbers, gcd · lcm equals the product…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

For two numbers, gcd⁡⋅lcm⁡\gcd \cdot \operatorname{lcm}gcd⋅lcm equals the product. For three numbers there is a subtler rule. Write [x,y][x, y][x,y] for lcm⁡(x,y)\operatorname{lcm}(x, y)lcm(x,y) and (x,y)(x, y)(x,y) for gcd⁡(x,y)\gcd(x, y)gcd(x,y). Prove that for all positive whole numbers aaa, bbb, ccc:

[a,b,c]2[a,b] [b,c] [c,a]=(a,b,c)2(a,b) (b,c) (c,a).\displaystyle \frac{[a, b, c]^2}{[a, b]\,[b, c]\,[c, a]} = \frac{(a, b, c)^2}{(a, b)\,(b, c)\,(c, a)}.[a,b][b,c][c,a][a,b,c]2​=(a,b)(b,c)(c,a)(a,b,c)2​.

Work one prime at a time with the exponents α≤β≤γ\alpha \le \beta \le \gammaα≤β≤γ of that prime in the three numbers, in some order. Then check the rule for a=12a = 12a=12, b=18b = 18b=18, c=30c = 30c=30: find (a,b,c)(a, b, c)(a,b,c), [a,b,c][a, b, c][a,b,c], and the reciprocal of the common value of the two sides.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

gcd⁡\gcdgcd takes the smaller exponent of each prime and lcm⁡\operatorname{lcm}lcm the larger, so gcd⁡(a,b)⋅lcm⁡(a,b)=ab\gcd(a, b) \cdot \operatorname{lcm}(a, b) = abgcd(a,b)⋅lcm(a,b)=ab. Also gcd⁡(a,b)=gcd⁡(a−kb,b)\gcd(a, b) = \gcd(a - kb, b)gcd(a,b)=gcd(a−kb,b), and a=dxa = dxa=dx, b=dyb = dyb=dy with gcd⁡(x,y)=1\gcd(x, y) = 1gcd(x,y)=1.

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Plan. Both sides are products over primes. Show the exponents of each prime agree.

Step 1. One prime. Fix a prime ppp. Its exponents in aaa, bbb, ccc are α≤β≤γ\alpha \le \beta \le \gammaα≤β≤γ in some order. The formula is symmetric in aaa, bbb, ccc, so the order does not matter.

Step 2. The left side. The LCM of all three has exponent γ\gammaγ. The three pairwise LCMs have exponents β\betaβ, γ\gammaγ and γ\gammaγ (each pair's larger exponent). So the exponent is 2γ−(β+2γ)=−β2\gamma - (\beta + 2\gamma) = -\beta2γ−(β+2γ)=−β.

Step 3. The right side. The HCF of all three has exponent α\alphaα. The pairwise HCFs have exponents α\alphaα, α\alphaα and β\betaβ. So the exponent is 2α−(2α+β)=−β2\alpha - (2\alpha + \beta) = -\beta2α−(2α+β)=−β.

Step 4. Conclude. The two sides have the same exponent of every prime, so they are equal. Proof complete.

Step 5. The check. 12=22⋅312 = 2^2 \cdot 312=22⋅3, 18=2⋅3218 = 2 \cdot 3^218=2⋅32, 30=2⋅3⋅530 = 2 \cdot 3 \cdot 530=2⋅3⋅5. Then (a,b,c)=6(a, b, c) = 6(a,b,c)=6 and [a,b,c]=180[a, b, c] = 180[a,b,c]=180. The left side is 180236×90×60=32400194400=16\dfrac{180^2}{36 \times 90 \times 60} = \dfrac{32400}{194400} = \dfrac{1}{6}36×90×601802​=19440032400​=61​. The right side is 366×6×6=16\dfrac{36}{6 \times 6 \times 6} = \dfrac{1}{6}6×6×636​=61​.

Answer: the identity holds; for 121212, 181818, 303030 the HCF is 666, the LCM is 180180180, and each side equals 16\dfrac{1}{6}61​, with reciprocal 666.

What if? Each side is ∏p−β\prod p^{-\beta}∏p−β, where β\betaβ is the middle exponent of each prime.

Log in to save this for later
← All Problems
← Let dn = gcd(n² + 3, n + 2) for positive whole numbers n…A cyclist's wheel has a circumference of 1547 mm and a measuring wheel has a circumference of 560… →
More onNumber Theory

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. The triangular numbers are 1, 3, 6, 10, …, where the nth one is (n(n + 1))/2…Advanced
  2. Prove that the equation x³ + y³ + z³ = n has no solution in integers when n leaves remainder 4 or 5…Advanced
  3. Find every triple of positive integers a ≤ b ≤ c with 1/a + 1/b + 1/c = 1, and prove that there are…Advanced
  4. Find all pairs of positive integers (x, y) with x² - y² = 945…Hard
  5. A teacher wants a list of every primitive Pythagorean triple whose hypotenuse is less than 100…Advanced
All problems on this topic →