olymmath

KöMaL 2025 A918

    Given a tree with n≥2n \ge 2 vertices labelled v1v_1, v2v_2, …\dots, vnv_n. Each vertex hosts a dwarf, and every dwarf has some number of coins, at least nn. We then go through the vertices in the order of increasing indices: the dwarf on the current vertex takes one coin from its richest neighbour; if there are several richest neighbours, he takes one coin from each of them. Determine, as a function of nn, the smallest integer kk such that for every tree with nn vertices there exists an initial coin distribution in which the numbers of coins of any two dwarfs differ by at most kk, and after the process every dwarf ends up with exactly the same number of coins as at the beginning.

    Official text KöMaL. Quoted with source.

    Solutions

    No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

    Add a solution

    Locator hu-komal/2025/a918 · Tag G1AXMBM270 · Edit this page on GitHub · Keys: j next, k previous