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