The question:
Urn contains $n$ chips numbered 1 through n. assume that the probability of choosing $i$ is equal to $ki$, $i=1,2,...,n$. If one chip is drawn, calculate $E(1/X)$, where the random variable $X$ denotes the number showing on the chip selected.
[HINT: recall that the sum of the first n integers is $n(n+1)/2$]
My solution:
Given: $p_x(i) = ki$ where $i=1,...,n$. Let $g(x)=1/x$. Then
$E(g(i)) = \sum^n_{i=1}g(i)p_x(i) = \sum^n_{i=1} (i)^{-1} (ki) = k\sum^n_{i=1}1 = k(n+1)$
I am struggling to figure out this question. The hint they gave have no use (which i doubt that the textbook will give the hint if its not used). I read on other online solutions that they have $kn(n+1)/2$ but I do not understand how that would be correct. Your feedback is appreciated.
Your answer needs a slight modification and at first hand should be: $$\mathsf EX^{-1}=kn\tag1$$ and not $k(n+1)$.
This simply because $\sum_{i=1}^n1=n$ (and not $n+1$).
But actually you are not ready here.
We also have the equality $\sum_{i=1}^nki=1$ which allows you to find and expression for $k$ in $n$ and substitute in $(1)$. This declares the hint in your textbook.
I leave that to you.