From a box with n numbered with $1$ to $n$ balls we two times choose at random one ball with replacement. Let $X$ denote the biggest of the number which appeared on a chose balls. Find a distribution of $X$ and find $\mathbb{E}X$.
How to find that? I know that distribution is $$\frac{1}{n} P(Y \le k) {2 \choose 1} +\frac{1}{n^2}$$ but i have utterly no idea why.
How to find $\mathbb{E}X$?
Hints: