<p>Yeah, usually in situations where you want to find the number of permutations possible with a certain limitation, it is good to find the ones noninclusive to the limitation and subtract it from the total.</p>
<p>Permutation is simple, it is the different arrangements of a set of elements, such as: 123, 321, 231, 213</p>
<p>So a permutation of 4 elements is 4 x 3 x 2 x 1 because you have 4 choices for the 1st item, 3 for the 2nd, 2 for the third, and 1 for the last. (Note there can be repeated elements in each arrangement because the 1st for one arrangement might be picked as the 2nd or 3rd or 4th in another arrangement.) The equation is 4!</p>
<p>Thus, nPr stands for n elements choose r elements for a Permutation. (P stands for Permutation.) And the formula would be n!</p>
<p>A combination is a set of unique elements with no consideration towards the sequence.</p>
<p>nCr means n items, Choose r for a Combination. (C stands for combination.) So a combination is n!/(n-r)! (r!)</p>
<p>If you don't understand why this formula is the way it is, think of it this way:</p>
<p>If you want to pick 3 items from 4, you will have 4 for the 1st choice, 3 for the 2nd, and 2 for the 3rd.</p>
<p>4!/4-3 is equal to this. It cancels out the factorization up to the first 3 or first r factors.</p>
<p>So it becomes: 4 x 3 x 2</p>
<p>However, this is still a permutation. This is because the first item can be picked as the 2nd item if it were not picked as the first. This goes for all elements modeled this way and thus it has repeats. A combination does not have repeats. So simply divide the permutation by the number of permutations 3 (or r) elements can have. This gives you the number of unique combinations by cancelling out all of the different permutations with the same elements. </p>
<p>So the nCr equation is n!/(n-r)!r!</p>