Mod problem - computer sci math course

  • Thread starter Thread starter TheRascalKing
  • Start date Start date
  • Tags Tags
    Computer Course
Click For Summary
SUMMARY

The discussion centers on a mathematical proof using the pigeonhole principle to demonstrate that in any set S of b+1 positive integers, where b is a positive integer, there exist at least two distinct integers x and y such that x mod b = y mod b. The reasoning is based on the fact that there are only b possible remainders (0 through b-1) when dividing by b, and with b+1 integers, at least one remainder must repeat, confirming the existence of such x and y.

PREREQUISITES
  • Understanding of the pigeonhole principle
  • Basic knowledge of modular arithmetic
  • Familiarity with positive integers and their properties
  • Ability to construct mathematical proofs
NEXT STEPS
  • Study the pigeonhole principle in depth
  • Explore modular arithmetic and its applications
  • Practice constructing proofs for similar mathematical statements
  • Investigate other combinatorial principles related to number theory
USEFUL FOR

This discussion is beneficial for mathematics students, educators in computer science and mathematics, and anyone interested in combinatorial proofs and modular arithmetic concepts.

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?
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K