N - r where n represents the total number of items and r represents the number of items being chosen at a time. If the elements can repeat in the permutation the formula is. Static long GetBinCoeff long N long K This function gets the total number of unique combinations based upon N and K.
For example to calculate the number of 3-number combinations you can use a formula like this.
Set Array Joined CSV. Because you can also win prizes if you have less than 6 matching numbers this section will show you how to calculate the probability if there are x matches to the winning set of numbers. First we need to find the number of way to choose x winning numbers from the set and multiply it by the number of ways to choose the losing numbers for the. 2 chromosome pairs 22 possible unique combinations for gametes.