The sum of the first 7 terms of an AP is 182. If its 4th and 17th terms are in teh ratio 1: 5, find the AP.