Problem

Source: Slovenia IMO TST 2018, Day 1, Problem 1

Tags: combinatorics, induction, combinatorics solved, algorithm, pigeonhole principle



Let $n$ be a positive integer. On the table, we have $n^2$ ornaments in $n$ different colours, not necessarily $n$ of each colour. Prove that we can hang the ornaments on $n$ Christmas trees in such a way that there are exactly $n$ ornaments on each tree and the ornaments on every tree are of at most $2$ different colours.