edited by
23,241 views
81 81 votes

What is the minimum number of ordered pairs of non-negative numbers that should be chosen to ensure that there are two pairs $(a,b)$ and $(c,d)$ in the chosen set such that,  $a \equiv c\mod 3$   and   $b \equiv d \mod 5$

  1. $4$
  2. $6$
  3. $16$
  4. $24$

11 Answers

Best answer
80 80 votes

Let us pick any tuple $(p, q)$ from $\mathbb{N}^2$

What can happen?

Well, $p\mod 3$ can be $0,1$ or $2.$ And $q \mod 5$ can be $0, 1, 2, 3$ or $4.$ So, there are $15$ possibilities.

Now if we have $16$ of these tuples, surely two of these will map to same combination. Hence, answer is $16.$

Correct Answer: $C$

edited by
95 95 votes
Order pairs for $(a,b)$ are
$(0,0), (0,1), (0,2), (0,3), (0,4)\\
(1,0), (1,1), (1,2), (1,3), (1,4)\\
(2,0), (2,1), (2,2), (2,3), (2,4)$
Take any other combination for $(c,d)$ that will surely match with one of the above $15$ combinations (Pigeon Hole principle)
Total $15+1 = 16$ combinations
22 22 votes

(a≡c mod 3) means remainder values 'a' can get when 'c' is divided by 3. It is {0,1,2}.

(b≡d mod 5) remainder values 'b' can get when 'd' is divided by 5. It is {0,1,2,3,4}.

Whatever be the values of c and d, we can at most get 15 combinations of a and b.( i,e (0,0) (0,1) (0,2) (0,3) (0,4) ......(2,0) (2,1) (2,2) (2,3) (2,4) total 5*3=15.

As here we need to find the minimum number of ordered pairs, so taking any value for (c,d) will do. Therefore we consider 1 for (c,d).

Total number of ordered pairs become 15+1=16.

8 8 votes

Let $\mathbb{Z^{+}}=\mathbb{N}\cup\{0\}=\{0,1,2,3,4,5,...\}$

$\begin{align}\therefore \mathbb{Z^{+}}\times \mathbb{Z^{+}}=\{&(0,0),(0,1),(0,2),...,\\&(1,0),(1,1),(1,2),...,\\&(2,0),(2,1),(2,2),...,\\&.....................,\\&(100,0),(100,1),(100,2),(100,3),...,\\&.....................\}\end{align}$

To answer this question, we need to think of the worst case. How many pairs are there at least to take from $\mathbb{Z^{+}}\times \mathbb{Z^{+}}$ where for any two pairs $(a,b),(c,d)$ the condition $a \equiv c \mod 3$ and $b \equiv d \mod 5 $ doesn't hold?

The answer is $3\times5=15$.

Proof: For any integer $x \mathrm{~mod~}3$ has the residues from the set $\{0,1,2\}=A$ [Let]. Likewise for $x \mathrm{~mod~} 5$ has the residues from the set $\{0,1,2,3,4\}=B$ [Let].

Now,

$\begin{align} A \times B=\{&(0,0),(0,1),(0,2),(0,3),(0,4),\\&(1,0),(1,1),(1,2),(1,3),(1,4),\\&(2,0),(2,1),(2,2),(2,3),(2,4)\}\end{align}$
This set of ordered pairs doesn't hold the condition because there are no two pairs $(a,b),(c,d)$ such that $a \equiv c \mod 3$ and $b \equiv d \mod 5 $.

Here, $|A \times B|=|A|\times|B|=3 \times 5=15$.

So for the worst case, we have to take at least $15$ pairs from $\mathbb{Z^{+}}\times \mathbb{Z^{+}}$. Now taking any other pair (only one more) will hold the required condition. Because for any other pair $(x,y)$, we have $(x\mod 3, y\mod5)$ will produce any pair from $A \times B$. [For example, take $(95,101)$, then we can have $(95\mod3,101\mod5)\equiv(2,1)\in A \times B$].

Therefore, we have to take $15+1=16$ pairs from $\mathbb{Z^{+}}\times \mathbb{Z^{+}}$.

 

So the correct answer is C.

 

edited by
2 2 votes
Using extended pigeonhole principle, we have 15 different buckets(mod 3 * mood 5). Now we want value of N such that ceil (N/k)=2. Smallest value satisfying this N is 16 and hence the answer.
2 2 votes

Let N be the minimum no of ordered pairs required.

p mod 3 can be 0,1 or 2. And q mod 5 can be 0,1,2,3 or 4. So, there are 15 possibilities. i.e holes =15.

By Generalized pigeon hole,

$\left \lceil \frac{N}{holes} \right \rceil$ = 2 (since there are 2 pairs (a,b) and (c,d) )

$\left \lceil \frac{N}{15} \right \rceil$ = 2

The minimum integer value of N satisfying above equation is 16 (as $\left \lceil \frac{16}{15} \right \rceil$ = 2)

Hence option C is correct.

Answer:
Position:
Show:

Related questions

197 197 votes
9 answers 9 answers
76.7k
76.7k views
Kathleen asked Sep 22, 2014
76,743 views
A $5$ stage pipelined CPU has the following sequence of stages:IF – instruction fetch from instruction memoryRD – Instruction decode and register readEX – Execute: ALU op...
32 32 votes
3 answers 3 answers
15.2k
15.2k views
gatecse asked Sep 21, 2014
15,236 views
Let $f(x)$ be the continuous probability density function of a random variable $x$, the probability that $a < x \leq b$, is :$f(b-a)$$f(b) - f(a)$$\int\limits_a^b f(x) dx...
51 51 votes
7 answers 7 answers
32.3k
32.3k views
Kathleen asked Sep 22, 2014
32,318 views
The time complexity of computing the transitive closure of a binary relation on a set of $n$ elements is known to be:$O(n)$$O(n \log n)$$O \left( n^{\frac{3}{2}} \right)...
41 41 votes
6 answers 6 answers
12.8k
12.8k views
gatecse asked Sep 21, 2014
12,843 views
Consider the set $H$ of all $3 * 3$ matrices of the type $$\left( \begin{array}{ccc} a & f & e \\ 0 & b & d \\ 0 & 0 & c \end{array} \right)$$ where $a,b,c,d,e$ and $f$ a...