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

 Respuesta aceptada

Wayne King
Wayne King el 23 de Sept. de 2011

0 votos

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.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by