taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.6-4

Exercise 1.2.6-4

proved in Lean solution written

Rating10
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.6 of Volume 1. Companion chapter: Binomial coefficients

The task

Write (5213)\binom{52}{13} as a product of primes.

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

Use (5213)=52!/(13! 39!)\binom{52}{13} = 52!/(13!\,39!) and count the exponent of each prime in each factorial.

Hint 2

The exponent of a prime pp in m!m! is ⌊m/p⌋+⌊m/p2⌋+⋯\lfloor m/p \rfloor + \lfloor m/p^2 \rfloor + \cdots.

Solution

Show the solution

Let ep(m)e_p(m) be the exponent of the prime pp in m!m!. It counts the multiples of pp up to mm, then the multiples of p2p^2 (they have one more factor), and so on. So ep(m)=∑i≥1⌊m/pi⌋e_p(m) = \sum_{i \ge 1} \lfloor m/p^i \rfloor. The exponent of pp in (5213)\binom{52}{13} is ep(52)−ep(13)−ep(39)e_p(52) - e_p(13) - e_p(39). Only primes up to 5252 can occur, and a prime above 3939 occurs only through 52!52!.

pp ep(52)e_p(52) ep(13)e_p(13) ep(39)e_p(39) exponent
2 26+13+6+3+1 = 49 6+3+1 = 10 19+9+4+2+1 = 35 4
3 17+5+1 = 23 4+1 = 5 13+4+1 = 18 0
5 10+2 = 12 2 7+1 = 8 2
7 7+1 = 8 1 5 2
11 4 1 3 0
13 4 1 3 0
17 3 0 2 1
19 2 0 2 0
23 2 0 1 1
29 1 0 1 0
31 1 0 1 0
37 1 0 1 0
41 1 0 0 1
43 1 0 0 1
47 1 0 0 1

Hence (5213)=24⋅52⋅72⋅17⋅23⋅41⋅43⋅47.\binom{52}{13} = 2^4 \cdot 5^2 \cdot 7^2 \cdot 17 \cdot 23 \cdot 41 \cdot 43 \cdot 47.

Check

The product is 16⋅25⋅49⋅17⋅23⋅41⋅43⋅4716 \cdot 25 \cdot 49 \cdot 17 \cdot 23 \cdot 41 \cdot 43 \cdot 47. Step by step: 16⋅25=40016 \cdot 25 = 400, 400⋅49=19600400 \cdot 49 = 19600, 19600⋅17=33320019600 \cdot 17 = 333200, 333200⋅23=7663600333200 \cdot 23 = 7663600, 7663600⋅41=3142076007663600 \cdot 41 = 314207600, 314207600⋅43=13510926800314207600 \cdot 43 = 13510926800, 13510926800⋅47=63501355960013510926800 \cdot 47 = 635013559600. This is the value of Exercise 1.2.6-3.

Remarks

Each prime between 2727 and 5252 that is not in the denominator divides the coefficient, as the table shows for 4141, 4343 and 4747. The exponent formula of this exercise is Legendre's formula, and Exercise 1.2.6-11 uses it again.

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.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.