← All projects / Where the Carries Go
Ordinary and carryless multiplication start from the same column totals. Carryless keeps what fits in each column; ordinary passes the rest to the left. This page follows that difference digit by digit in binary, ternary and decimal, and measures how fast it turns two related answers into two unrelated ones.
Ordinary digits here (0 up to one less than the base), as in school; the no-zero pages write the 0 as the top digit, and the carryless answer is the same. Red outlines mark the digits where the two answers differ.
Call the column totals T0, T1, …. Carryless keeps Ti mod b in column i. Ordinary passes ⌊Ti ÷ b⌋ one column left. So, always:
ordinary = carryless + the sum of ⌊Ti ÷ b⌋ × bi+1.
A carry lands on the next column, where it can make that column overflow too and carry again. So the digit in any column depends on every column to its right. Carryless has no such chain: each column is settled on its own. That chain is the whole difference.
Random pairs of numbers with the same number of digits, 3,000 pairs at each size. The dashed lines are the share two unrelated random numbers would differ by.
The last k digits of an ordinary product depend only on the last k digits of the factors, and they split exactly into a remainder by 2k and a remainder by 5k. That is the one place ordinary ten comes apart into 2 and 5, as carryless ten does everywhere. It tells you about divisibility by 2 and 5 and nothing else.
Read an ordinary number's binary (or ternary) digits as a carryless number. Among the ordinary primes of each length, what share are carryless primes, compared with all odd numbers of that length (in ternary: all numbers with no factor of 2 or 3)? A ratio of 1 means no link.
The two answers agree on a short tail at the right, a fixed length whatever the size of the numbers, and differ like strangers everywhere else. Bigger numbers don't keep more agreement; they only add more carries.
The formula for the difference is exact, but it needs the column totals, which need the factors, which is what finding primes is about in the first place. The carryless world stays a model: proved there, guessed here.