Senary

A senary numeral system (also known as base-6, heximal, or seximal) has 6|six as its base. It has been adopted independently by a small number of cultures. Like the decimal base 10, the base is a semiprime, though it is unique as the product of the only two consecutive numbers that are both prime (2 and 3). As six is a superior highly composite number, many of the arguments made in favor of the duodecimal system also apply to the senary system.

Formal definition
The standard set of digits in the senary system is $$\mathcal{D}_6 = \lbrace 0, 1, 2, 3, 4, 5\rbrace$$, with the linear order $$0 < 1 < 2 < 3 < 4 < 5$$. Let $$\mathcal{D}_6^*$$ be the Kleene closure of $$\mathcal{D}_6$$, where $$ab$$ is the operation of string concatenation for $$a, b \in \mathcal{D}^*$$. The senary number system for natural numbers $$\mathcal{N}_6$$ is the quotient set $$\mathcal{D}_6^* / \sim$$ equipped with a shortlex order, where the equivalence class $$\sim$$ is $$\lbrace n \in \mathcal{D}_6^*, n \sim 0n \rbrace$$. As $$\mathcal{N}_6$$ has a shortlex order, it is isomorphic to the natural numbers $$\mathbb{N}$$.

Mathematical properties
When expressed in senary, all prime numbers other than 2 and 3 have 1 or 5 as the final digit. In senary, the prime numbers are written:


 * 2, 3, 5, 11, 15, 21, 25, 31, 35, 45, 51, 101, 105, 111, 115, 125, 135, 141, 151, 155, 201, 211, 215, 225, 241, 245, 251, 255, 301, 305, 331, 335, 345, 351, 405, 411, 421, 431, 435, 445, 455, 501, 515, 521, 525, 531, 551, ...

That is, for every prime number p greater than 3, one has the modular arithmetic relations that either p ≡ 1 or 5 (mod 6) (that is, 6 divides either p &minus; 1 or p &minus; 5); the final digit is a 1 or a 5. This is proved by contradiction.

For any integer n:
 * If n ≡ 0 (mod 6), 6 | n
 * If n ≡ 2 (mod 6), 2 | n
 * If n ≡ 3 (mod 6), 3 | n
 * If n ≡ 4 (mod 6), 2 | n

Additionally, since the smallest four primes (2, 3, 5, 7) are either divisors or neighbors of 6, senary has simple divisibility tests for many numbers.

Furthermore, all even perfect numbers besides 6 have 44 as the final two digits when expressed in senary, which is proven by the fact that every even perfect number is of the form 2p – 1(2p – 1), where 2p − 1 is prime.

Senary is also the largest number base r that has no totatives other than 1 and r − 1, making its multiplication table highly regular for its size, minimizing the amount of effort required to memorize its table. This property maximizes the probability that the result of an integer multiplication will end in zero, given that neither of its factors do.

If a number is divisible by 2, then the final digit of that number, when expressed in senary, is 0, 2, or 4. If a number is divisible by 3, then the final digit of that number in senary is 0 or 3. A number is divisible by 4 if its penultimate digit is odd and its final digit is 2, or its penultimate digit is even and its final digit is 0 or 4. A number is divisible by 5 if the sum of its senary digits is divisible by 5 (the equivalent of casting out nines in decimal). If a number is divisible by 6, then the final digit of that number is 0. To determine whether a number is divisible by 7, one can sum its alternate digits and subtract those sums; if the result is divisible by 7, the number is divisible by 7, similar to the "11" divisibility test in decimal.

Fractions
Because six is the product of the first two prime numbers and is adjacent to the next two prime numbers, many senary fractions have simple representations:

Finger counting
Each regular human hand may be said to have six unambiguous positions; a fist, one finger extended, two, three, four, and then all five fingers extended.

If the right hand is used to represent a unit (0 to 5), and the left to represent the multiples of 6, then it becomes possible for one person to represent the values from zero to 55senary (35decimal) with their fingers, rather than the usual ten obtained in standard finger counting. e.g. if three fingers are extended on the left hand and four on the right, 34senary is represented. This is equivalent to 3 &times; 6 + 4, which is 22decimal.

Additionally, this method is the least abstract way to count using two hands that reflects the concept of positional notation, as the movement from one position to the next is done by switching from one hand to another. While most developed cultures count by fingers up to 5 in very similar ways, beyond 5 non-Western cultures deviate from Western methods, such as with Chinese number gestures. As senary finger counting also deviates only beyond 5, this counting method rivals the simplicity of traditional counting methods, a fact which may have implications for the teaching of positional notation to young students.

Which hand is used for the 'sixes' and which the units is down to preference on the part of the counter; however, when viewed from the counter's perspective, using the left hand as the most significant digit correlates with the written representation of the same senary number. Flipping the 'sixes' hand around to its backside may help to further disambiguate which hand represents the 'sixes' and which represents the units. The downside to senary counting, however, is that without prior agreement two parties would be unable to utilize this system, being unsure which hand represents sixes and which hand represents ones, whereas decimal-based counting (with numbers beyond 5 being expressed by an open palm and additional fingers) being essentially a unary system only requires the other party to count the number of extended fingers.

In NCAA basketball, the players' uniform numbers are restricted to be senary numbers of at most two digits, so that the referees can signal which player committed an infraction by using this finger-counting system.

More abstract finger counting systems, such as chisanbop or finger binary, allow counting to 99, 1023, or even higher depending on the method (though not necessarily senary in nature). The English monk and historian Bede, described in the first chapter of his work De temporum ratione, (725), titled "Tractatus de computo, vel loquela per gestum digitorum," a system which allowed counting up to 9,999 on two hands.

Natural languages
Despite the rarity of cultures that group large quantities by 6, a review of the development of numeral systems suggests a threshold of numerosity at 6 (possibly being conceptualized as "whole", "fist", or "beyond five fingers" ), with 1–6 often being pure forms, and numerals thereafter being constructed or borrowed.

The Ndom language of Indonesian New Guinea is reported to have senary numerals. Mer means 6, mer an thef means 6 × 2 = 12, nif means 36, and nif thef means 36 × 2 = 72.

Another example from Papua New Guinea are the Yam languages. In these languages, counting is connected to ritualized yam-counting. These languages count from a base six, employing words for the powers of six; running up to 66 for some of the languages. One example is Komnzo with the following numerals: nibo (61), fta (62 [36]), taruba (63 [216]), damno (64 [1296]), wärämäkä (65 [7776]), wi (66 [46656]).

Some Niger-Congo languages have been reported to use a senary number system, usually in addition to another, such as decimal or vigesimal.

Proto-Uralic has also been suspected to have had senary numerals, with a numeral for 7 being borrowed later, though evidence for constructing larger numerals (8 and 9) subtractively from ten suggests that this may not be so.

Base 36 as senary compression
For some purposes, senary might be too small a base for convenience. This can be worked around by using its square, base 36 (hexatrigesimal), as then conversion is facilitated by simply making the following replacements:

Thus, the base-36 number 3ARK36 is equal to the senary number 31443326. In decimal, it is 153,920.

The choice of 36 as a radix is convenient in that the digits can be represented using the Arabic numerals 0–9 and the Latin letters A–Z; this choice is the basis of the base36 encoding scheme. The compression effect of 36 being the square of 6 causes a lot of patterns and representations to be shorter in base 36:


 * $1⁄2$ = 0.046 = 0.436


 * $1⁄2$ = 0.02136 = 0.2936


 * $1⁄3$ = 0.$\overline{3}$6 = 0.$1⁄3$36


 * $1⁄4$ = 0.$1⁄4$6 = 0.$1⁄5$36