Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Combinatorial number system
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Place of a combination in the ordering == The number associated in the combinatorial number system of degree ''k'' to a ''k''-combination ''C'' is the number of ''k''-combinations strictly less than ''C'' in the given ordering. This number can be computed from ''C'' = {''c''<sub>''k''</sub>, ..., ''c''<sub>2</sub>, ''c''<sub>1</sub>} with ''c''<sub>''k''</sub> > ... > ''c''<sub>2</sub> > ''c''<sub>1</sub> as follows. From the definition of the ordering it follows that for each ''k''-combination ''S'' strictly less than ''C'', there is a unique index ''i'' such that ''c''<sub>''i''</sub> is absent from ''S'', while ''c''<sub>''k''</sub>, ..., ''c''<sub>''i''+1</sub> are present in ''S'', and no other value larger than ''c''<sub>''i''</sub> is. One can therefore group those {{nowrap|''k''-combinations}} ''S'' according to the possible values 1, 2, ..., ''k'' of ''i'', and count each group separately. For a given value of ''i'' one must include ''c''<sub>''k''</sub>, ..., ''c''<sub>''i''+1</sub> in ''S'', and the remaining ''i'' elements of ''S'' must be chosen from the ''c''<sub>''i''</sub> non-negative integers strictly less than ''c''<sub>''i''</sub>; moreover any such choice will result in a {{nowrap|''k''-combinations}} ''S'' strictly less than ''C''. The number of possible choices is <math>\tbinom{c_i}i</math>, which is therefore the number of combinations in group ''i''; the total number of ''k''-combinations strictly less than ''C'' then is :<math>\binom{c_1}1+\binom{c_2}2+\cdots+\binom{c_k}k,</math> and this is the index (starting from 0) of ''C'' in the ordered list of ''k''-combinations. Obviously there is for every ''N'' β '''N''' exactly one ''k''-combination at index ''N'' in the list (supposing ''k'' β₯ 1, since the list is then infinite), so the above argument proves that every ''N'' can be written in exactly one way as a sum of ''k'' binomial coefficients of the given form.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)