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 1qn and

|xpq|1nq1q2.

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

|qxp|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}=xx be the fractional part of x. Consider {ax},a=1,2,,n+1. By pigeonhole principle, two of them should belong to some interval [i/n,(i+1)/n) for i=0,,n1. Say {ax},{bx} belong to the same interval and a>b. Thus {ax}{bx}n1. Writing it differently,

|axaxbx+bx|n1,

and so the theorem follows by setting q=ab and p=axbx. Also since 1b<an+1, qn. ∎

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 r1 and a r-coloring of {1,,n} where n=er!, 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 r1, there exists p0 such that for any prime pp0, the congruence

xr+yr=zrmodp

has a solution.

Proof.

The multiplicative group p={1,2,,p1} is cyclic and so has a generator g. Thus x=grjx+i for any xp for 0i<r. We colour p by r colours where c(x)=i for x=gnjx+i. By Schur’s theorem for p=er! , there are x,y,zp such that x+y=z (in ) with c(x)=c(y)=c(z). Say c(x)=i. Therefore,

grjx+i+grjy+igrjz+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+yn for x,y,x+y of the same colour, we will show that n<er!.

WLOG, let c0 be the most frequently appearing colour and let x0<x1<xn11 be the elements of color c0. By pigeonhole principle, nrn1.

Define A0:={xix0:1i<n1}. By assumption, there is no element in A0 of colour c0. So A0 is covered by r1 colours and let c1 be the most frequently appearing colour in A0. Let y0<<yn21 be the elements of colour c1. Again by pigeonhole principle, we have that n11(r1)n2.

Define A1:={yiy0:1i<n2}. By assumption, there is no element in A1 of colour c0,c1. So A1 is covered by r2 colours and let c2 be the most frequently appearing colour in A1. Let z0<<zn31 be the elements of colour c2. Again by pigeonhole principle, we have that n21(r2)n3.

Proceeding similarly, we get nk=1. Given that there are r colours at most, kr. Thus, we have that nrn1, ni1+(ri)ni+1 for i=1,,k1. Thus substituting recursively,

ni=0r1r(r1)(ri)=i=0r1r!(ri1)!=i=0r1r!i!<r!i=01i!=er!.