← All projects / Ordinary Carry Arithmetic

Ordinary carry arithmetic

One rule from primary school: when a column adds up to more than it can hold, write the last digit and pass the rest along. Most of the patterns on this site are that rule seen from different sides. Here it is on its own.

Add two numbers and watch the carries

Type two numbers and pick a base. The small digits on top are the carries coming in. A shaded column is one that passes a carry to the column on its left.

+
Try

How often a carry happens

Take two digits at random and add them. This is every possible pair, counted, as an exact fraction and as a percentage.

A carry makes the next one more likely

In base 10 a fresh column carries 45 times in 100. If a carry has just come in, that rises to 55. The incoming 1 is enough to push ten more pairs over the edge.

Over a long sum it's always half

The two chances are the same distance either side of 50, in every base. So in a long addition, half the columns carry.

The fractions follow one pattern

In base b a fresh column carries (b − 1) out of 2b times, and (b + 1) out of 2b right after a carry. Base 10 gives 9/20 and 11/20. The average run is the first fraction turned upside down: 20/9.

Binary carries run furthest

In base 2 a fresh column carries only 25 times in 100, but once one starts it keeps going 75 times in 100. An average run is 4 columns, against 2.2 in base 10.

Add more numbers at once

Add three numbers in one go and a column can pass along 0, 1 or 2. Add four and it can pass 3. This is how the carry splits over a long sum.

These are the Eulerian numbers: 1 1, then 1 4 1, then 1 11 11 1. John Holte worked this out in 1997. The table above rebuilds it from scratch by counting every way the digits can fall.

Multiplying is tidy until you carry

Long multiplication has two steps. First, each column collects its digit products, and that part is completely regular. Then the carrying step turns the column totals into digits.

×

Keep only the last digit of each column total, with no carrying, and you get the carryless product, a much simpler kind of arithmetic. The carries are the only difference between it and ordinary multiplication, and Where the Carries Go shows exactly where they part.

Where it shows up on this site