Lably
Skip to content

Ternary numeral system

Base-3 numeral system

  • 6 min read
  • 3 chapters

Related on Lably

Through Numeral system, 3 and Numerical digit

Although ternary most often refers to a system in which the three digits are all non-negative numbers (specifically 0, 1, and 2), the adjective also lends its name to the balanced ternary system. Comprising the digits −1, 0 and +1, balanced ternary is widely used in comparison logic and ternary computers.

Information units

Trit

A ternary digit is a trit (trinary digit), analogously to a bit. One trit is equivalent to log2 3 (about 1.58496) bits of information. Under classical hardware assumptions, base-3 is theoretically more efficient than binary in terms of radix economy, as 3 is the closest integer to Euler's number (e).

Tribble

Analogous to the binary nibble, a tribble consists of 3 trits. It can hold 27 distinct states (33 = 27), which is roughly equivalent to 4.75 bits of information. Because it has exactly 27 states, a tribble is conveniently represented by a single character in a septemvigesimal (base-27) alphanumeric notation.

Tryte

Analogous to a binary byte, a tryte is typically defined as 6 or 9 trits. Early ternary computers, such as the Soviet Setun, defined a tryte to be six trits. A six-trit tryte holds 36 = 729 states, carrying approximately 9.5 bits of information—significantly more than the standard 8-bit binary byte (256 states). Modern theoretical architectures often favor a 9-trit tryte (39 = 19,683 states), as it cleanly divides into three tribbles.

Word

A ternary word represents the standard register width for a given ternary architecture. The Setun computer, for instance, operated using an 18-trit word with 9-trit command and memory architectures.

Macro units

When scaling to larger data storage capacities, ternary computing nomenclature splits into two distinct conventions depending on the hardware architecture:

  • Native ternary scaling: In a pure ternary system, macro-units scale by powers of 3 rather than the powers of 2 (1,024) or 10 (1,000) used in binary and decimal systems. A kilotryte (KT) in this system is exactly 310 (59,049) trytes. Following this pattern, a megatryte (MT) is 320 trytes, and a gigatryte (GT) is 330 trytes.
  • Binary-compatible scaling: In hybrid systems designed to interface directly with existing binary infrastructure, engineers often map ternary groupings to standard binary sizes. Because 5 trits (243 states) fit efficiently within an 8-bit byte (256 states), traditional binary SI prefixes are sometimes applied directly to tryte blocks, making a kilotryte equal to 1,024 trytes, and a megatryte equal to 1,048,576 trytes.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics