Fun with counting and modular arithmetic

AI Thread Summary
Among any group of five integers, there will always be at least two that share the same remainder when divided by 4, as demonstrated through examples of both consecutive and nonconsecutive integers. The discussion highlights the relevance of the pigeonhole principle in this context, where the "pigeons" are the integers and the "holes" are the possible remainders (0, 1, 2, 3). A suggestion was made to rephrase the problem to clarify that there could be two or more integers with the same remainder, emphasizing the informal nature of the original wording. The importance of the division algorithm in identifying these remainders was also noted. This problem serves as a straightforward application of modular arithmetic principles.
Chromium
Messages
56
Reaction score
0
So today I was doing a problem out of my book for practice, and I came across some interesting results.

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

a set of consecutive integers

1 mod 4 = 1
2 mod 4 = 2
3 mod 4 = 3
4 mod 4 = 0
5 mod 4 = 1

a set of nonconsecutive integers

6 mod 4 = 2
14 mod 4 = 2
3 mod 4 = 3
71 mod 4 = 3
35 mod 4 = 3

should the question be rephrased like this?
Show that among any group of five (not necessarily consecutive) integers, there are two or more with the same remainder when divided by 4.
 
Physics news on Phys.org
"There are two" is an informal (if inexact) way of expressing "there are two or more". I.e. if there are two or more, then there ARE certainly two that are equal. Shouldn't you be solving the problem, not doing linguistic hair splitting? Or is this a linguistics class? :)
 
Last edited:
This is a simple pigeonhole problem. What are the pigeons and what are the holes? I assume you are familiar with the pigeonhole theorem.

In determining the holes, you'll want to consider the division algorithm.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top