The Gateway to Computer Science Excellence
0 votes

How many ordered pair of integers (ab) are needed to guarantee that there are two ordered pairs (a1b1) and (a2b1) such that a1 mod 5 = a2 mod 5 and b1 mod 5 = b2 mod 5? should not answer be 25 here

in Graph Theory by Loyal (5.7k points) | 152 views
It should be 26.

2 Answers

+1 vote
Best answer

Based on pigeonhole principle.

You want minimum number of pairs (a,b) to ensure such that

(a1,b1) (a2,b2) pairs exist in a way

a1=a2mod5 and b1=b2mod5

In a pair(a,b)

a can belong to any of the residue of mod 5(0,1,2,3,4)-Total of 5 values.

Similarly b can take a total of 5 values.

Since a and b can be selected independently, a maximum of total 25(5x5) ordered pairs can be there which can sure that IN NO WAY two pair will exist such that,

(a1,b1) (a2,b2

a1=a2mod5 and b1=b2mod5

but now since, you have exhausted all the possibilities to make any new pair,now if you make one extra pair, it is guaranteed to have been repeated from the set of 25 ordered pairs formed above.

Hence, you need minimum 26 ordered pairs to ensure that

(a1,b1) (a2,b2) pairs exist in a way

a1=a2mod5 and b1=b2mod5

by Boss (29.1k points)
selected by
0 votes
consider this like-there are 5 holes each corresponding to remainders of 5 => 0,1,2,3,4

a1 and a2 will always occupy the same hole

b1 and b2 will always occupy the same hole

a1 and a2 have 5 choices(put them in any one hole). similarly, b1 and b2 have 5 choices(put them in any one hole)

total 5*5=25

$\left \lceil \frac{n}{25} \right \rceil=2$

by Active (5.2k points)

Related questions

0 votes
2 answers
0 votes
0 answers
asked Nov 5, 2018 in Graph Theory by Lone Wolf Active (1.6k points) | 46 views
0 votes
1 answer
asked Feb 1, 2018 in Graph Theory by Kaluti Loyal (5.7k points) | 114 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,316 answers
105,087 users