Skew binary number system non-zero digits, a form called the sparse representations of numbers by Okasaki, incrementation and decrementation can be performed in constant time. Other arithmetic operations are performed by switching between the skew binary representation and the binary representation. Given a skew binary number, its value can be computed by a loop, computing the successive values of formula_4 and adding it once or twice for each formula_5 such that the formula_5th digit is 1 or 2 respectively. A more efficient method is now given, with only bit representation and one substraction. The skew binary number of the form formula_7 without 2 and
Combinatorial number system of a set "S" is a subset of "S" with "k" (distinct) elements. The main purpose of the combinatorial number system is to provide a representation, each by a single number, of all formula_1 possible "k"-combinations of a set "S" of "n" elements. Choosing, for any "n", } as such a set, it can be arranged that the representation of a given "k"-combination "C" is independent of the value of "n" (although "n" must of course be sufficiently large); in other words considering "C" as a subset of a larger set by increasing "n" will not change the number that