The general method of solving problems where there is a formula for
the transition from one phase to the next is to solve either a
difference equation (such as this), or a differential equation,
according to whether the model is discrete or continuous.