5.4 Applications to Number theory

We shall show an application of pigeonhole principle to Number theory - Dirichlet’s theorem and then an application of coloring to Number theory - Schur’s theorem or that Fermat’s last theorem fails for finite fields.

Theorem 5.14 (Dirichlet’s approximation theorem, 1879 ).

Let x be a real number. For any natural number n, there is a rational number p/q such that 1≤q≤n and

|x−pq|≤1n⁢q≤1q2.

It is easy to obtain that error of 1/q or equivalently,

|q⁢x−p|≤1.

A consequence of the theorem is that there are infinitely many rationals p/q such that the above conclusion holds. This theorem is one of the basic theorems in what is known as Diophantine approximation. See also the following popular article on Duffin-Schaeffer conjecture which is a quantitative refinement of Dirichlet’s theorem.

Proof.

Let {x}=x−⌊x⌋ be the fractional part of x. Consider {a⁢x},a=1,2,…,n+1. By pigeonhole principle, two of them should belong to some interval [i/n,(i+1)/n) for i=0,…,n−1. Say {a⁢x},{b⁢x} belong to the same interval and a>b. Thus {a⁢x}−{b⁢x}≤n−1. Writing it differently,

|a⁢x−⌊a⁢x⌋−b⁢x+⌊b⁢x⌋|≤n−1,

and so the theorem follows by setting q=a−b and p=⌊a⁢x⌋−⌊b⁢x⌋. Also since 1≤b<a≤n+1, q≤n. ∎

The famous Fermat’s last theorem states that if n>2, there are no solutions to xn+yn=zn for natural numbers x,y,z. Schur (1916) used pigeonhole principle via a colouring argument to show that there are infinitely many solutions in a finite field ℤp for large prime p.

Theorem 5.15 (Schur, 1916).

For any r≥1 and a r-coloring of {1,…,n} where n=⌈e⁢r!⌉, there are three integers x,y,z of the same colour and such that x+y=z.

Before the proof, we disprove Fermat’s last theorem for finite fields.

Theorem 5.16.

For every integer r≥1, there exists p0 such that for any prime p≥p0, the congruence

xr+yr=zr⁢mod⁢p

has a solution.

Proof.

The multiplicative group ℤp∗={1,2,…,p−1} is cyclic and so has a generator g. Thus x=gr⁢jx+i for any x∈ℤp∗ for 0≤i<r. We colour ℤp∗ by r colours where c⁢(x)=i for x=gn⁢jx+i. By Schur’s theorem for p=⌈e⁢r!⌉ , there are x,y,z∈ℤp∗ such that x+y=z (in ℤ) with c⁢(x)=c⁢(y)=c⁢(z). Say c⁢(x)=i. Therefore,

gr⁢jx+i+gr⁢jy+i≡gr⁢jz+i

or equivalently,

(gjx)r+(gjy)r≡(gjz)r.

∎

Proof of 5.15.

Let c:[n]→[r] be a colouring. Suppose that there exists no x+y≤n for x,y,x+y of the same colour, we will show that n<e⁢r!.

WLOG, let c0 be the most frequently appearing colour and let x0<x1⁢…<xn1−1 be the elements of color c0. By pigeonhole principle, n≤r⁢n1.

Define A0:={xi−x0:1≤i<n1}. By assumption, there is no element in A0 of colour c0. So A0 is covered by r−1 colours and let c1 be the most frequently appearing colour in A0. Let y0<…<yn2−1 be the elements of colour c1. Again by pigeonhole principle, we have that n1−1≤(r−1)⁢n2.

Define A1:={yi−y0:1≤i<n2}. By assumption, there is no element in A1 of colour c0,c1. So A1 is covered by r−2 colours and let c2 be the most frequently appearing colour in A1. Let z0<…<zn3−1 be the elements of colour c2. Again by pigeonhole principle, we have that n2−1≤(r−2)⁢n3.

Proceeding similarly, we get nk=1. Given that there are r colours at most, k≤r. Thus, we have that n≤r⁢n1, ni≤1+(r−i)⁢ni+1 for i=1,…,k−1. Thus substituting recursively,

n≤∑i=0r−1r⁢(r−1)⁢…⁢(r−i)=∑i=0r−1r!(r−i−1)!=∑i=0r−1r!i!<r!⁢∑i=0∞1i!=e⁢r!.

∎