Labs / Mathematics

Euclid's Algorithm

Two numbers set the sides of a rectangle. The algorithm keeps carving off the biggest square it can, then repeats on whatever strip is left over. Tap the canvas or hit auto-run — the side of the very last square is the greatest common divisor of your two numbers.

Labs / Mathematics / Euclid's Algorithm

Mathematics20–30 minFoundation

Euclid's Algorithm

Two numbers set the sides of a rectangle. The algorithm keeps carving off the biggest square it can, then repeats on whatever strip is left over. Tap the canvas or hit auto-run — the side of the very last square is the greatest common divisor of your two numbers.

Why it matters

Why explore this?

Mathematics helps us describe patterns precisely and predict what comes next. This model turns an abstract relationship into something you can change and observe.