The n arithmetic means between 20 and 80 are such that the first mean : last mean = 1 : 3. Find the value of n.