Find sum of first n terms of arithmetic series (#427)