Mod problem - computer sci math course

  • Thread starter Thread starter TheRascalKing
  • Start date Start date
  • Tags Tags
    Computer Course
TheRascalKing
Messages
7
Reaction score
0

Homework Statement


Let b be a positive integer and consider any set S of b+1 positive integers.
Show that there exists two different numbers x, y ∈ S so that x mod b = y mod b


Homework Equations





The Attempt at a Solution


Pretty stumped. I tried for a while to use different values of b but I soon realized that this could lead to pretty much infinite amounts of any different positive integers in my set.
 
Physics news on Phys.org
So you have b + 1 different numbers. Take any of them, say x, you can obtain z, the remainder of x's division by b, so you have a map x -> z in this way. To how many different z's, at most, can you map the original set?
 
TheRascalKing said:

Homework Statement


Let b be a positive integer and consider any set S of b+1 positive integers.
Show that there exists two different numbers x, y ∈ S so that x mod b = y mod b


Homework Equations





The Attempt at a Solution


Pretty stumped. I tried for a while to use different values of b but I soon realized that this could lead to pretty much infinite amounts of any different positive integers in my set.

This problem uses the "pigeon-hole" principle. Here you have b slots (0, 1, 2, 3, ..., b-2, b-1) and b+1 numbers. Is there any way the b+1 numbers can go into the slots without at least one duplication?
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Replies
11
Views
2K
Replies
5
Views
2K
Replies
9
Views
3K
Replies
2
Views
2K
Replies
5
Views
2K
Replies
2
Views
5K
Back
Top