Unary numeral system
Part of a series on |
Numeral systems |
---|
List of numeral systems |
The unary numeral system is the simplest numeral system to represent natural numbers:[1] to represent a number N, a symbol representing 1 is repeated N times.[2]
In the unary system, the number 0 (zero) is represented by the empty string, that is, the absence of a symbol. Numbers 1, 2, 3, 4, 5, 6, ... are represented in unary as 1, 11, 111, 1111, 11111, 111111, ...[3]
Unary is a
The use of tally marks in counting is an application of the unary numeral system. For example, using the tally mark | (𝍷), the number 3 is represented as |||. In East Asian cultures, the number 3 is represented as 三, a character drawn with three strokes.[4] (One and two are represented similarly.) In China and Japan, the character 正, drawn with 5 strokes, is sometimes used to represent 5 as a tally.[5][6]
Unary numbers should be distinguished from repunits, which are also written as sequences of ones but have their usual decimal numerical interpretation.
Operations
Complexity
Compared to standard
In
Applications
In addition to the application in tally marks, unary numbering is used as part of some data compression algorithms such as Golomb coding.[16] It also forms the basis for the Peano axioms for formalizing arithmetic within mathematical logic.[17] A form of unary notation called Church encoding is used to represent numbers within lambda calculus.[18]
Some
See also
- Unary coding
- One-hot encoding
References
- ISBN 9780385672665.
- ISBN 9780122063824.
- ISBN 9780724809400.
- JSTOR 2970818.
- JSTOR 2683999
- ^ Lunde, Ken; Miura, Daisuke (January 27, 2016), "Proposal to Encode Five Ideographic Tally Marks", Unicode Consortium (PDF), Proposal L2/16-046
- MR 1449655. See in particular p. 48.
- ^ Blaxell, David (1978), "Record linkage by bit pattern matching", in Hogben, David; Fife, Dennis W. (eds.), Computer Science and Statistics--Tenth Annual Symposium on the Interface, NBS Special Publication, vol. 503, U.S. Department of Commerce / National Bureau of Standards, pp. 146–156.
- ISBN 978-0-201-02988-8.
- ISBN 9780805071665.
- ISBN 9783319198422.
- ^ Arora, Sanjeev; Barak, Boaz (2007), "The computational model —and why it doesn't matter" (PDF), Computational Complexity: A Modern Approach (January 2007 draft ed.), Cambridge University Press, §17, pp. 32–33, retrieved May 10, 2017.
- ^ Feigenbaum, Joan (Fall 2012), CPSC 468/568 HW1 Solution Set (PDF), Computer Science Department, Yale University, retrieved 2014-10-21. [permanent dead link]
- ISBN 9780199233212.
- S2CID 18371269.
- .
- MR 2044538.
- ISBN 978-3-642-40354-5.
- ^ http://answers.uillinois.edu/illinois/page.php?id=49002