If the first and the last terms of an arithmetic series are 10 and 62, show that the sum of the series varies directly as the number of terms