Problem

Source: 2024 Israel TST Test 3 P2

Tags: function, averages, Trees, combinatorics



A positive integer $N$ is given. Panda builds a tree on $N$ vertices, and writes a real number on each vertex, so that $1$ plus the number written on each vertex is greater or equal to the average of the numbers written on the neighboring vertices. Let the maximum number written be $M$ and the minimal number written $m$. Mink then gives Panda $M-m$ kilograms of bamboo. What is the maximum amount of bamboo Panda can get?