BALKAN-SL 2021 C4
- Answer
A sequence of non-negative integers is given. There's also a sequence of consecutive cells enumerated from 1 to from left to right, such that initially the number is written on the -th cell, for . Starting from this initial position, we repeat the following sequence of steps, as long as it's possible:
Step 1: Add up the numbers written on all the cells, denote the sum as . Step 2: If is equal to 0 or if it is larger than the current number of cells, the process terminates. Otherwise, remove the -th cell, and shift all cells that are to the right of it one position to the left. Then go to Step 1.
Example: . A sequence of non-negative integers is called balanced, if at the end of this process there's exactly one cell left, and it's the cell that was initially enumerated by , i.e. the cell that was initially in the middle.
Find the total number of balanced sequences as a function of .
Dataset text NuminaMath olympiads. Quoted with source.
Show the answer
C_{n} \cdot C_{n}
Solutions
No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.