Problem

Source: : Czech-Polish-Slovak Junior Match 2018, individual p3 CPSJ

Tags: Coloring, combinatorics



The teacher gave each of her $37$ students $36$ pencils in different colors. It turned out that each pair of students received exactly one pencil of the same color. Determine the smallest possible number of different colors of pencils distributed.