A number in a positional number system is represented as an expansion
where
is theradix (orbase) with,
is the exponent (position or place),
are digits from thefinite set of digits, usually with
Thecardinality is called thelevel of decomposition.
A positional number system orcoding system is a pair
with radix and set of digits, and we write the standard set of digits with digits as
Desirable are coding systems with the features:
Every number in, e. g. the integers, theGaussian integers or the integers, isuniquely representable as afinite code, possibly with asign ±.
Every number in thefield of fractions, which possibly iscompleted for themetric given by yielding or, is representable as an infinite series which converges under for, and themeasure of the set of numbers with more than one representation is 0. The latter requires that the set be minimal, i.e. forreal numbers and for complex numbers.
Binary coding systems of complex numbers, i.e. systems with the digits, are of practical interest.[9]Listed below are some coding systems (all are special cases of the systems above) and resp. codes for the (decimal) numbers−1, 2, −2,i.The standard binary (which requires a sign, first line) and the "negabinary" systems (second line) are also listed for comparison. They do not have a genuine expansion fori.
As in all positional number systems with anArchimedean absolute value, there are some numbers withmultiple representations. Examples of such numbers are shown in the right column of the table. All of them arerepeating fractions with the repetend marked by a horizontal line above it.
If the set of digits is minimal, the set of such numbers has ameasure of 0. This is the case with all the mentioned coding systems.
The almost binary quater-imaginary system is listed in the bottom line for comparison purposes. There, real and imaginary part interleave each other.
The complex numbers with integer part all zeroes in the basei – 1 system
Of particular interest are thequater-imaginary base (base2i) and the base−1 ±i systems discussed below, both of which can be used to finitely represent theGaussian integers without sign.
Base−1 ±i, using digits0 and1, was proposed by S. Khmelnik in 1964[3] and Walter F. Penney in 1965.[4][6]
The rounding region of an integer – i.e., a set of complex (non-integer) numbers that share the integer part of their representation in this system – has in the complex plane a fractal shape: thetwindragon (see figure). This set is, by definition, all points that can be written as with. can be decomposed into 16 pieces congruent to. Notice that if is rotated counterclockwise by 135°, we obtain two adjacent sets congruent to, because. The rectangle in the center intersects the coordinate axes counterclockwise at the following points:,, and, and. Thus, contains all complex numbers with absolute value ≤ 1/15.[12]
As a consequence, there is aninjection of the complex rectangle