Math NT

Theorem

Say and are two coprime positive integers. The Chicken McNugget Theorem states the highest number that can’t be expressed by , , , and is:

Proof

Let a purchasable number relative to and be able to be represented by

Where and are two non negative integers

Lemma 1

Let and be all such that for and , . For :

Proof

By Bezout’s Lemma, there exists integers and such that . Then, . Thus, is nonempty.

Each addition of to adds to , and each subtraction of from subtracts from , so all these values are in .

To prove these are the only solutions, let and . This means:

Since and are coprime, and divides :

Similarly:

Let such that:

By multiplying by and respectively, we get , proving the lemma.

Lemma 2

For , there is a unique such that .

Proof

There is only one possible for

is purchasable if and only if .

Lemma 3

Proof

If , we can pick so is purchasable. If , when , or for .

Putting it Together

Therefore, the set of non purchasable integers is:

To maximize this set, we chose and :