Exercise · Volume 1 · 1.2.6-3
Exercise 1.2.6-3
proved in Lean solution written
| Rating | 00 |
|---|---|
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.6 of Volume 1. Companion chapter: Binomial coefficients |
The task
Count the hands of cards from a deck of cards, where the order of the cards in the hand does not count.
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
A hand is a -combination of objects. Use eq. 1.2.6(2).
Solution
Show the solution
The number of hands is To avoid large numbers, build the value one factor at a time with . Each step gives an integer.
| 1 | 52 |
| 2 | 1326 |
| 3 | 22100 |
| 4 | 270725 |
| 5 | 2598960 |
| 6 | 20358520 |
| 7 | 133784560 |
| 8 | 752538150 |
| 9 | 3679075400 |
| 10 | 15820024220 |
| 11 | 60403728840 |
| 12 | 206379406870 |
| 13 | 635013559600 |
For example, the step from to is . So there are hands.
Check
The entry for is , the known number of poker hands. Also eq. 1.2.6(7) gives , so , and .
Remarks
Exercise 1.2.6-4 factors this number into primes. The table also shows how fast the row of Pascal's triangle grows.
This solution is drafted, and a person has not reviewed it yet. The source.
In Lean
proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.
- Problem:
TAOCP.S1_2_6.Ex3.statementaxioms: none - Solution:
TAOCP.S1_2_6.Ex3.solvedaxioms: none
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.