The base-3 method of counting in which only the digits 0, 1, and 2 are used. Ternary numbers arise in a number of problems in mathematics, including some problems of weighing. However, according to Knuth (1981), "no substantial application of balanced ternary notation has been made" (balanced ternary uses digits -1, 0, and 1 instead of 0, 1, and 2).
The illustration above shows a graphical representation of the numbers 0 to 25 in ternary, and the following table gives the ternary equivalents of the first few decimal numbers. The concatenation of the ternary digits of the consecutive numbers 0, 1, 2, 3, ... gives (0), (1), (2), (1, 0), (1, 1), (1, 2), (2, 0), ... (Sloane's A054635).
1 | 1 | 11 | 102 | 21 | 210 |
2 | 2 | 12 | 110 | 22 | 211 |
3 | 10 | 13 | 111 | 23 | 212 |
4 | 11 | 14 | 112 | 24 | 220 |
5 | 12 | 15 | 120 | 25 | 221 |
6 | 20 | 16 | 121 | 26 | 222 |
7 | 21 | 17 | 122 | 27 | 1000 |
8 | 22 | 18 | 200 | 28 | 1001 |
9 | 100 | 19 | 201 | 29 | 1002 |
10 | 101 | 20 | 202 | 30 | 1010 |
Ternary digits have the following multiplication table.
0 | 1 | 2 | |
0 | 0 | 0 | 0 |
1 | 0 | 1 | 2 |
2 | 0 | 2 | 11 |
A ternary representation can be used to uniquely identify totalistic cellular automaton rules, where the three colors (white, gray, and black) correspond to the three numbers 0, 1 and 2 (Wolfram 2002, pp. 60-70 and 886). For example, the ternary digits
Every even number represented in ternary has an even number (possibly 0) of 1s. This is true since a number is congruent mod to the sum of its base-b digits. In the case b = 3, there is only one digit (1) which is not a multiple of
Erdos and Graham (1980) conjectured that no power of 2,
Base, Binary, Champernowne Constant, Decimal, Hexadecimal, Octal, Quaternary, Totalistic Cellular Automaton
Erdos, P. and Graham, R. L. Old and New Problems and Results in Combinatorial Number Theory. Geneva, Switzerland: L'Enseignement Mathématique Université de Genève, Vol. 28, 1980.
Gardner, M. "The Ternary System." Ch. 11 in The Sixth Book of Mathematical Games from Scientific American. Chicago, IL: University of Chicago Press, pp. 104-112, 1984.
Knuth, D. E. The Art of Computer Programming. Vol. 2: Seminumerical Algorithms, 3rd ed. Reading, MA: Addison-Wesley, pp. 173-175, 1998.
Lauwerier, H. Fractals: Endlessly Repeated Geometric Figures. Princeton, NJ: Princeton University Press, pp. 10-11, 1991.
Sloane, N. J. A. Sequences A054635 in "The On-Line Encyclopedia of Integer Sequences." http://www.research.att.com/~njas/sequences/.
Vardi, I. "The Digits of in Base Three." Computational Recreations in Mathematica. Reading, MA: Addison-Wesley, pp. 20-25, 1991.
Wolfram, S. A New Kind of Science. Champaign, IL: Wolfram Media, pp. 60-70 and 886, 2002.