Answer:
[k*(k+1)*(2*k+1)] / 6
Explanation:
We have balls numbered as: 1, 2, 3, ... , k with probabilities as: c, 2*c, 3*c, ... , k*c
Let Y be the discrete random variable defined as: Y = ball number
We know that Expected value of discrete Random Variable is:
E[X] = Σ₁ⁿ xₐ*f(xₐ) ,where f(xₐ) is probability of xₐ
then,
E[Y] = 1*c + 2*2*c + 3*3*c + ... + k*k*c
E[Y] = c*(1 + 2*2 + 3*3 + ... + k*k)
E[Y] = c*(1^2 + 2^2 + 3^2 + ... + k^2)
consider c = 1 (because it's constant so you can suppose any you wish)
E[Y] = 1^2 + 2^2 + 3^2 + ... + k^2
using formula of first n squares natural numbers (as attached picture)
E[Y] = [k*(k+1)*(2*k+1)] / 6