Metraipolis › archive › dc_399c47cf2573

Combinatorial number system — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Combinatorial_number_system
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-06T16:44:27.229Z
SHA-256 of the archived text
9a7416f4774b9ee2ae6e445013e05c9b8c9113f34bfaa65e6440ada208a0d5fb
Stable URL of this page
https://metraipolis.com/documento/dc_399c47cf2573

How to cite

Combinatorial number system — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Combinatorial_number_system (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_399c47cf2573 (Metraipolis archive dc_399c47cf2573, sha256 9a7416f4774b9ee2ae6e445013e05c9b8c9113f34bfaa65e6440ada208a0d5fb)
BibTeX
@misc{dc399c47cf2573,
  title = {Combinatorial number system — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Combinatorial_number_system},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_399c47cf2573; sha256 9a7416f4774b9ee2ae6e445013e05c9b8c9113f34bfaa65e6440ada208a0d5fb},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Combinatorial_number_system. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In mathematics, and in particular in combinatorics, the combinatorial number system of degree k (for some positive integer k), also referred to as combinadics, or the Macaulay representation of an integer, is a correspondence between natural numbers (taken to include 0) N and k-combinations. The combinations are represented as strictly decreasing sequences ck > ... > c2 > c1 ≥ 0 where each ci corresponds to the index of a chosen element in a given k-combination. Distinct numbers correspond to distinct k-combinations, and produce them in lexicographic order. The numbers less than ( n k ) {\displaystyle {\tbinom {n}{k}}} correspond to all k-combinations of {0, 1, ..., n − 1}. The correspondence does not depend on the size n of the set that the k-combinations are taken from, so it can be interpreted as a map from N to the k-combinations taken from N; in this view the correspondence is a bijection. The number N corresponding to (ck, ..., c2, c1) is given by N = ( c k k ) + ⋯ + ( c 2 2 ) + ( c 1 1 ) {\displaystyle N={\binom {c_{k}}{k}}+\cdots +{\binom {c_{2}}{2}}+{\binom {c_{1}}{1}}} . The fact that a combination corresponds to a non-negative integer was observed by Lehmer (1964). Indeed, a greedy algorithm finds the k-combination corresponding to N: take ck maximal with ( c k k ) ≤ N {\displaystyle {\tbinom {c_{k}}{k}}\leq N} , then take ck−1 maximal with ( c k − 1 k − 1 ) ≤ N − ( c k k ) {\displaystyle {\tbinom {c_{k-1}}{k-1}}\leq N-{\tbinom {c_{k}}{k}}} , and so forth. Finding the number N, using the formula above, from the k-combination (ck, ..., c2, c1) is also known as "ranking", and the opposite operation (given by the greedy algorithm) as "unranking"; the operations are known by these names in most computer algebra systems, and in computational mathematics. The term "combinatorial representation of integers" was shortened to "combinatorial number system" by Knuth (2011). He also references Ernesto Pascal (1887). The term "combinadic" is introduced by James McCaffrey. Unlike the factorial number system, the combinatorial number system of degree k is not a mixed radix system: the part ( c i i ) {\displaystyle {\tbinom {c_{i}}{i}}} of the number N represented by a "digit" ci is not obtained from it by simply multiplying by a place value. The main application of the combinatorial number system is that it allows rapid computation of the k-combination that is at a given position in the lexicographic ordering, without having to explicitly list the k-combinations preceding it; this allows for instance random generation of k-combinations of a given set. Enumeration of k-combinations has many applications, among which are software testing, sampling, quality control, and the analysis of lottery games.

Tema degli esploratori: matematica e informatica teorica (deposito sistematico; categoria «Combinatorics»).
Fonte: Wikipedia in inglese, voce «Combinatorial number system» — https://en.wikipedia.org/wiki/Combinatorial_number_system
Wikidata Q5150829 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q5150829
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Combinatorial_number_system?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1370497250, consultata il 2026-10-06T15:18:47.044Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 611401e2163d33d0ef559f1914fe8ff1996b0fc7f688ecccb9983e137f398b96