Find sum of first n terms of geometric series (#431)