Show that among any group of five (not necessarily consecutive) integers, there are two with the same remainder when divided by 4

Let’s refresh the pigeonhole principle.

THE PIGEONHOLE PRINCIPLE: “If k is a positive integer and k + 1 or more objects are placed into k boxes, then there is at least one box containing two or more of the objects.” Discrete Mathematics and its applications by Rosen.

When you divide an integer number by 4, there are only 4 possible reminders: 0, 1, 2, and 3.

Let k=4 be the number of possible reminders (the boxes from the pigeonhole principle), k+1=5 be the group of five integers.

Then, by the pigeonhole principle, among the five integers, there are at least two with the same reminder.

In other words, if 5 numbers are placed in 4 boxes, then at least 1 box contain 2 or more numbers.

Related exercises: