In A.M.'s are introduced between 3 and 17 such that the ratio of the last mean to the first mean is 3 : 1, then the value of n is