Finding the LCM of Two or More Numbers
Problem
Find LCM(12, 18, 20) using prime factorization. Show the Venn diagram of prime factors.
Explanation
What is the LCM?
The least common multiple (LCM) of two or more integers is the smallest positive integer that is a multiple of all of them. For example, LCM(4, 6) = 12 because 12 is the smallest number divisible by both 4 and 6.
Method 1: Prime Factorization
Step 1 — Find the prime factorization of each number:
Step 2 — For each prime, take the highest power that appears in any factorization:
- Prime 2: highest power is (from 12 and 20)
- Prime 3: highest power is (from 18)
- Prime 5: highest power is (from 20)
Step 3 — Multiply these highest powers:
Verification: ✓, ✓, ✓.
Method 2: Using the GCD (for two numbers)
Example: LCM(12, 18) = .
Then LCM(36, 20) = ✓.
Method 3: Listing multiples (small numbers only)
Multiples of 12: 12, 24, 36, 48, 60, 72, 84, 96, 108, 120, 132, 144, 156, 168, 180, ... Multiples of 18: 18, 36, 54, 72, 90, 108, 126, 144, 162, 180, ... Multiples of 20: 20, 40, 60, 80, 100, 120, 140, 160, 180, ...
First common multiple = 180 ✓.
GCD vs LCM
- GCD picks the minimum power of each prime: .
- LCM picks the maximum power of each prime: .
They always satisfy: .
Real-world uses
- Adding fractions: LCD (least common denominator) = LCM of denominators. needs LCD = LCM(12, 18) = 36.
- Scheduling: Two events repeat every 12 and 18 days. They coincide every LCM(12, 18) = 36 days.
Try it in the visualization
Enter two or three numbers. The Venn diagram shows overlapping prime factors. The LCM takes the union (highest power of each prime), while the GCD takes the intersection (lowest power).
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.