The sum of first 7 terms of an A.P. is 49 and that of first 17 terms is 289

The sum of first 7 terms of an A.P. is 49 and that of first 17 terms is 289. Find the sum of first n terms.

image