The question goes:
There are $100$ people and a cake. The first person gets $1$% of the cake, the next gets $2$% of the remaining cake, and so on. Find out which person gets the highest amount of cake.
This was given to me by one of my friends, and here's what I thought: This is easily reduced to a recurrence relation, and if I can solve it, it's simple to maximize the same.
I considered the cake to be equivalent to $1$, and got the following recurrence: $$P_n=\frac{n}{100}(1-P_{n-1})$$ where $P_n$ denotes the amount of cake received by the $n^{th}$ person.
Aaaaand I'm stuck. Please help me. Thanks in advance.
Edit: As pointed out by lulu, my recurrence is incorrect. It should be $$P_n=\frac{n}{100}\left(1-\sum_{i=1}^{n-1} P_i\right)$$