Greatest common divisor and least common multiple, worked by hand
The greatest common divisor of two whole numbers is the largest number that divides both of them evenly. For 48 and 18 it is 6. The least common multiple is the smallest positive number that both of them divide. For 48 and 18 it is 144. The two are linked: for any two numbers, the GCD times the LCM equals the two numbers multiplied together. Here, 6 × 144 and 48 × 18 are both 864.
The fastest way to find a GCD by hand is Euclid's algorithm, which is over 2,000 years old. Divide the larger number by the smaller and keep the remainder. Then divide the smaller number by that remainder, and repeat until the remainder is 0. The last number you divided by is the GCD. For 48 and 18: 48 = 18 × 2 + 12, then 18 = 12 × 1 + 6, then 12 = 6 × 2 + 0. The last divisor is 6. When you enter exactly two numbers, the calculator lists these steps so you can follow them or copy them into homework.
For a list of more than two numbers, the GCD and LCM are worked out one pair at a time. The GCD of 12, 18 and 30 is the GCD of 6 and 30, which is 6. The LCM is the LCM of 36 and 30, which is 180. Every step uses exact whole-number arithmetic, so the LCM of a long list stays exact even when it grows large. The LCM of the numbers from 1 to 30 is 2,329,089,562,800, and every digit shown is correct.
These two numbers do everyday jobs. The GCD simplifies fractions and ratios: 18/48 divided top and bottom by 6 is 3/8. It also gives the largest square tile that fits a floor exactly, or the largest equal groups a set can be split into. The LCM finds when repeating things line up again. A bus every 12 minutes and a train every 18 minutes leave together every 36 minutes. It is also the common denominator for adding fractions.
Some limits are worth knowing. The calculator takes whole numbers only, not decimals or fractions. Signs are ignored. A list with a 0 has an LCM of 0, and a list of only zeros has no GCD. The input can be up to 10,000 characters long, which is room for over a thousand ordinary numbers, and keeps every calculation fast. Euclid's steps are shown for a pair of numbers only, and only when there are 30 steps or fewer.