Factor Ladder

Category: Number Theory   Level: 101

360 = 23 · 32 · 5

Divide by the smallest prime that fits, write the quotient underneath, and repeat until you reach 1. The divisors down the left side are the prime factorization.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Divide by the smallest prime

360 is even, so 2 goes into it. Write 2 on the left and the quotient 180 underneath.

360 ÷ 2 = 180

Step 1: Divide by the smallest prime

Step 2: Keep dividing by 2 while you can

180 and 90 are still even. After three 2s you reach 45, which is odd, so 2 is out of moves.

180 ÷ 2 = 90, 90 ÷ 2 = 45

Step 2: Keep dividing by 2 while you can

Step 3: Move up to 3, then 5

45 = 3 × 15 and 15 = 3 × 5. Then 5 ÷ 5 = 1. Reaching 1 means the ladder is done.

45 ÷ 3 = 15, 15 ÷ 3 = 5, 5 ÷ 5 = 1

Step 3: Move up to 3, then 5

Step 4: Read down the left side

The divisors on the left are the primes. Group the repeats with exponents. Same answer as the factor tree, with less climbing.

360 = 2 · 2 · 2 · 3 · 3 · 5 = 23 · 32 · 5

Step 4: Read down the left side

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render factor-ladder --out /tmp/factor-ladder

Source: svgmath/diagrams/factors.py