Number of possible combinations

  • Context: Undergrad 
  • Thread starter Thread starter kidkook
  • Start date Start date
  • Tags Tags
    Combinations
Click For Summary

Discussion Overview

The discussion revolves around calculating the number of possible combinations of a dataset containing 16 items, specifically focusing on how to efficiently compute the number of combinations from 1 to 16 without repetitive calculations. The context includes combinatorial mathematics and the application of the binomial coefficient formula.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant states that the number of combinations for all 16 items is 1, while for 15 items it is 16, using the binomial coefficient formula.
  • Another participant interprets the question as seeking the total number of ways to select at least one item from the 16, suggesting consideration of the total number of subsets excluding the empty set.
  • A participant clarifies that they have a dataset with 16 different values and calculates the total number of combinations as 65536 by summing the results of the binomial coefficient for r from 1 to 16.
  • One participant notes the binomial coefficient's properties and derives that the sum of combinations from r=1 to n equals \(2^n - 1\), confirming the earlier calculation of 65535.
  • A later reply expresses satisfaction with the explanation provided regarding the binomial coefficient and its application.

Areas of Agreement / Disagreement

Participants generally agree on the mathematical properties of the binomial coefficient and the calculation of combinations, but there is no consensus on the most efficient method to compute the combinations without repetitive calculations.

Contextual Notes

Limitations include the potential increase in dataset size, which may affect the practicality of the discussed methods for calculating combinations.

kidkook
Messages
3
Reaction score
0
I have 16 items and i need to know the number of possible combination for all 16 items. I know the possible number of combination for all 16 items is 1 and the possible number of combinations for 15 of the 16 items is 16 using the formula below:

\frac{n!}{r!(n-r)!}.

How can i adaprt this formula to calculate for the number of selection from 1 to 16 inclusive without repeating the calculation 16 times.

So n will always be 16 and r will be 1 to 16 inclusive.
 
Physics news on Phys.org
Your wording is a little confusing. Is this the correct interpretation:
You want to know the total number of ways to select at least one item from the 16.

If it is, think about this: you should know the total number of subsets (empty, proper, with the original set) for a set with 16 items. Your question involves finding not the total number but how many there are not counting the empty set.
 
Sorry for the confusion. What i have is a dataset with 16 different values. What I'm trying to achieve is to determine how many combination are available without repetition/duplication of a value. So i know the answer is 65536. I achieved this by using the above formula 16 times and substituting the value of r from 1 to 16 etc...and adding the number together.

Number of combinations Value of r
16 1
120 2
560 3
1820 4
4368 5
8008 6
11440 7
12870 8
11440 9
8008 10
4368 11
1820 12
560 13
120 14
16 15
1 16
65535

What i would like to know is...can the formula be adapted to so i don't need to repeat the calculation 16 times. My dataset is likely to increase significantly in the future so it will not be practical to use this method.
 
Note that ##\frac{n!}{r!(n-r)!}## is called the binomial coefficient and is often denoted
$${n \choose r} = \frac{n!}{r!(n-r)!}$$
The reason it is called the binomial coefficient is the following property:
$$(x+y)^n = \sum_{r=0}^{n}{n \choose r}x^r y ^{n-r}$$
If we plug in ##x=y=1## then this reduces to
$$2^n = \sum_{r=0}^{n}{n \choose r} = 1 + \sum_{r=1}^{n} {n \choose r}$$
where the second equality follows because ##{n \choose 0} = 1##. Therefore,
$$\sum_{r=1}^{n} {n \choose r} = 2^n - 1$$
which is consistent with your calculation since ##2^{16} - 1 = 65535##.
 
Excellent. This is exactly what i was looking for. A very well documented explanation. Many thanks.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K