← All projects / Reading the Register in Base 13

Base 13 shows the slot

Write a 67s number in base 13 and look at its last digit. That one digit says which of the twelve slots of the register the number sits in. Five of the digits belong to live slots, and every known prime ends in one of those five.

The dial

Twelve slots, one for each step round the register, each marked with the last base 13 digit every number in that slot has. Base 13 uses the digits 0 to 9, then A for ten, B for eleven and C for twelve.

live slot: a prime can end in this digitdead slot

Touch a slot for the numbers in it.

Three laps, written in base 13

Each row is one slot and each column is one lap of twelve powers. Read along a row: the numbers get longer but the last digit never changes.

Every known prime ends in one of five digits

Counted from power 3 on. The first two primes of each family are the small numbers that start the lanes.

Ordinary numbers in base 13

Touch a bar for its counts.

The last digit only catches 13

The digit sum catches 2 and 3

13 is one more than 12, so adding up a number's base 13 digits keeps its remainder on dividing by 2, 3, 4, 6 and 12. That turns the 6n ± 1 rule into a digit-sum rule: a number passes exactly when its digits add to 1 or 5 more than a multiple of 6.

Alternating sums catch 7, 5 and 17

Try a number

Type any whole number. Here it is in base 13, with each of the tests run on its digits.

Why 13, and what it's worth

Powers of two go all the way round

Twelve holds the other two lanes

The register is 12 wide because 5 rules out every 4th power and 7 every 3rd, and 4 and 3 both go into 12. 13's own lap is 12 as well. So one lap of base 13's last digit covers all three lanes exactly once.

It's the same information, easier to see

The last base 13 digit tells you the slot, and so does the power's remainder on dividing by 12. Neither narrows the candidates further than the register already does. What base 13 adds is that you can read the slot off the number itself, without knowing its power.