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?
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...

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