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.
360 is even, so 2 goes into it. Write 2 on the left and the quotient 180 underneath.
360 ÷ 2 = 180
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
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
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
cd svg-generator python3 -m svgmath render factor-ladder --out /tmp/factor-ladder
Source: svgmath/diagrams/factors.py