There are n arithmetic mean between 3 and 54, such that the ratio of the eighth mean and(n−2)th mean is 3:5. Then the value of n is:
If n arithmetic means are inserted between 1 and 31 such that the ratio of the first mean and nth mean is 3 : 29, then the value of n is