Balanced Ternary

Balanced ternary is a non-standard positional numeral system (a balanced form), useful for comparison logic. It is a ternary (base 3) number system, but unlike the standard (unbalanced) ternary system, the digits have the values −1, 0, and 1. This combination is especially valuable for ordinal relationships between two values, where the three possible relationships are less-than, equals, and greater-than. Balanced ternary can represent all integers without resorting to a separate minus sign.

Balanced ternary is counted as follows. (In this example, the letter "T" is uses as a ligature of "−1" in balanced ternary, but alternatively for easier parsing "−" may be used to denote −1 and "+" to denote +1.)

Balanced ternary
Decimal −13 −12 −11 −10 −9 −8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13
Balanced ternary TTT TT0 TT1 T0T T00 T01 T1T T10 T11 TT T0 T1 T 0 1 1T 10 11 1TT 1T0 1T1 10T 100 101 11T 110 111
Concise representation F G H J K L M N P Q R S T 0 1 2 3 4 5 6 7 8 9 A B C D

The speed of the light in vacuum is 299,792,458 metres per second. The number is 1'T10'0T0'010'001'0T1'101(1'NR2'1SA) in balanced ternary.

Unbalanced ternary can be converted to balanced ternary notation in two ways:

  1. add 1 trit-by-trit from the first non-zero trit with carry, and then subtract 1 trit-by-trit from the same trit without borrow. For example, 0213 + 113 = 1023, 1023 − 113 = 1T1Balt = 710.
  2. If a two is present in ternary, simply turn it into 1T.For example, 02123 = 0010+1T00+001T=10TTBalt=2310
Numeral systems by culture
Hindu-Arabic numerals
Western Arabic
Eastern Arabic
Indian family
Tamil
Burmese
Khmer
Lao
Mongolian
Thai
East Asian numerals
Chinese
Japanese
Suzhou
Korean
Vietnamese
Counting rods
Alphabetic numerals
Abjad
Armenian
Āryabhaṭa
Cyrillic
Ge'ez
Greek
Georgian
Hebrew
other historical systems
Aegean
Attic
Babylonian
Brahmi
Egyptian
Etruscan
Inuit
Kharosthi
Mayan
Quipu
Roman
Positional systems by base
Decimal (10)
1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 20, 24, 26, 27, 32, 36, 60, 64, 85
Balanced ternary
List of numeral systems

Read more about Balanced Ternary:  Computation, Fractional Balanced Ternary, Irrational Numbers, Transcendental Numbers, Convert A Number To Balanced Ternary, Addition, Subtraction and Multiplication and Division, Expand The Balanced Ternary To 2D, Other Applications

Famous quotes containing the word balanced:

    Perhaps if the future existed, concretely and individually, as something that could be discerned by a better brain, the past would not be so seductive: its demands would be balanced by those of the future. Persons might then straddle the middle stretch of the seesaw when considering this or that object. It might be fun.
    Vladimir Nabokov (1899–1977)