On other pages, you learned how to write numbers using the Shwa 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 Shwa 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 Shwa 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 Shwa.

Just as Shwa letters can be used to write different languages, Shwa 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*.

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 Shwa 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 dozenla 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:

A number system in which there are equal numbers of positive and negative digits is called *balanced*. You've already met the Shwa 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):

Value | Shwa | Greek | English |
---|---|---|---|

-0 | Θ | udis | |

-1 | τ | mono | |

-2 | ζ | bis | |

-3 | ε | ter | |

-4 | η | tetra | |

-5 | ς | penta | |

-6 | ϑ | hexa |

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 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.

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 , since **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.

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

The next surprise is at number **79**, which is actually closer to **144** than it is to **0**, so we write it as . But **78** is also closer to 144 than to 0, so why don't we write it as or ? The rule is very simple: **we don't use for positive numbers!** On the other hand, **we don't use for negative numbers**, so -78 is written , while -79 is written .

Likewise, **negative numbers use negative zero ** instead of : +36 is (30), but -36 is .

Thus, 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.

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 6/11 of the higher magnitude. That's because, in Janus notation, the highest mantissa that can be written is 0.6666666..., which equals 6/11 in base 12.

Shwa has a standard color code for all the digits, which I introduce here so I can use it as we continue :

The color gray is used for the second (fourth, sixth) consecutive occurrence of any digit, thus ensuring that every digit has its own color.

Here's a photo of some Janus dice using these colors. 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.

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. 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.

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 black outline at lower right. 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!

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.

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.

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 write the numbers after the second Break high, 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 Shwa 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, so we write the repeating part high. It works the same way in dozenal, too:

And 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.

You'll remember that Shwa notation uses the Break without any exponent to indicate a true percentage (one restricted to values between 0% and 100%). In Janus notation, percentages above 50% are written starting with negative digits, to be subtracted from 100%:

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. The two righthand columns are shared with the decimal numeric keypad.

< Arithmetic | Physical Units > |

© 2002-2018 Shwa | shwa@shwa.org | 05may18 |