Maths WorkshopMaths problems with full solutions
Exercise 1998Number theory › PrimesOlympiadAdded 5 Nov 2026

Which primes divide C(2n, n)?

#Legendre's formula#central binomial coefficient#Bertrand's postulate

Statement

Let n≥1n\ge1 and let pp be a prime.

  1. If n<p≤2nn<p\le2n, prove that p∣(2nn)p\mid\binom{2n}n.
  2. If 2n3<p≤n\frac{2n}3<p\le n and p2>2np^2>2n, prove that p∤(2nn)p\nmid\binom{2n}n.
Hint

Use Legendre's formula vp(m!)=∑k≥1⌊m/pk⌋v_p(m!)=\sum_{k\ge1}\lfloor m/p^k\rfloor and write vp(2nn)=∑k(⌊2n/pk⌋−2⌊n/pk⌋)v_p\binom{2n}n=\sum_k\left(\lfloor 2n/p^k\rfloor-2\lfloor n/p^k\rfloor\right).

Show solutionHide solution

Solution

1. (2nn)=(2n)!n! n!\binom{2n}n=\frac{(2n)!}{n!\,n!}. The prime p≤2np\le2n divides (2n)!(2n)!, but p>np>n does not divide n!n!. So pp divides the numerator and not the denominator.

2. Legendre's formula gives
vp(2nn)=∑k≥1(⌊2npk⌋−2⌊npk⌋).v_p\binom{2n}n=\sum_{k\ge1}\left(\left\lfloor\frac{2n}{p^k}\right\rfloor-2\left\lfloor\frac n{p^k}\right\rfloor\right).

  • For k≥2k\ge2: pk≥p2>2np^k\ge p^2>2n, so both floors are 00.
  • For k=1k=1: from 2n3<p≤n\frac{2n}3<p\le n we get 1≤np<321\le\frac np<\frac32, so ⌊np⌋=1\lfloor\frac np\rfloor=1 and 2≤2np<32\le\frac{2n}p<3, so ⌊2np⌋=2\lfloor\frac{2n}p\rfloor=2. The term is 2−2⋅1=02-2\cdot1=0.

So vp(2nn)=0v_p\binom{2n}n=0.

Check. n=10n=10: (2010)=184756=22⋅11⋅13⋅17⋅19\binom{20}{10}=184756=2^2\cdot11\cdot13\cdot17\cdot19. Primes in (10,20](10,20]: 11,13,17,1911,13,17,19 all divide it ✓. Primes in (203,10](\frac{20}3,10] with p2>20p^2>20: only 77, and 7∤1847567\nmid184756 ✓.

Remark. These two facts are the heart of Erdős's proof of Bertrand's postulate.

Lesson. Express vpv_p of a binomial coefficient via Legendre's formula as a sum of terms ⌊2x⌋−2⌊x⌋∈{0,1}\lfloor2x\rfloor-2\lfloor x\rfloor\in\{0,1\} and control each term.