Answer: Central Binomial Coefficient mod Prime
Key Idea / Intuition
The central binomial coefficient (p2pโ)=(p!)2(2p)!โ looks complicated, but modulo p almost everything cancels. The numerator (2p)! and denominator (p!)2 share many factors, and Wilson's theorem (or a direct product argument) reveals that all factors except two copies of "p" cancel, leaving exactly 2 mod p.
Formal Proof / Solution
Step 1: Write out the binomial coefficient.
(p2pโ)=p!โ
p!(2p)!โ=p!(2p)(2pโ1)โฏ(p+1)โ.
So we can write:
(p2pโ)=โk=1pโkโk=1pโ(p+k)โ.
Step 2: Analyze the numerator factor by factor mod p.
For each kโ{1,2,โฆ,p}:
p+kโกk(modp).
Therefore:
โk=1pโ(p+k)โกโk=1pโk=p!(modpโ
p!)
Wait โ let's be more careful and work directly.
Step 3: Direct computation via the product formula.
(p2pโ)=โk=1pโkp+kโ.
For k=p: the factor is p2pโ=2.
For k=1,2,โฆ,pโ1: the factor is kp+kโ=1+kpโ.
So:
(p2pโ)=2โ
โk=1pโ1โ(1+kpโ).
Step 4: Reduce modulo p.
Each factor (1+kpโ) โ we want to think of this inside Z. Since gcd(k,p)=1 for k=1,โฆ,pโ1 (as p is prime), each kpโ is an integer multiple of p divided by k, but (p2pโ) is an integer so the full product is an integer.
More cleanly: write
(p2pโ)=(p!)2(2p)!โ.
By Lucas' theorem: for a prime p, and writing 2p and p in base p:
2p=2โ
p+0,p=1โ
p+0.
Lucas' theorem states:
(p2pโ)โก(12โ)(00โ)=2โ
1=2(modp).
Alternatively (elementary): Factor out the k=p term:
(p2pโ)=p!(2p)(2pโ1)โฏ(p+1)โ=2โ
(pโ1)!(2pโ1)(2pโ2)โฏ(p+1)โ.
Now look at S:=(pโ1)!(2pโ1)(2pโ2)โฏ(p+1)โ. The numerator is the product of integers p+1,p+2,โฆ,2pโ1 (that's pโ1 terms), and the denominator is (pโ1)!, so S=(pโ12pโ1โ) is an integer. Modulo p:
โj=1pโ1โ(p+j)โกโj=1pโ1โj=(pโ1)!(modp),
so
S=(pโ1)!โj=1pโ1โ(p+j)โโก(pโ1)!(pโ1)!โ=1(modp).
Therefore:
(p2pโ)=2โ
Sโก2โ
1=2(modp).โ
Remark. This is actually the heart of why p1โ(p2pโ) โ which arises in Catalan number territory โ is always an integer that is โกp2โ... but 2/p only makes sense mod p, hinting at deeper divisibility in the Catalan numbers.
Source: Mathematical folklore / Putnam preparation; Lucas' theorem standard reference