Old page wikitext, before the edit (old_wikitext ) | '{{About|expressing numbers with symbols|different kinds of numbers|Number system|expressing numbers with words|Numeral (linguistics)}}
{{more footnotes|date=January 2011}}
{{Numeral systems}}
A '''numeral system''' (or '''system of numeration''') is a [[writing system]] for expressing numbers; that is, a [[mathematical notation]] for representing [[number]]s of a given set, using [[Numerical digit|digits]] or other symbols in a consistent manner.
The same sequence of symbols may represent different numbers in different numeral systems. For example, "11" represents the number ''eleven'' in the [[decimal numeral system]] (used in common life), the number ''three'' in the [[binary numeral system]] (used in [[computer]]s), and the number two in the [[unary numeral system]] (e.g. used in [[Tally marks|tallying]] scores).
The number the numeral represents is called its value.
Ideally, a numeral system will:
*Represent a useful set of numbers (e.g. all [[integer]]s, or [[rational number]]s)
*Give every number represented a unique representation (or at least a standard representation)
*Reflect the algebraic and arithmetic structure of the numbers.
For example, the usual [[decimal]] representation of whole numbers gives every nonzero whole number a unique representation as a [[finite set|finite]] [[sequence]] of [[numerical digit|digits]], beginning with a non-zero digit. However, when decimal representation is used for the [[rational number|rational]] or real numbers, such numbers, in general, have an infinite number of representations, for example 2.31 can also be written as 2.310, 2.3100000, 2.309999999..., etc., all of which have the same meaning except for some scientific and other contexts where greater precision is implied by a larger number of figures shown.
Numeral systems are sometimes called ''[[number system]]s'', but that name is ambiguous, as it could refer to different systems of numbers, such as the system of [[real number]]s, the system of [[complex number]]s, the system of [[p-adic number|''p''-adic numbers]], etc. Such systems are, however, not the topic of this article.
==Main numeral systems==
{{main|List of numeral systems}}
The most commonly used system of numerals is the [[Hindu–Arabic numeral system]].<ref>{{cite book |author=David Eugene Smith |author2=Louis Charles Karpinski |title=The Hindu-Arabic numerals |url=https://books.google.com/?id=wEw6AAAAMAAJ |year=1911 |publisher=Ginn and Company}}</ref> Two [[Indian mathematicians]] are credited with developing it. [[Aryabhata]] of [[Patna|Kusumapura]] developed the [[place-value notation]] in the 5th century and a century later [[Brahmagupta]] introduced the symbol for [[zero]]. The numeral system and the zero concept, developed by the Hindus in India, slowly spread to other surrounding countries due to their commercial and military activities with India. The Arabs adopted and modified it. Even today, the Arabs call the numerals which they use "Raqam Al-Hind" or the Hindu numeral system. The Arabs translated Hindu texts on numerology and spread them to the western world due to their trade links with them. The Western world modified them and called them the Arabic numerals, as they learned them from the Arabs. Hence the current western numeral system is the modified version of the Hindu numeral system developed in India. It also exhibits a great similarity to the Sanskrit–Devanagari notation, which is still used in India and neighbouring Nepal.
The simplest numeral system is the [[unary numeral system]], in which every [[natural number]] is represented by a corresponding number of symbols. If the symbol <tt>/</tt> is chosen, for example, then the number seven would be represented by <tt>///////</tt>. [[Tally marks]] represent one such system still in common use. The unary system is only useful for small numbers, although it plays an important role in [[theoretical computer science]]. [[Elias gamma coding]], which is commonly used in [[data compression]], expresses arbitrary-sized numbers by using unary to indicate the length of a binary numeral.
The unary notation can be abbreviated by introducing different symbols for certain new values. Very commonly, these values are powers of 10; so for instance, if / stands for one, − for ten and + for 100, then the number 304 can be compactly represented as <tt>+++ ////</tt> and the number 123 as <tt>+ − − ///</tt> without any need for zero. This is called [[sign-value notation]]. The ancient [[Egyptian numeral system]] was of this type, and the [[Roman numeral system]] was a modification of this idea.
More useful still are systems which employ special abbreviations for repetitions of symbols; for example, using the first nine letters of the alphabet for these abbreviations, with A standing for "one occurrence", B "two occurrences", and so on, one could then write C+ D/ for the number 304. This system is used when writing [[Chinese numerals]] and other East Asian numerals based on Chinese. The number system of the [[English language]] is of this type ("three hundred [and] four"), as are those of other spoken [[language]]s, regardless of what written systems they have adopted. However, many languages use mixtures of bases, and other features, for instance 79 in French is ''soixante dix-neuf'' ({{nowrap|60 + 10 + 9}}) and in Welsh is ''pedwar ar bymtheg a thrigain'' ({{nowrap|4 + (5 + 10) + (3 × 20)}}) or (somewhat archaic) ''pedwar ugain namyn un'' ({{nowrap|4 × 20 − 1}}). In English, one could say "four score less one", as in the famous [[Gettysburg Address]] representing "87 years ago" as "four score and seven years ago".
More elegant is a ''[[positional notation|positional system]]'', also known as place-value notation. Again working in base 10, ten different digits 0, ..., 9 are used and the position of a digit is used to signify the power of ten that the digit is to be multiplied with, as in {{nowrap|304 {{=}} 3×100 + 0×10 + 4×1}} or more precisely {{nowrap|3×10<sup>2</sup> + 0×10<sup>1</sup> + 4×10<sup>0</sup>}}. Note that zero, which is not needed in the other systems, is of crucial importance here, in order to be able to "skip" a power. The Hindu–Arabic numeral system, which originated in India and is now used throughout the world, is a positional base 10 system.
Arithmetic is much easier in positional systems than in the earlier additive ones; furthermore, additive systems need a large number of different symbols for the different powers of 10; a positional system needs only ten different symbols (assuming that it uses base 10).
The positional decimal system is presently universally used in human writing. The base 1000 is also used (albeit not universally), by grouping the digits and considering a sequence of three decimal digits as a single digit. This is the meaning of the common notation 1,000,234,567 used for very large numbers.
In [[computers]], the main numeral systems are based on the positional system in base 2 ([[binary numeral system]]), with two [[binary digit]]s, 0 and 1. Positional systems obtained by grouping binary digits by three ([[octal numeral system]]) or four ([[hexadecimal numeral system]]) are commonly used. For very large integers, bases 2<sup>32</sup> or 2<sup>64</sup> (grouping binary digits by 32 or 64, the length of the [[machine word]]) are used, as, for example, in [[GNU Multiple Precision Arithmetic Library|GMP]].
In certain biological systems, the [[unary coding]] system is employed. Unary numerals used in the [[neural circuit]]s responsible for [[birdsong]] production.<ref> Fiete, I. R.; Seung, H. S. (2007). "Neural network models of birdsong production, learning, and coding". In Squire, L.; Albright, T.; Bloom, F.; Gage, F.; Spitzer, N. New Encyclopedia of Neuroscience.</ref> The nucleus in the brain of the songbirds that plays a part in both the learning and the production of bird song is the HVC ([[high vocal center]]). The command signals for different notes in the birdsong emanate from different points in the HVC. This coding works as space coding which is an efficient strategy for biological circuits due to its inherent simplicity and robustness.
The numerals used when writing numbers with digits or symbols can be divided into two types that might be called the [[Arithmetic sequence|arithmetic]] numerals (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) and the [[Geometric sequence|geometric]] numerals (1, 10, 100, 1000, 10000 ...), respectively. The sign-value systems use only the geometric numerals and the positional systems use only the arithmetic numerals. A sign-value system does not need arithmetic numerals because they are made by repetition (except for the [[Greek numerals|Ionic system]]), and a positional system does not need geometric numerals because they are made by position. However, the spoken language uses ''both'' arithmetic and geometric numerals.
In certain areas of computer science, a modified base ''k'' positional system is used, called [[bijective numeration]], with digits 1, 2, ..., ''k'' ({{nowrap|''k'' ≥ 1}}), and zero being represented by an empty string. This establishes a [[bijection]] between the set of all such digit-strings and the set of non-negative integers, avoiding the non-uniqueness caused by leading zeros. Bijective base-''k'' numeration is also called ''k''-adic notation, not to be confused with [[p-adic number|''p''-adic numbers]]. Bijective base 1 is the same as unary.
==Positional systems in detail==<!--This section is linked from [[Cantor set]]-->
{{See also|Positional notation}}
In a positional base ''b'' numeral system (with ''b'' a [[natural number]] greater than 1 known as the [[radix]]), ''b'' basic symbols (or digits) corresponding to the first ''b'' natural numbers including zero are used. To generate the rest of the numerals, the position of the symbol in the figure is used. The symbol in the last position has its own value, and as it moves to the left its value is multiplied by ''b''.
For example, in the [[decimal]] system (base 10), the numeral 4327 means {{math|('''4'''×10<sup>3</sup>) + ('''3'''×10<sup>2</sup>) + ('''2'''×10<sup>1</sup>) + ('''7'''×10<sup>0</sup>)}}, noting that {{math|10<sup>0</sup> {{=}} 1}}.
In general, if ''b'' is the base, one writes a number in the numeral system of base ''b'' by expressing it in the form {{math|''a''<sub>''n''</sub>''b''<sup>''n''</sup> + ''a''<sub>''n'' − 1</sub>''b''<sup>''n'' − 1</sup> + ''a''<sub>''n'' − 2</sub>''b''<sup>''n'' − 2</sup> + ... + ''a''<sub>0</sub>''b''<sup>0</sup>}} and writing the enumerated digits {{math|''a''<sub>n</sub>''a''<sub>''n'' − 1</sub>''a''<sub>''n'' − 2</sub> ... ''a''<sub>0</sub>}} in descending order. The digits are natural numbers between 0 and {{math|''b'' − 1}}, inclusive.
If a text (such as this one) discusses multiple bases, and if ambiguity exists, the base (itself represented in base 10) is added in subscript to the right of the number, like this: number<sub>base</sub>. Unless specified by context, numbers without subscript are considered to be decimal.
By using a dot to divide the digits into two groups, one can also write fractions in the positional system. For example, the base 2 numeral 10.11 denotes {{math|1×2<sup>1</sup> + 0×2<sup>0</sup> + 1×2<sup>−1</sup> + 1×2<sup>−2</sup> {{=}} 2.75}}.
In general, numbers in the base ''b'' system are of the form:
:<math>
(a_na_{n-1}\cdots a_1a_0.c_1 c_2 c_3\cdots)_b =
\sum_{k=0}^n a_kb^k + \sum_{k=1}^\infty c_kb^{-k}.
</math>
The numbers ''b''<sup>''k''</sup> and ''b''<sup>−''k''</sup> are the [[weight function|weights]] of the corresponding digits. The position ''k'' is the [[logarithm]] of the corresponding weight ''w'', that is <math>k = \log_{b} w = \log_{b} b^k</math>. The highest used position is close to the [[order of magnitude]] of the number.
The number of [[tally marks]] required in the [[unary numeral system]] for ''describing the weight'' would have been '''w'''. In the positional system, the number of digits required to describe it is only <math>k + 1 = \log_{b} w + 1</math>, for ''k'' ≥ 0. For example, to describe the weight 1000 then four digits are needed because <math>\log_{10} 1000 + 1 = 3 + 1</math>. The number of digits required to ''describe the position'' is <math>\log_b k + 1 = \log_b \log_b w + 1</math> (in positions 1, 10, 100,... only for simplicity in the decimal example).
:<math>\begin{array}{l|rrrrrrr}
\text{Position}
& 3
& 2
& 1
& 0
& -1
& -2
& \cdots
\\
\hline
\text{Weight}
& b^3 & b^2 & b^1 & b^0 & b^{-1} & b^{-2} & \cdots
\\
\text{Digit}
& a_3 & a_2 & a_1 & a_0 & c_1 & c_2 & \cdots
\\
\hline
\text{Decimal example weight}
& 1000 & 100 & 10 & 1 & 0.1 & 0.01 & \cdots
\\
\text{Decimal example digit}
& 4 & 3 & 2 & 7 & 0 & 0 & \cdots
\end{array}
</math>
Note that a number has a terminating or repeating expansion [[if and only if]] it is [[rational number|rational]]; this does not depend on the base. A number that terminates in one base may repeat in another (thus {{math|0.3<sub>10</sub> {{=}} 0.0100110011001...<sub>2</sub>}}). An irrational number stays aperiodic (with an infinite number of non-repeating digits) in all integral bases. Thus, for example in base 2, {{math|[[pi|π]] {{=}} 3.1415926...<sub>10</sub>}} can be written as the aperiodic 11.001001000011111...<sub>2</sub>.
Putting [[overline|overscores]], {{overline|''n''}}, or dots, ''ṅ'', above the common digits is a convention used to represent repeating rational expansions. Thus:
:14/11 = 1.272727272727... = 1.{{overline|27}} or 321.3217878787878... = 321.321{{Overline|78}}.
If ''b'' = ''p'' is a [[prime number]], one can define base-''p'' numerals whose expansion to the left never stops; these are called the [[p-adic number|''p''-adic numbers]].
==Generalized variable-length integers==
More general is using a [[mixed radix]] notation (here written [[Endianness|little-endian]]) like <math>a_0 a_1 a_2</math> for <math>a_0 + a_1 b_1 + a_2 b_1 b_2</math>, etc.
This is used in [[punycode]], one aspect of which is the representation of a sequence of non-negative integers of arbitrary size in the form of a sequence without delimiters, of "digits" from a collection of 36: a–z and 0–9, representing 0–25 and 26–35 respectively. A digit lower than a threshold value marks that it is the most-significant digit, hence the end of the number. The threshold value depends on the position in the number. For example, if the threshold value for the first digit is b (i.e. 1) then a (i.e. 0) marks the end of the number (it has just one digit), so in numbers of more than one digit, range is only b–9 (1–35), therefore the weight ''b''<sub>1</sub> is 35 instead of 36. Suppose the threshold values for the second and third digits are c (2), then the third digit has a weight 34 × 35 = 1190 and we have the following sequence:
a (0), ba (1), ca (2), .., 9a (35), bb (36), cb (37), .., 9b (70), bca (71), .., 99a (1260), bcb (1261), etc.
Unlike a regular based numeral system, there are numbers like 9b where 9 and b each represents 35; yet the representation is unique because ac and aca are not allowed – the a would terminate the number.
The flexibility in choosing threshold values allows optimization depending on the frequency of occurrence of numbers of various sizes.
The case with all threshold values equal to 1 corresponds to [[bijective numeration]], where the zeros correspond to separators of numbers with digits which are non-zero.
==See also==
{{columns-list|colwidth=22em|
*[[List of numeral systems]]
*[[Computer numbering formats]]
*[[Golden ratio base]]
*[[History of ancient numeral systems]]
*[[History of numbers]]
*[[List of numeral system topics]]
*[[N-ary (disambiguation)|''n''-ary]]
*[[Numeral (linguistics)|Number names]]
*[[Quater-imaginary base]]
*[[Quipu]]
*[[Recurring decimal]]
*[[Residue numeral system]]
*[[Long and short scales|Short and long scales]]
*[[Subtractive notation]]
*[[Scientific notation]]
*[[-yllion]]
*[[Numerical cognition]]
*[[Number system]]
*[[Unary numeral system]]}}
==References==
<references/>
==Sources==
*Georges Ifrah. ''The Universal History of Numbers : From Prehistory to the Invention of the Computer'', Wiley, 1999. {{isbn|0-471-37568-3}}.
*[[Donald Knuth|D. Knuth]]. ''[[The Art of Computer Programming]]''. Volume 2, 3rd Ed. [[Addison–Wesley]]. pp. 194–213, "Positional Number Systems".
*[[A.L. Kroeber]] (Alfred Louis Kroeber) (1876–1960), Handbook of the Indians of California, Bulletin 78 of the Bureau of American Ethnology of the Smithsonian Institution (1919)
*J.P. Mallory and D.Q. Adams, ''Encyclopedia of Indo-European Culture'', Fitzroy Dearborn Publishers, London and Chicago, 1997.
*{{cite book |author=Hans J. Nissen |author2=Peter Damerow |author3=Robert K. Englund |title=Archaic Bookkeeping: Early Writing and Techniques of Economic Administration in the Ancient Near East |year=1993 |publisher=University Of Chicago Press |isbn=978-0-226-58659-5}}
*{{cite book |last=Schmandt-Besserat |author-link=Denise Schmandt-Besserat |first=Denise |title=How Writing Came About |year=1996 |publisher=University of Texas Press |isbn=978-0-292-77704-0}}
*{{cite book |last=Zaslavsky |first=Claudia |title=Africa counts: number and pattern in African cultures |year=1999 |publisher=Chicago Review Press |isbn=978-1-55652-350-2}}
==External links==
{{Wiktionary|numeration|numeral}}
*{{Commonscat-inline|Numeral systems}}
{{Authority control}}
{{DEFAULTSORT:Numeral System}}
[[Category:Numeral systems| ]]
[[Category:Graphemes]]
[[Category:Mathematical notation]]
[[Category:Writing systems]]
[[te:తెలుగు]]' |
New page wikitext, after the edit (new_wikitext ) | '{{About|expressing numbers with symbols|different kinds of numbers|Number system|expressing numbers with words|Numeral (linguistics)}}
{{more footnotes|date=January 2011}}
{{Numeral systems}}
A '''numeral system''' (or '''system of numeration''') is a [[writing system]] for expressing numbers; that is, a [[mathematical notation]] for representing [[number]]s of a given set, using [[Numerical digit|digits]] or other symbols in a consistent manner.
[[File:Binary numeral system problems.jpg|thumb|bhahahahahahahahahahahahaha]]
The same sequence of symbols may represent different numbers in different numeral systems. For example, "11" represents the number ''eleven'' in the [[decimal numeral system]] (used in common life), the number ''three'' in the [[binary numeral system]] (used in [[computer]]s),bhahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahakjhflk;ajsdf;lkajsdfl;kjasdf;lkkjas;lfdlkja;lkdsdjf;lalskjflklkdsjflksajflksajflkjas;lkjfsa;lkfkdjs;lkadjf;lasddjfa;lsdldfj;aslljf;lkaskjdf;lkajs the number two in the [[unary numeral system]] (e.g. used in [[Tally marks|tallying]] scores).
The number the numeral represents is called its value.
Ideally, a numeral system will:
*Represent a useful set of numbers (e.g. all [[integer]]s, or [[rational number]]s)
*Give every number represented a unique representation (or at least a standard representation)
*Reflect the algebraic and arithmetic structure of the numbers.
For example, the usual [[decimal]] representation of whole numbers gives every nonzero whole number a unique representation as a [[finite set|finite]] [[sequence]] of [[numerical digit|digits]], beginning with a non-zero digit. However, when decimal representation is used for the [[rational number|rational]] or real numbers, such numbers, in general, have an infinite number of representations, for example 2.31 can also be written as 2.310, 2.3100000, 2.309999999..., etc., all of which have the same meaning except for some scientific and other contexts where greater precision is implied by a larger number of figures shown.
Numeral systems are sometimes called ''[[number system]]s'', but that name is ambiguous, as it could refer to different systems of numbers, such as the system of [[real number]]s, the system of [[complex number]]s, the system of [[p-adic number|''p''-adic numbers]], etc. Such systems are, however, not the topic of this article.
==Main numeral systems==
{{main|List of numeral systems}}
The most commonly used system of numerals is the [[Hindu–Arabic numeral system]].<ref>{{cite book |author=David Eugene Smith |author2=Louis Charles Karpinski |title=The Hindu-Arabic numerals |url=https://books.google.com/?id=wEw6AAAAMAAJ |year=1911 |publisher=Ginn and Company}}</ref> Two [[Indian mathematicians]] are credited with developing it. [[Aryabhata]] of [[Patna|Kusumapura]] developed the [[place-value notation]] in the 5th century and a century later [[Brahmagupta]] introduced the symbol for [[zero]]. The numeral system and the zero concept, developed by the Hindus in India, slowly spread to other surrounding countries due to their commercial and military activities with India. The Arabs adopted and modified it. Even today, the Arabs call the numerals which they use "Raqam Al-Hind" or the Hindu numeral system. The Arabs translated Hindu texts on numerology and spread them to the western world due to their trade links with them. The Western world modified them and called them the Arabic numerals, as they learned them from the Arabs. Hence the current western numeral system is the modified version of the Hindu numeral system developed in India. It also exhibits a great similarity to the Sanskrit–Devanagari notation, which is still used in India and neighbouring Nepal.
The simplest numeral system is the [[unary numeral system]], in which every [[natural number]] is represented by a corresponding number of symbols. If the symbol <tt>/</tt> is chosen, for example, then the number seven would be represented by <tt>///////</tt>. [[Tally marks]] represent one such system still in common use. The unary system is only useful for small numbers, although it plays an important role in [[theoretical computer science]]. [[Elias gamma coding]], which is commonly used in [[data compression]], expresses arbitrary-sized numbers by using unary to indicate the length of a binary numeral.
The unary notation can be abbreviated by introducing different symbols for certain new values. Very commonly, these values are powers of 10; so for instance, if / stands for one, − for ten and + for 100, then the number 304 can be compactly represented as <tt>+++ ////</tt> and the number 123 as <tt>+ − − ///</tt> without any need for zero. This is called [[sign-value notation]]. The ancient [[Egyptian numeral system]] was of this type, and the [[Roman numeral system]] was a modification of this idea.
More useful still are systems which employ special abbreviations for repetitions of symbols; for example, using the first nine letters of the alphabet for these abbreviations, with A standing for "one occurrence", B "two occurrences", and so on, one could then write C+ D/ for the number 304. This system is used when writing [[Chinese numerals]] and other East Asian numerals based on Chinese. The number system of the [[English language]] is of this type ("three hundred [and] four"), as are those of other spoken [[language]]s, regardless of what written systems they have adopted. However, many languages use mixtures of bases, and other features, for instance 79 in French is ''soixante dix-neuf'' ({{nowrap|60 + 10 + 9}}) and in Welsh is ''pedwar ar bymtheg a thrigain'' ({{nowrap|4 + (5 + 10) + (3 × 20)}}) or (somewhat archaic) ''pedwar ugain namyn un'' ({{nowrap|4 × 20 − 1}}). In English, one could say "four score less one", as in the famous [[Gettysburg Address]] representing "87 years ago" as "four score and seven years ago".
More elegant is a ''[[positional notation|positional system]]'', also known as place-value notation. Again working in base 10, ten different digits 0, ..., 9 are used and the position of a digit is used to signify the power of ten that the digit is to be multiplied with, as in {{nowrap|304 {{=}} 3×100 + 0×10 + 4×1}} or more precisely {{nowrap|3×10<sup>2</sup> + 0×10<sup>1</sup> + 4×10<sup>0</sup>}}. Note that zero, which is not needed in the other systems, is of crucial importance here, in order to be able to "skip" a power. The Hindu–Arabic numeral system, which originated in India and is now used throughout the world, is a positional base 10 system.
Arithmetic is much easier in positional systems than in the earlier additive ones; furthermore, additive systems need a large number of different symbols for the different powers of 10; a positional system needs only ten different symbols (assuming that it uses base 10).
The positional decimal system is presently universally used in human writing. The base 1000 is also used (albeit not universally), by grouping the digits and considering a sequence of three decimal digits as a single digit. This is the meaning of the common notation 1,000,234,567 used for very large numbers.
In [[computers]], the main numeral systems are based on the positional system in base 2 ([[binary numeral system]]), with two [[binary digit]]s, 0 and 1. Positional systems obtained by grouping binary digits by three ([[octal numeral system]]) or four ([[hexadecimal numeral system]]) are commonly used. For very large integers, bases 2<sup>32</sup> or 2<sup>64</sup> (grouping binary digits by 32 or 64, the length of the [[machine word]]) are used, as, for example, in [[GNU Multiple Precision Arithmetic Library|GMP]].
In certain biological systems, the [[unary coding]] system is employed. Unary numerals used in the [[neural circuit]]s responsible for [[birdsong]] production.<ref> Fiete, I. R.; Seung, H. S. (2007). "Neural network models of birdsong production, learning, and coding". In Squire, L.; Albright, T.; Bloom, F.; Gage, F.; Spitzer, N. New Encyclopedia of Neuroscience.</ref> The nucleus in the brain of the songbirds that plays a part in both the learning and the production of bird song is the HVC ([[high vocal center]]). The command signals for different notes in the birdsong emanate from different points in the HVC. This coding works as space coding which is an efficient strategy for biological circuits due to its inherent simplicity and robustness.
The numerals used when writing numbers with digits or symbols can be divided into two types that might be called the [[Arithmetic sequence|arithmetic]] numerals (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) and the [[Geometric sequence|geometric]] numerals (1, 10, 100, 1000, 10000 ...), respectively. The sign-value systems use only the geometric numerals and the positional systems use only the arithmetic numerals. A sign-value system does not need arithmetic numerals because they are made by repetition (except for the [[Greek numerals|Ionic system]]), and a positional system does not need geometric numerals because they are made by position. However, the spoken language uses ''both'' arithmetic and geometric numerals.
In certain areas of computer science, a modified base ''k'' positional system is used, called [[bijective numeration]], with digits 1, 2, ..., ''k'' ({{nowrap|''k'' ≥ 1}}), and zero being represented by an empty string. This establishes a [[bijection]] between the set of all such digit-strings and the set of non-negative integers, avoiding the non-uniqueness caused by leading zeros. Bijective base-''k'' numeration is also called ''k''-adic notation, not to be confused with [[p-adic number|''p''-adic numbers]]. Bijective base 1 is the same as unary.
==Positional systems in detail==<!--This section is linked from [[Cantor set]]-->
{{See also|Positional notation}}
In a positional base ''b'' numeral system (with ''b'' a [[natural number]] greater than 1 known as the [[radix]]), ''b'' basic symbols (or digits) corresponding to the first ''b'' natural numbers including zero are used. To generate the rest of the numerals, the position of the symbol in the figure is used. The symbol in the last position has its own value, and as it moves to the left its value is multiplied by ''b''.
For example, in the [[decimal]] system (base 10), the numeral 4327 means {{math|('''4'''×10<sup>3</sup>) + ('''3'''×10<sup>2</sup>) + ('''2'''×10<sup>1</sup>) + ('''7'''×10<sup>0</sup>)}}, noting that {{math|10<sup>0</sup> {{=}} 1}}.
In general, if ''b'' is the base, one writes a number in the numeral system of base ''b'' by expressing it in the form {{math|''a''<sub>''n''</sub>''b''<sup>''n''</sup> + ''a''<sub>''n'' − 1</sub>''b''<sup>''n'' − 1</sup> + ''a''<sub>''n'' − 2</sub>''b''<sup>''n'' − 2</sup> + ... + ''a''<sub>0</sub>''b''<sup>0</sup>}} and writing the enumerated digits {{math|''a''<sub>n</sub>''a''<sub>''n'' − 1</sub>''a''<sub>''n'' − 2</sub> ... ''a''<sub>0</sub>}} in descending order. The digits are natural numbers between 0 and {{math|''b'' − 1}}, inclusive.
If a text (such as this one) discusses multiple bases, and if ambiguity exists, the base (itself represented in base 10) is added in subscript to the right of the number, like this: number<sub>base</sub>. Unless specified by context, numbers without subscript are considered to be decimal.
By using a dot to divide the digits into two groups, one can also write fractions in the positional system. For example, the base 2 numeral 10.11 denotes {{math|1×2<sup>1</sup> + 0×2<sup>0</sup> + 1×2<sup>−1</sup> + 1×2<sup>−2</sup> {{=}} 2.75}}.
In general, numbers in the base ''b'' system are of the form:
:<math>
(a_na_{n-1}\cdots a_1a_0.c_1 c_2 c_3\cdots)_b =
\sum_{k=0}^n a_kb^k + \sum_{k=1}^\infty c_kb^{-k}.
</math>
The numbers ''b''<sup>''k''</sup> and ''b''<sup>−''k''</sup> are the [[weight function|weights]] of the corresponding digits. The position ''k'' is the [[logarithm]] of the corresponding weight ''w'', that is <math>k = \log_{b} w = \log_{b} b^k</math>. The highest used position is close to the [[order of magnitude]] of the number.
The number of [[tally marks]] required in the [[unary numeral system]] for ''describing the weight'' would have been '''w'''. In the positional system, the number of digits required to describe it is only <math>k + 1 = \log_{b} w + 1</math>, for ''k'' ≥ 0. For example, to describe the weight 1000 then four digits are needed because <math>\log_{10} 1000 + 1 = 3 + 1</math>. The number of digits required to ''describe the position'' is <math>\log_b k + 1 = \log_b \log_b w + 1</math> (in positions 1, 10, 100,... only for simplicity in the decimal example).
:<math>\begin{array}{l|rrrrrrr}
\text{Position}
& 3
& 2
& 1
& 0
& -1
& -2
& \cdots
\\
\hline
\text{Weight}
& b^3 & b^2 & b^1 & b^0 & b^{-1} & b^{-2} & \cdots
\\
\text{Digit}
& a_3 & a_2 & a_1 & a_0 & c_1 & c_2 & \cdots
\\
\hline
\text{Decimal example weight}
& 1000 & 100 & 10 & 1 & 0.1 & 0.01 & \cdots
\\
\text{Decimal example digit}
& 4 & 3 & 2 & 7 & 0 & 0 & \cdots
\end{array}
</math>
Note that a number has a terminating or repeating expansion [[if and only if]] it is [[rational number|rational]]; this does not depend on the base. A number that terminates in one base may repeat in another (thus {{math|0.3<sub>10</sub> {{=}} 0.0100110011001...<sub>2</sub>}}). An irrational number stays aperiodic (with an infinite number of non-repeating digits) in all integral bases. Thus, for example in base 2, {{math|[[pi|π]] {{=}} 3.1415926...<sub>10</sub>}} can be written as the aperiodic 11.001001000011111...<sub>2</sub>.
Putting [[overline|overscores]], {{overline|''n''}}, or dots, ''ṅ'', above the common digits is a convention used to represent repeating rational expansions. Thus:
:14/11 = 1.272727272727... = 1.{{overline|27}} or 321.3217878787878... = 321.321{{Overline|78}}.
If ''b'' = ''p'' is a [[prime number]], one can define base-''p'' numerals whose expansion to the left never stops; these are called the [[p-adic number|''p''-adic numbers]].
==Generalized variable-length integers==
More general is using a [[mixed radix]] notation (here written [[Endianness|little-endian]]) like <math>a_0 a_1 a_2</math> for <math>a_0 + a_1 b_1 + a_2 b_1 b_2</math>, etc.
This is used in [[punycode]], one aspect of which is the representation of a sequence of non-negative integers of arbitrary size in the form of a sequence without delimiters, of "digits" from a collection of 36: a–z and 0–9, representing 0–25 and 26–35 respectively. A digit lower than a threshold value marks that it is the most-significant digit, hence the end of the number. The threshold value depends on the position in the number. For example, if the threshold value for the first digit is b (i.e. 1) then a (i.e. 0) marks the end of the number (it has just one digit), so in numbers of more than one digit, range is only b–9 (1–35), therefore the weight ''b''<sub>1</sub> is 35 instead of 36. Suppose the threshold values for the second and third digits are c (2), then the third digit has a weight 34 × 35 = 1190 and we have the following sequence:
a (0), ba (1), ca (2), .., 9a (35), bb (36), cb (37), .., 9b (70), bca (71), .., 99a (1260), bcb (1261), etc.
Unlike a regular based numeral system, there are numbers like 9b where 9 and b each represents 35; yet the representation is unique because ac and aca are not allowed – the a would terminate the number.
The flexibility in choosing threshold values allows optimization depending on the frequency of occurrence of numbers of various sizes.
The case with all threshold values equal to 1 corresponds to [[bijective numeration]], where the zeros correspond to separators of numbers with digits which are non-zero.
==See also==
{{columns-list|colwidth=22em|
*[[List of numeral systems]]
*[[Computer numbering formats]]
*[[Golden ratio base]]
*[[History of ancient numeral systems]]
*[[History of numbers]]
*[[List of numeral system topics]]
*[[N-ary (disambiguation)|''n''-ary]]
*[[Numeral (linguistics)|Number names]]
*[[Quater-imaginary base]]
*[[Quipu]]
*[[Recurring decimal]]
*[[Residue numeral system]]
*[[Long and short scales|Short and long scales]]
*[[Subtractive notation]]
*[[Scientific notation]]
*[[-yllion]]
*[[Numerical cognition]]
*[[Number system]]
*[[Unary numeral system]]}}
==References==
<references/>
==Sources==
*Georges Ifrah. ''The Universal History of Numbers : From Prehistory to the Invention of the Computer'', Wiley, 1999. {{isbn|0-471-37568-3}}.
*[[Donald Knuth|D. Knuth]]. ''[[The Art of Computer Programming]]''. Volume 2, 3rd Ed. [[Addison–Wesley]]. pp. 194–213, "Positional Number Systems".
*[[A.L. Kroeber]] (Alfred Louis Kroeber) (1876–1960), Handbook of the Indians of California, Bulletin 78 of the Bureau of American Ethnology of the Smithsonian Institution (1919)
*J.P. Mallory and D.Q. Adams, ''Encyclopedia of Indo-European Culture'', Fitzroy Dearborn Publishers, London and Chicago, 1997.
*{{cite book |author=Hans J. Nissen |author2=Peter Damerow |author3=Robert K. Englund |title=Archaic Bookkeeping: Early Writing and Techniques of Economic Administration in the Ancient Near East |year=1993 |publisher=University Of Chicago Press |isbn=978-0-226-58659-5}}
*{{cite book |last=Schmandt-Besserat |author-link=Denise Schmandt-Besserat |first=Denise |title=How Writing Came About |year=1996 |publisher=University of Texas Press |isbn=978-0-292-77704-0}}
*{{cite book |last=Zaslavsky |first=Claudia |title=Africa counts: number and pattern in African cultures |year=1999 |publisher=Chicago Review Press |isbn=978-1-55652-350-2}}
==External links==
{{Wiktionary|numeration|numeral}}
*{{Commonscat-inline|Numeral systems}}
{{Authority control}}
{{DEFAULTSORT:Numeral System}}
[[Category:Numeral systems| ]]
[[Category:Graphemes]]
[[Category:Mathematical notation]]
[[Category:Writing systems]]
[[te:తెలుగు]]' |