 Janus Numbers

On other pages, you learned how to write numbers using the Musa digits. But aside from some minor differences, these symbols just replace the current symbols like 4 and +, with no change in the "spelling" of numbers or the "grammar" of expressions. And we don't need any more than that to begin using the Musa script for our familiar decimal numbers. But Janus Numbers and the associated units of measurement (presented on the pages that follow) are interesting advances in their own right which the Musa script makes feasible - for instance, with the needed digits. For some of you, they may seem one step too far; for others, an additional reason to change scripts. Those in the first group need not continue - you've already seen everything you need to start using Musa.

Just as Musa letters can be used to write different languages, Musa numerals can also be used to write different "numeric languages". We are so accustomed to our own way of writing numbers, and it is so widespread, that we forget that it isn't the only one. For example, Roman numerals like XIV for 14 represent a different way of writing numbers.

This page will introduce another numeric language, called Janus notation in reference to the Roman god who faces both ways. This notation was developed by J. Halcro Johnston in his 1937 book, The Reverse Notation, on which this page is based. Numbers written in Janus notation are called Janus numbers.

### Dozenal Numbers

You all know that our decimal numbers are base ten (decimal), presumably because we have ten fingers. What that means is that when we write a number by putting two digits next to each other, the lefthand digit doesn't represent units, it represents tens of units. For example, in the number 24, the digit 2 doesn't represent the number 2; it represents the number 20 because it's in the tens place. Likewise, in the number 365, the digit 3 doesn't represent the number 3; it represents the number 300 because it's in the hundreds place - each place to the left of the rightmost digit represents one higher power of ten.

The first two of the Musa hexadecimal digits, and , can be used to write dozenal or duodecimal numbers: base twelve. In base twelve, each digit to the left of the units place represents one higher power of twelve, so the first place to the left represents 12s (the dozens place), the next place represents 144s (the grosses place), and so on: 1728, 20736, etc. To consider the same examples, the dozenal number 24 represents the decimal number 28: 2×12 + 4. The dozenal number 365 represents the decimal number 509: 3×144 + 6×12 + 5.

Likewise, each digit to the right of the units place represents one twelfth of the previous place. When using a dozenal number system, the dot that separates units from fractions is called the uncial dot, and the fraction is said to be in uncial notation (as opposed to numerator/denominator, for example).

This is not the place to discuss the advantages of dozenal numbers. If you're interested, you can check out the following websites:

### Balanced Numbers

A number system in which there are equal numbers of positive and negative digits is called balanced. You've already met the Musa negative digits on the Numerals page. Here they are again, along with the Greek letters we use to write them in English, and their English names (from Greek bases):

ValueMusaGreekEnglish
-0 Θudis
-1 τmono
-2 ζbis
-3 εter
-4 ηtetra
-5 ςpenta
-6 ϑhexa

And here's a reminder of the color codes for each digit. Janus numbers just use the middle columns, not 7 8 9 or A-F. When we read non-decimal numbers aloud, we simply spell out the digits and other symbols, one by one. We never use words like "twenty" or "thirteen", since those are numbers, not numerals.

### Janus notation

Janus notation combines dozenal numbers and negative digits to form a balanced dozenal number system. In Janus notation, only the digits from to are used, and each place left of the units place represents the next higher power of twelve.

For example, let's consider the number 9. In decimal notation, it's written with a single digit. But in Janus notation, it's written as  , which means 12 - 3, with a 1 in the twelves place and a ε in the ones place. The principle is the same as with Roman numerals, in which 9 is written IX - writing the I before the X indicates that it is negative. But Roman numerals require different symbols for each place, while Janus numbers, like decimal numbers, use the same numerals for all magnitudes, relying on position to indicate the magnitude.

In Janus, every digit has its own complement (the complement of a number is simply that number with the sign reversed, that is, multiplied by -1). To write the complement of a number, just replace every digit with its complement. It's completely symmetrical, like Janus!

The minus sign isn't needed to write negative numbers in Janus notation. And in Janus notation, the easiest way to subtract two numbers is to complement the subtrahend (the number being subtracted) and then to add that to the minuend (the other number). For example, 7-3 is the same as 7+ε. This makes subtraction into addition, which is much easier.

Here's a photo of some Janus dice. The regular pentagonal dodecahedral dice are marked ς-6; one is larger, to represent the dozens place. The rhombic dodecahedral dice aren't identical: one is marked ς-6 for positive numbers, and the other is marked ϑ-5 (with Θ) for negative numbers. The result is a distribution centered on zero. Let's count from 0 to 100 to show you how Janus numbers work: The first surprise is at number 7, which is written as 12-5, or  , because 7 is closer to 12 than it is to 0. Rather than make a first approximation of the value of 7 by putting a 0 in the twelves place and then adding 7 units, we put a 1 in the twelves place and then adjust downwards by only 5 units.

Number 12 also has a surprise. Instead of writing it as 12+0, we write it as 12-0, with a negative zero in the ones place. We prefer numbers with six and zero to resemble their smaller neighbors, not their larger neighbors. We'll explain more below.

After 18, numbers start being closer to two dozen than to one dozen, so there's a 2 in the dozens place, and likewise for all the numbers up to 29: they're closer to 24 than to any other multiple of twelve, so they have a 2 in the dozens place.

The next surprise is at number 73, which is closer to 144 than to 0, so we write it as 144-72+1   .

There are some rules that determine the signs of zeroes and sixes:

1. The sign of a six is the opposite of the sign of the following digit.
2. If there's no following digit, it's the same as the sign of the entire number.
3. The sign of a zero is the same as the sign of the following digit.
4. If there's no following digit, it's the opposite of the sign of the entire number.
5. The number zero is always written with a positive zero.

Thus, 72 ends with a -0 because 72 is a positive number (rule #3), and the six is a +6 because of rule #0: it precedes a negative digit. But the six in 73 is a -6 because of the same rule: it precedes a positive digit.

When you change a to to comply with the above rules, remember to add one to the place above (if the number is negative, that makes it smaller). Likewise, when you change a to , remember to subtract one from the place above.

Here's a little toy to help you explore this new number system. Enter any integer and press the Count button. We'll show you the next six numbers in both Janus and decimal form.

Both the Janus numbers and the decimal values are the output of Javascript functions from a small library we created for handling Janus numbers. You can download this library for your own use here:

Javascript Janus Library

### Magnitudes

Real numbers written in magnitude notation work the same in Janus notation as in decimal notation. We don't need the reciprocal sign, since a negative exponent is simply written with a negative (first) digit.

One advantage of Janus notation is that all the numbers near a given magnitude are written with the same magnitude. For example, in decimal scientific notation, the number 900 is written as 9x10², even though it's much closer to 10³. In Janus notation, that doesn't happen: the break where the magnitude changes is always at the midpoint of the higher magnitude.

### Cuisenaire Rods

We 3D-printed a set of Janus Cuisenaire rods: The rods with holes represent negative numbers.

Here is the addition table for Janus numbers: Just like the decimal addition table, the results form diagonal stripes across the table. But this similarity masks a significant advantage of Janus notation: because of the mix of positive and negative digits, there's much less "carrying" between columns when adding lots of numbers, and no "borrowing". Here is a sample sum in decimal and Janus notation:

 11 1τ  13 11  17 15  19 2ς  60 50  In this example of the four teen primes, you have to carry a 2 in the decimal sum, but nothing at all in the Janus sum: the negative digits cancel out the positive ones.

The more numbers involved, the easier the Janus sum is in comparison to the decimal sum.

In decimal subtraction, we often have to "borrow" from the next higher column. For example, to subtract 17 from 42, you have to borrow 10 from the 40, effectively expressing 42 as "thirty-twelve" before you can subtract the 7 from the 12. But in Janus, you can subtract the 7 from 2, with no borrowing! You may have to carry a positive or negative one to the next column, but you don't need to borrow.

### Multiplication Table

Here is the Multiplication table for Janus numbers: The multiplication table looks daunting, but then patterns begin to emerge. Some are the consequence of choosing twelve as a base: since it divides all the digits except 5, most of the multiples just repeat the same final digits in the same sequence. In addition, you don't need to memorize very many numbers: only the 15 products in the red outline at lower right (all but one of them is a multiple of a factor of twelve). All the others are either multiples of 0 or 1 or the complements of other products. For example, if you learn that 4×5 = 2η, then you also know that 5×4 = 2η, that η×5 = ζ4, that 4×ς = ζ4, and that η ×ς = 2η. Compare that to the 36 products you had to learn for the decimal multiplication table!

### Divisibility Tests

It's easy to see whether a Janus integer is divisible by 2, 3, 4, 6 or 12 just by looking at the final digit. But there are also quick divisibility tests for the other small integers. To see whether a number is divisible by 8 or 9, look at the last two digits: if they spell a multiple of 8 or 9, it is. For example, the number     (13851) is divisible by 9, as you can see because its last two digits spell  (27), which is 3×9. The same trick works for 16, too.

For the small primes 5 7 11 13, there are some tricks. To see whether a number is divisible by 11, add the digits up. If the result is 0, it is. The test for 13 works almost the same, but instead of adding them all, you subtract every second digit. For example, to test the number   (728), you calculate 5 - 1 + η, which is 0.

The tricks for 5 and 7 are similar, but you double each result as you add. For example, to test the number   (595), you start with the first digit, 4. Double it, and add the next digit: 8 + 2 = 10. Double that, and add the next digit: 20 + ς = 15. The result is 15, which is a multiple of 5, so the original number is, too.

In the case of 7, you do the same thing, but subtracting every second digit (as for 13). So to test   (595) again, you start with the first digit, 4. Double it, and subtract the second digit: 8 - 2 = 6. Double that, and add the next digit: 12 + ς = 7. Since 7 is a multiple of 7, the original number is, too. So 595 is divisible by both 5 and 7.

### Negative Recurrer

There is one more trick when representing numbers in Janus notation: it turns out that many fractions, when expanded in Janus notation, form a pattern where the same sequence repeats, but alternating between positive and negative values. In this case, we replace the second Break with the inequality symbol, meaning "repeat what follows, but change the sign each time".

To illustrate this, let's consider the decimal expansion for the fraction 1/7, a very interesting case. In decimal, it's written 0.142857... and we would write it in Musa numerals using two Breaks: -1°°142857. But when we convert it to balanced decimal notation, it becomes 0.143τηε... - the same three digits repeated in sequence, but with the sign changing every time. It works the same way in dozenal, too: ### Rounding

Note that 0.143, rounded off to three decimal places, is a much better approximation to 1/7 than 0.142, six times better. Because each new digit of a balanced number is no more than half of its place value, fractional expansions are actually a series of closer and closer approximations - you never need to revise a previous digit as we do now (but you may need to change the sign of a 0 or 6 to spell the canonical form).

Said backwards, in Janus notation, truncation is rounding. In decimal notation, if you want to round off a number like 1.97, you'd have to revise all the digits to 2.0 - not in Janus. Numbers midway between two rounder numbers are rounded towards zero: 7.5 rounds to 7, not to 8.

If you'd like, you could spell rounded numbers "wrong" to show the direction of rounding. For example, you could round  to  (not ) to show that it was rounded down. In cases like this, you can truncate without respelling.

### Fractions

Numeric bases are sometimes compared on how well they represent small-denominator fractions, so here's a sample of Janus fractions:

1/41/31/22/33/4

1/61/52/53/54/55/6

1/72/73/74/75/76/7

1/83/85/87/8

1/92/94/95/97/98/9

1/103/107/109/10

1/111/121/131/141/151/16


### Percentages

You'll remember that Musa notation uses the Break without any exponent to indicate a true percentage (one restricted to values between 0% and 100%). In Janus notation, percentages from 50% are written starting with negative digits, to be subtracted from 100%. They don't require a leading 1, as they would if spelled as a number. Because of this, the complement of any percentage is simply the negative. If 25% of the world writes in the Roman alphabet, then -25% doesn't!

On the Numerals page, you saw a numeric keypad for decimal numbers. There's also one for Janus numbers, that mates to the left of the decimal keyboard.

You can play with it in the toy below, which converts Janus numbers to decimal. I've disabled the shift key.

Janus number:

Decimal value:

 < Arithmetic Physical Units >