I have been stuck on this problem and I was hopeing that someone could let me know if I am doing it right.
- k, m, n are integers
- $0 \le k \le m \le n$
- $S$ is a set of size $n$
$n \choose k$${n - k} \choose {m - k}$$=$$n\choose m$$m \choose k$
Show by counting two different ways the number of ordered pairs $(A,B)$ with $A \subseteq S$, $B \subseteq S$, $A \subseteq B$, $|A|=k$, and $|B|=m$
So I am thinking to answer this I need to just explain what the formula is counting and how it is equal to the other formula?
Here is what I got:
$n \choose k$: This is choosing $k$ elements (which is the size of A) out of the entire set $S$.
${n - k} \choose {m - k}$: Here we are choosing $m-k$ elements from the set S, but we are only choosing elements that have not yet been chosen.
And for the right side:
$n\choose m$: we are choosing m (the size of |B|) elements out of the set $S$.
$m \choose k$: we are choosing k (the size of |A|) elements out of the set B.
Am I on the right track ? Is there a better way of doing these types of problems?