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