The sum of the first three terms of an A.P. is 9 and the sum of their square is 35. The sum to first n terms of the series can be