Consider the following game, lets call it $G$. You flip a fair coin $100$ times, but instead of having a fixed stake, you can freely choose the stake for each flip, just before the flip.
You start out with $£100$. After each flip, if it comes up heads you win twice your stake (and your stake is returned), and if it comes up tails you lose your stake, ie if you start with $x$ and select a stake of $s$, then after the flip you will either have $x − s$ or $x + 2s$. You can never make your stake larger than your current balance.
how should you select your stake in each round in order to maximize (Here $G$ denotes the profit from playing the game):
a) $E[G]$
b) $E[\log(G + 100)]$