Start Counting

What is the minimum integer n n , such that any subset S S of the five digit positive integers with S n |S| \geq n , must contain 2 distinct elements x x and y y such that

100 x y ? 100 \mid x - y \,\,?


The answer is 101.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Marco Brezzi
Aug 17, 2017

We consider the elements in S S modulo 100 100 . There are 100 100 congruence classes mdoulo 100 100 , namely

0 , 1 , 2 , , 99 0,1,2,\ldots,99

If S S contains at least 101 101 elements, by the Pigeonhole principle , there must be two elements x x and y y that belong to the same congruence class, in other words

x y m o d 100 x y 0 m o d 100 100 x y \begin{aligned} &x\equiv y \mod 100\\ \iff &x-y\equiv 0\mod 100\\ \iff & 100\mid x-y \end{aligned}

100 100 elements are not enogh, since we could have that every element belongs to a different class. Hence the minimum number of elements that satisfy the constraint is 101 \boxed{101} .

More generally if the problem asked the same question with n x y n\mid x-y the answer would be n + 1 n+1

Thanks for posting solution

Kushal Bose - 3 years, 9 months ago

Good problem-liked....Good solution-liked!!!!

rajdeep brahma - 2 years, 12 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...