Vrijeme: 09:17

Neke biljke znam kao agronom | I know some plants as an agronomist #5

Nažalost, Fran nije dobro izračunao koliko T treba biti (on je samo pretpostavio da treba biti 420, pa šta bude, bude) pa ga je agent policijske postaje Vrbani III., Hank Šredović priveo u postaju. Na sreću po našeg prijatelja Frana, Sale zna da prema ustavu Neovisne Republike Vrbani, Fran ima pravo igrati igru s Hankom i ako ga Hank ne pobjedi, mora biti pušten na slobodu. Igra ide ovako:

Na stolu se nalazi 60 praznih kutija B_1,\ldots,B_{60} poslaganih u redu i beskonačna zaliha kamenčića te je zadan prirodni broj n. U prvom krugu, Fran uzima n kamenčića i rasporedi ih u kutije kako god želi. Svaki idući krug se sastoji od dva koraka:
(a) Hank odabire prirodni k t.d. 1\leq k\leq 59 i podijeli kutije u dvije grupe B_1,\ldots,B_k i B_{k+1},\ldots,B_{60}.
(b) Fran odabire jednu od te dvije grupe, dodaje jedan kamenčić u svaku kutije iz te grupe te ulanja po jedan kamenčić iz svake kutije druge grupe.
Hank pobjeđuje, ako na kraju nekog kruga, postoji kutija bez kamenčića. Nakon igre, Fran je sretno izašao iz zatvora. Koliki je najmanji n?

Unfortunately, Fran didn’t calculate T correctly (he just guessed that it should be 420 and hoped for the best), so he was arrested by Officer Hank Schrader of the Vrbani III. police station. Luckily for our friend Fran, Sale knows that according to the constitution of the Independent Republic of Vrbani, Fran has the right to play a game with Hank, and if Hank doesn’t win, Fran must be released. The game goes like this:

On the table, there are 60 empty boxes B_1,\ldots,B_{60} arranged in a row, and an infinite supply of pebbles. A natural number n is also given. In the first round, Fran takes n pebbles and distributes them among the boxes however he wishes. Each subsequent round consists of two steps:
(a) Hank chooses a natural number k such that 1 \leq k \leq 59 and divides the boxes into two groups: B_1,\ldots,B_k and B_{k+1},\ldots,B_{60}.
(b) Fran selects one of these two groups, adds one pebble to each box in that group, and removes one pebble from each box in the other group.
Hank wins if, at the end of any round, there is a box without any pebbles. After the game, Fran happily walked out of jail. What is the smallest n?