Skip to main content
OlympiadHQ

Browse · MathNet

Print

Belarusian Mathematical Olympiad

Belarus counting and probability

Problem

Given the set of four-digit numbers formed from the digits , , , , , , , . Find the smallest possible value of if the set satisfies the following condition:

a) For any two different digits from , , , , , , , there exists a number from the set which contains both of them;

b) For any two different digits from , , , , , , , there exist no greater than two numbers from the set which contain both of them.

(E. Barabanov)
Solution
a. See Problem B.4.

b. Let it be possible to choose six four-digit numbers satisfying the problem condition. By the above, any of digits , , , , , , , must be exactly in three of these six numbers.

Further, it is not hard to prove that no two of the chosen numbers have the same three digits.

Let be the chosen six numbers. Let denote the set consisting of six pairs formed by the digits of , . It is easy to see that the set has exactly elements. Moreover, either or has exactly one element, and , for all distinct .

By inclusion-exclusion formula ( is the number of elements of the set ) Since and for any , equality can be written as Let be the number of pairs , , for which , then for the remaining pairs we have . Thus can be rewritten as , or .

It is not very hard to prove that . Thus , and so .
Final answer
a) 6; b) 7

Techniques

Inclusion-exclusionCounting two ways