Mathcad Community Challenge January 2024 - Statistics
Happy New Year!

This month’s challenge is based around statistics, specifically permutations and combinations around shuffling a deck of cards. It’s inspired by this article:
Your challenge, should you choose to accept it, is to perform the following in Mathcad Prime:
- (Basic) Calculate the number of ways to shuffle a deck of cards. (Standard 52 card deck, no Jokers).
- (Basic) Calculate the number of ways to shuffle a deck of cards if the suit (heart, diamond, spade, club) doesn’t matter.
- Calculate the number of ways to shuffle a deck of cards consisting of just the face cards (jacks, queens, and kings). If you could shuffle the deck one time a second, how long would it take to shuffle each possible way? (Express the result in hours, days, or years, whichever is easiest for people to grasp.)
- How long would it take to shuffle the face cards until there’s a 0.5 probability you’ve shuffled the same way twice? If you add the aces, how long would it take for that same 0.5 probability that you’ve shuffled the same way twice?
- Create a Chart Component to depict the number of ways to shuffle a deck from 1 to 12 cards. (Hint: use the Chart Component’s logarithmic scale capability.)
- (Optional) How many cards would be in a deck in which the number of ways to shuffle would be on an order of magnitude with the number of atoms in the Earth? What about the universe? Assume 10 to the 50th power for number of atoms in the Earth and 10 to the 80th for the universe.
- (Optional) Add a header and footer to your worksheet.
As always, documentation is key. Create your worksheet in a manner that someone can understand it on its own.
Find the Mathcad Community Challenge Guidelines here!

