HOME

TheInfoList



OR:

Mixed radix
numeral system A numeral system is a writing system for expressing numbers; that is, a mathematical notation for representing numbers of a given set, using digits or other symbols in a consistent manner. The same sequence of symbols may represent differe ...
s are
non-standard positional numeral systems Non-standard positional numeral systems here designates numeral systems that may loosely be described as positional systems, but that do not entirely comply with the following description of standard positional systems: :In a standard positional ...
in which the numerical base varies from position to position. Such numerical representation applies when a quantity is expressed using a sequence of units that are each a multiple of the next smaller one, but not by the same factor. Such units are common for instance in measuring time; a time of 32 weeks, 5 days, 7 hours, 45 minutes, 15 seconds, and 500 milliseconds might be expressed as a number of minutes in mixed-radix notation as: ... 32, 5, 07, 45; 15, 500 ... ∞, 7, 24, 60; 60, 1000 or as :325707244560.15605001000 In the tabular format, the digits are written above their base, and a
semicolon The semicolon (or semi-colon) is a symbol commonly used as orthographic punctuation. In the English language, a semicolon is most commonly used to link (in a single sentence) two independent clauses that are closely related in thought, such as ...
indicates the
radix point alt=Four types of separating decimals: a) 1,234.56. b) 1.234,56. c) 1'234,56. d) ١٬٢٣٤٫٥٦., Both a full_stop.html" ;"title="comma and a full stop">comma and a full stop (or period) are generally accepted decimal separators for interna ...
. In numeral format, each digit has its associated base attached as a subscript, and the radix point is marked by a full stop or period. The base for each digit is the number of corresponding units that make up the next larger unit. As a consequence there is no base (written as ∞) for the first (most significant) digit, since here the "next larger unit" does not exist (and one could not add a larger unit of "month" or "year" to the sequence of units, as they are not integer multiples of "week").


Examples

The most familiar example of mixed-radix systems is in timekeeping and calendars. Western time radices include, both cardinally and ordinally,
decimal The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers (''decimal fractions'') of th ...
years, decades, and centuries,
septenary There are many different numeral systems, that is, writing systems for expressing numbers. By culture / time period "A ''base'' is a natural number B whose ''powers'' (B multiplied by itself some number of times) are specially designated w ...
for days in a week,
duodecimal The duodecimal system, also known as base twelve or dozenal, is a positional numeral system using twelve as its base. In duodecimal, the number twelve is denoted "10", meaning 1 twelve and 0 units; in the decimal system, this number is i ...
months in a year, bases 28–31 for days within a month, as well as base 52 for weeks in a year. Time is further divided into hours counted in base 24 hours,
sexagesimal Sexagesimal, also known as base 60, is a numeral system with 60 (number), sixty as its radix, base. It originated with the ancient Sumerians in the 3rd millennium BC, was passed down to the ancient Babylonians, and is still used—in a modified fo ...
minutes within an hour and seconds within a minute, with decimal fractions of the latter. A standard form for dates is , which would be a mixed radix number by this definition, with the consideration that the quantities of days vary both per month, and with leap years. One proposed calendar instead uses base 13 months,
quaternary The Quaternary ( ) is the current and most recent of the three periods of the Cenozoic Era in the geologic time scale of the International Commission on Stratigraphy (ICS), as well as the current and most recent of the twelve periods of the ...
weeks, and septenary days. A mixed radix numeral system is often best expressed with a table. A table describing what can be understood as the 604800 seconds of a week is as follows, with the week beginning on hour 0 of day 0 (midnight on Sunday): In this numeral system, the mixed radix numeral 37172451605760 seconds would be interpreted as 17:51:57 on Wednesday, and 0702402602460 would be 00:02:24 on Sunday. Ad hoc notations for mixed radix numeral systems are commonplace. The
Maya calendar The Maya calendar is a system of calendars used in Pre-Columbian era, pre-Columbian Mesoamerica and in many modern communities in the Guatemalan highlands, Veracruz, Oaxaca and Chiapas, Mexico. The essentials of the Maya calendar are based upon ...
consists of several overlapping cycles of different radices. A short count '' tzolk'in'' overlaps base 20 named days with tridecimal numbered days. A '' haab''' consists of vigesimal days,
octodecimal There are many different numeral systems, that is, writing systems for expressing numbers. By culture / time period "A ''base'' is a natural number B whose ''powers'' (B multiplied by itself some number of times) are specially designated wit ...
''months'', and base-52 years forming a ''round''. In addition, a ''long count'' of vigesimal days, octodecimal ''winal'', then base 24 ''tun'', ''k'atun'', ''b'ak'tun'', etc., tracks historical dates. A second example of a mixed-radix numeral system in current use is in the design and use of currency, where a limited set of denominations are printed or minted with the objective of being able to represent any monetary quantity; the amount of money is then represented by the number of coins or banknotes of each denomination. When deciding which denominations to create (and hence which radices to mix), a compromise is aimed for between a minimal number of different denominations, and a minimal number of individual pieces of coinage required to represent typical quantities. So, for example, in the UK, banknotes are printed for £50, £20, £10 and £5, and coins are minted for £2, £1, 50p, 20p, 10p, 5p, 2p and 1p—these follow the 1-2-5 series of preferred values. Prior to
decimalisation Decimalisation or decimalization (see American and British English spelling differences, spelling differences) is the conversion of a system of currency or of weights and measures to units related by Power of 10, powers of 10. Most countries have ...
, monetary amounts in the UK were described in terms of pounds, shillings, and pence, with 12 pence per shilling and 20 shillings per pound, so that "£1 7s 6d", for example, corresponded to the mixed-radix numeral 1720612.
United States customary units United States customary units form a system of measurement units commonly used in the United States and most U.S. territories since being standardized and adopted in 1832. The United States customary system developed from English units that ...
are generally mixed radix systems, with multipliers varying from one size unit to the next in the same manner that units of time do. Mixed-radix representation is also relevant to mixed-radix versions of the
Cooley–Tukey FFT algorithm The Cooley–Tukey algorithm, named after James Cooley, J. W. Cooley and John Tukey, is the most common fast Fourier transform (FFT) algorithm. It re-expresses the discrete Fourier transform (DFT) of an arbitrary composite number, composite size ...
, in which the indices of the input values are expanded in a mixed-radix representation, the indices of the output values are expanded in a corresponding mixed-radix representation with the order of the bases and digits reversed, and each subtransform can be regarded as a Fourier transform in one digit for all values of the remaining digits.


Manipulation

Mixed-radix numbers of the same base can be manipulated using a generalization of manual arithmetic algorithms. Conversion of values from one mixed base to another is easily accomplished by first converting the place values of the one system into the other, and then applying the digits from the one system against these. APL and J include operators to convert to and from mixed-radix systems.


Factorial number system

Another proposal is the so-called
factorial In mathematics, the factorial of a non-negative denoted is the Product (mathematics), product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial: \begin n! &= n \times ...
number system: For example, the biggest number that could be represented with six digits would be 543210 which equals 719 in
decimal The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers (''decimal fractions'') of th ...
: 5×5! + 4×4! + 3×3! + 2×2! + 1×1! It might not be clear at first sight but the factorial based numbering system is unambiguous and complete. Every number can be represented in one and only one way because the sum of respective factorials multiplied by the index is always the next factorial minus one: : \sum_^ (( +11)-1) \cdot ( 1)! = ( +11)! - 1 There is a natural mapping between the integers 0, ..., ''n''! − 1 and
permutation In mathematics, a permutation of a set can mean one of two different things: * an arrangement of its members in a sequence or linear order, or * the act or process of changing the linear order of an ordered set. An example of the first mean ...
s of ''n'' elements in lexicographic order, which uses the factorial representation of the integer, followed by an interpretation as a Lehmer code. The above equation is a particular case of the following general rule for any radix (either standard or mixed) base representation which expresses the fact that any radix (either standard or mixed) base representation is unambiguous and complete. Every number can be represented in one and only one way because the sum of respective weights multiplied by the index is always the next weight minus one: : \sum_^ (m_ - 1) \cdot M_i = M_ - 1 , where M_i = \prod_^ m_j, m_j > 1, M_0 = 1 , which can be easily proved with
mathematical induction Mathematical induction is a method for mathematical proof, proving that a statement P(n) is true for every natural number n, that is, that the infinitely many cases P(0), P(1), P(2), P(3), \dots  all hold. This is done by first proving a ...
.


Primorial number system

Another proposal is the number system with successive prime numbers as radix, whose place values are
primorial In mathematics, and more particularly in number theory, primorial, denoted by "", is a function from natural numbers to natural numbers similar to the factorial function, but rather than successively multiplying positive integers, the function ...
numbers, considered by S. S. Pillai, Richard K. Guy , and other authors: Victor Ufnarovski and Bo Åhlander
How to Differentiate a Number
Journal of Integer Sequences, Vol. 6, 2003, #03.3.4.
: \sum_^ (p_ - 1) \cdot p_i\# = p_\# - 1 where p_i\# = \prod_^ p_j, and ''pj'' = ''j''th prime, ''p''0# = ''p''0 = 1.


References

*
Donald Knuth Donald Ervin Knuth ( ; born January 10, 1938) is an American computer scientist and mathematician. He is a professor emeritus at Stanford University. He is the 1974 recipient of the ACM Turing Award, informally considered the Nobel Prize of comp ...
. ''
The Art of Computer Programming ''The Art of Computer Programming'' (''TAOCP'') is a comprehensive multi-volume monograph written by the computer scientist Donald Knuth presenting programming algorithms and their analysis. it consists of published volumes 1, 2, 3, 4A, and 4 ...
'', Volume 2: ''Seminumerical Algorithms'', Third Edition. Addison-Wesley, 1997. {{ISBN, 0-201-89684-2. Pages 65–66, 208–209, and 290. *
Georg Cantor Georg Ferdinand Ludwig Philipp Cantor ( ; ;  – 6 January 1918) was a mathematician who played a pivotal role in the creation of set theory, which has become a foundations of mathematics, fundamental theory in mathematics. Cantor establi ...
. ''Über einfache Zahlensysteme'', Zeitschrift für Math. und Physik 14(1869), 121–128.


External links


Mixed Radix Calculator
— Mixed Radix Calculator in C# Non-standard positional numeral systems