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