What is the formula of combination?
- अरुण कुमार
- 0
- Posted on
The formula for combinations
C(n, k) = n! / (k! (n-k)!)
- Where C(n, k) is the number of combinations,
- n is the total number of items,
- k is the number of items being selected, and
- ! represents the factorial symbol.
The factorial of a number n is the product of all positive integers less than or equal to n.
For example,
5! = 5 x 4 x 3 x 2 x 1 = 120.
In other words,
the formula for combinations gives the number of ways to choose k items from a set of n items, ignoring the order in which they are selected.
The result of the formula is always a non-negative integer.
For example,
if you have a set of 5 items and you want to choose 2 items from the set, the number of possible combinations can be calculated using the formula as follows:
C(5, 2) = 5! / (2! (5-2)!) = (5 x 4 x 3 x 2 x 1) / ((2 x 1) x (3 x 2 x 1)) = 10
This means that there are 10 possible combinations of 2 items that can be selected from a set of 5 items.