Specifically, say I have the integers $1,2,3,\dots,n$ (a set of $n$ integers). I want to select numbers one after another (not at the same time) until I have $k$ distinct numbers. How many ways are there of doing this? Someone told me $nPk$ but I don't understand why. Is there another way to approach it?
Asked
Active
Viewed 68 times
2
-
OP $\binom{n}{k}=nPk$ in your notation. – Ali Caglayan Aug 30 '14 at 09:42
3 Answers
2
For the first integer, you have $n$ possibilities to choose, for the second, $n-1$ and so on. So the number of possibilities is $n(n-1)(n-2)...(n-k+1)$, which is the same as $\frac{n!}{(n-k)!}\ =\ nPk$
Peter
- 84,454
2
From $n$ distinct elements we can choose $k$-elements in $\binom{n}{k}$ ways and after permuting them in $k!$ ways we get that there exists $$\binom{n}{k}k!=\frac{n!}{k!(n-k)!}k!=\frac{n!}{(n-k)!}$$ possibilities
Adi Dani
- 16,949
0
http://en.wikipedia.org/wiki/Binomial_coefficient
Please, someone change tag to combinatorics. Additive combinatorics is not about that.
southsinger
- 127