HOME

TheInfoList



OR:

Bijective numeration is any numeral system in which every non-negative integer can be represented in exactly one way using a finite string of digits. The name refers to the
bijection In mathematics, a bijection, also known as a bijective function, one-to-one correspondence, or invertible function, is a function between the elements of two sets, where each element of one set is paired with exactly one element of the other s ...
(i.e. one-to-one correspondence) that exists in this case between the set of non-negative integers and the set of finite strings using a finite set of symbols (the "digits"). Most ordinary numeral systems, such as the common
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 of the Hindu–Arabic numeral ...
system, are not bijective because more than one string of digits can represent the same positive integer. In particular, adding
leading zero A leading zero is any 0 digit that comes before the first nonzero digit in a number string in positional notation.. For example, James Bond's famous identifier, 007, has two leading zeros. Any zeroes appearing to the left of the first non-zero d ...
es does not change the value represented, so "1", "01" and "001" all represent the number
one 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment of length 1. I ...
. Even though only the first is usual, the fact that the others are possible means that the decimal system is not bijective. However, the unary numeral system, with only one digit, ''is'' bijective. A bijective base-''k'' numeration is a bijective
positional notation Positional notation (or place-value notation, or positional numeral system) usually denotes the extension to any base of the Hindu–Arabic numeral system (or decimal system). More generally, a positional system is a numeral system in which the ...
. It uses a string of digits from the set (where ''k'' ≥ 1) to encode each positive integer; a digit's position in the string defines its value as a multiple of a power of ''k''. calls this notation ''k''-adic, but it should not be confused with the ''p''-adic numbers: bijective numerals are a system for representing ordinary integers by finite strings of nonzero digits, whereas the ''p''-adic numbers are a system of mathematical values that contain the integers as a subset and may need infinite sequences of digits in any numerical representation.


Definition

The base-''k'' bijective numeration system uses the digit-set (''k'' ≥ 1) to uniquely represent every non-negative integer, as follows: * The integer zero is represented by the '' empty string''. * The integer represented by the nonempty digit-string :: :is ::. * The digit-string representing the integer ''m'' > 0 is :: :where :: \begin a_0 & = m - q_0 k , & q_0 & = f\left(\frac m k \right) & \\ a_1 & = q_0 - q_1 k , & q_1 & = f\left(\frac k \right) & \\ a_2 & = q_1 - q_2 k , & q_2 & = f\left(\frac k \right) & \\ & \,\,\,\vdots & & \,\,\,\vdots \\ a_n & = q_ - 0 k , & q_n & = f\left(\frac k \right) = 0 \end :and ::f(x) = \lceil x \rceil - 1, :\lceil x \rceil being the least integer not less than ''x'' (the ceiling function). In contrast, standard
positional notation Positional notation (or place-value notation, or positional numeral system) usually denotes the extension to any base of the Hindu–Arabic numeral system (or decimal system). More generally, a positional system is a numeral system in which the ...
can be defined with a similar recursive algorithm where ::f(x) = \lfloor x \rfloor,


Extension to integers

For base k > 1, the bijective base-k numeration system could be extended to negative integers in the same way as the standard base-b numeral system by use of an infinite number of the digit d_, where f(d_) = k - 1, represented as a left-infinite sequence of digits \ldots d_d_d_ = \overline. This is because the Euler summation :g(\overline) = \sum_^\infty f(d_) k^i = -\frac = -1 meaning that :g(\overlined_) = f(d_) \sum_^\infty f(d_) k^i = 1 + \sum_^\infty f(d_) k^i = 0 and for every positive number n with bijective numeration digit representation d is represented by \overlined_d. For base k > 2, negative numbers n < -1 are represented by \overlined_d with i < k - 1, while for base k = 2, negative numbers n < -1 are represented by \overlined. This is similar to how in signed-digit representations, all integers n with digit representations d are represented as \overlined where f(d_0) = 0. This representation is no longer bijective, as the entire set of left-infinite sequences of digits is used to represent the k-adic integers, of which the integers are only a subset.


Properties of bijective base-''k'' numerals

For a given base k \geq 2, * the number of digits in the bijective base-''k'' numeral representing a nonnegative integer ''n'' is *: \lfloor \log_k ((n+1)(k - 1))\rfloor, in contrast to \lceil \log_k(n+1)\rceil for ordinary base-''k'' numerals;
if ''k'' = 1 (i.e., unary), then the number of digits is just ''n''; * the smallest nonnegative integer, representable in a bijective base-''k'' numeral of length l \geq 0, is *: min(l)=\frac; * the largest nonnegative integer, representable in a bijective base-''k'' numeral of length l \geq 0, is *: max(l)=\frac, equivalent to max(l)=k \times min(l), or max(l)=min(l+1)-1; * the bijective base-''k'' and ordinary base-''k'' numerals for a nonnegative integer ''n'' ''are identical'' if and only if the ordinary numeral does not contain the digit ''0'' (or, equivalently, the bijective numeral is neither the empty string nor contains the digit ''k''). For a given base k \geq 1, * there are exactly k^l bijective base-''k'' numerals of length l \geq 0; * a list of bijective base-''k'' numerals, in natural order of the integers represented, is automatically in
shortlex order In mathematics, and particularly in the theory of formal languages, shortlex is a total ordering for finite sequences of objects that can themselves be totally ordered. In the shortlex ordering, sequences are primarily sorted by cardinality (length) ...
(shortest first, lexicographical within each length). Thus, using λ to denote the empty string, the base 1, 2, 3, 8, 10, 12, and 16 numerals are as follows (where the ordinary representations are listed for comparison):


Examples

:34152 (in bijective base-5) = 3×54 + 4×53 + 1×52 + 5×51 + 2×1 = 2427 (in decimal). :119A (in bijective base-10, with "A" representing the digit value ten) = 1×103 + 1×102 + 9×101 + 10×1 = 1200 (in decimal). :A typical alphabetic list with more than 26 elements is bijective, using the order of A, B, C...X, Y, Z, AA, AB, AC...ZX, ZY, ZZ, AAA, AAB, AAC...


The bijective base-10 system

The bijective base-10 system is a base
ten Ten, TEN or 10 may refer to: * 10, an even natural number following 9 and preceding 11 * one of the years 10 BC, AD 10, 1910 and 2010 * October, the tenth month of the year Places * Mount Ten, in Vietnam * Tongren Fenghuang Airport (IATA code ...
positional numeral system that does not use a digit to represent zero. It instead has a digit to represent ten, such as ''A''. As with conventional
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 of the Hindu–Arabic numeral ...
, each digit position represents a power of ten, so for example 123 is "one hundred, plus two tens, plus three units." All
positive integer In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country"). Numbers used for counting are called ''cardinal n ...
s that are represented solely with non-zero digits in conventional decimal (such as 123) have the same representation in decimal without a zero. Those that use a zero must be rewritten, so for example 10 becomes A, conventional 20 becomes 1A, conventional 100 becomes 9A, conventional 101 becomes A1, conventional 302 becomes 2A2, conventional 1000 becomes 99A, conventional 1110 becomes AAA, conventional 2010 becomes 19AA, and so on.
Addition Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol ) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication and Division (mathematics), division. ...
and
multiplication Multiplication (often denoted by the cross symbol , by the mid-line dot operator , by juxtaposition, or, on computers, by an asterisk ) is one of the four elementary mathematical operations of arithmetic, with the other ones being additi ...
in decimal without a zero are essentially the same as with conventional decimal, except that carries occur when a position exceeds ten, rather than when it exceeds nine. So to calculate 643 + 759, there are twelve units (write 2 at the right and carry 1 to the tens), ten tens (write A with no need to carry to the hundreds), thirteen hundreds (write 3 and carry 1 to the thousands), and one thousand (write 1), to give the result 13A2 rather than the conventional 1402.


The bijective base-26 system

In the bijective base-26 system one may use the Latin alphabet letters "A" to "Z" to represent the 26 digit values
one 1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement. For example, a line segment of ''unit length'' is a line segment of length 1. I ...
to twenty-six. (A=1, B=2, C=3, ..., Z=26) With this choice of notation, the number sequence (starting from 1) begins A, B, C, ..., X, Y, Z, AA, AB, AC, ..., AX, AY, AZ, BA, BB, BC, ... Each digit position represents a power of twenty-six, so for example, the numeral ABC represents the value = 731 in base 10. Many spreadsheets including Microsoft Excel use this system to assign labels to the columns of a spreadsheet, starting A, B, C, ..., Z, AA, AB, ..., AZ, BA, ..., ZZ, AAA, etc. For instance, in Excel 2013, there can be up to 16384 columns (214 in binary code), labeled from A to XFD. A variant of this system is used to name variable stars.. It can be applied to any problem where a systematic naming using letters is desired, while using the shortest possible strings.


Historical notes

The fact that every non-negative integer has a unique representation in bijective base-''k'' (''k'' ≥ 1) is a " folk theorem" that has been rediscovered many times. Early instances are for the case ''k'' = 10, and and for all ''k'' ≥ 1. Smullyan uses this system to provide a
Gödel numbering In mathematical logic, a Gödel numbering is a function that assigns to each symbol and well-formed formula of some formal language a unique natural number, called its Gödel number. The concept was developed by Kurt Gödel for the proof of ...
of the strings of symbols in a logical system; Böhm uses these representations to perform computations in the programming language P′′. mentions the special case of ''k'' = 10, and discusses the cases ''k'' ≥ 2. appears to be another rediscovery, and hypothesizes that if ancient numeration systems used bijective base-''k'', they might not be recognized as such in archaeological documents, due to general unfamiliarity with this system.


Notes


References

* . * . * . * . (Discusses bijective base-10.) * . (Discusses bijective base-''k'' for all ''k'' ≥ 2.) * . {{Use dmy dates, date=July 2020 Numeral systems Non-standard positional numeral systems