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

 Accepted Answer

Wayne King
Wayne King on 23 Sep 2011

0 votes

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.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!