3. (12分) Find the mean and the variance of the uniform probability distribution given byf(x) = for x = 1, 2, 3,..., n