For part (ii) solve \dot{x} = 0.
For part (iii) note that the total distance should be
\sum_{r=0}^\infty x_r
where
x_0 = A
Get a general formula for x_r (same process as part 2 but using the general solution for tan) and note that your total distance will be in terms of A (constant), and k/n...