If the sum of the first 7 terms of an Arithmetic Progression (AP) is 119, and that of 17 terms is 714, find the sum of the first n terms of the AP.