Daily

Random

Practice set

Baltic Way 1998 · Problem 17

Combinatorics

Let nn and kk be positive integers. There are nkn k objects (of the same size) and kk boxes, each of which can hold nn objects. Each object is coloured in one of kk different colours. Show that the objects can be packed in the boxes so that each box holds objects of at most two colours.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Colorings and configurations · Pigeonhole and extremal arguments · Induction and recursion

Solutions

Solution

Solution:

If k=1k=1, it is obvious how to do the packing. Now assume k>1k>1. There are not more than nn objects of a certain colour - say, pink - and also not fewer than nn objects of some other colour - say, grey. Pack all pink objects into one box; if there is space left, fill the box up with grey objects. Then remove that box together with its contents; the problem gets reduced to an analogous one with k−1k-1 boxes and k−1k-1 colours. Assuming inductively that the task can be done in that case, we see that it can also be done for kk boxes and colours. The general result follows by induction.

Contest context

Results from Baltic Way 1998

11 teams

Mean score
4.3 / 5
Scores of 4 or 5
9 / 11
Estonia
5 / 5

Score distribution

01
10
20
31
41
58
All team scores
TeamScore
Latvia5 / 5
Estonia5 / 5
Poland5 / 5
Finland5 / 5
St. Petersburg5 / 5
Sweden5 / 5
Denmark4 / 5
Iceland3 / 5
Norway5 / 5
Germany0 / 5
Lithuania5 / 5