Pascal's rule: combinatorics
(n)C(k) = (n-1)C(k) + (n-1)C(k-1).
When n,k are positive integers.
It holds even when n < k since in that case nCk = 0.
Let's see it using an example:
7C3 = 6C3 + 6C2 => 35 = 20 + 15 => 35 = 35
What is the intuition behind it?
Let's say we need to select 3 kids out of 7(A,B,C,D,E,F,G).
Now, there are 2 kind of groups:
Case 1: 'A' is part of the group. Now we have to select 3 kids from remaining 6. 6C3.
Case 2: 'A' is NOT part of the group. Now we select 5 kids from remaining 6. 6C2.
So:
7C3 = 6C3 + 6C2
Comments
Post a Comment