discrete math functions

There are 52 different cards in a deck. How many different hands of 5 cards each are possible?
I tried nchoosek(52,5), but the question also mentions that every hand can be arranged 120 different ways, so I am confused.
Thank you

 采纳的回答

Wayne King
Wayne King 2011-9-23

0 个投票

I think that is just telling you that 5!=120
nchoosek(52,5) is equal to 52!/(52-5)! 5!
so nchoosek() already accounts for that.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by