Determine the value(s) of k for which p is a probability mass function. Note that n is a positive integer. $$p(x) = kx, x = 1,2,3,... ,n$$
According to the solution manual, $k=\frac{2}{n(n+1)}$, but I don't know how to arrive at this answer. I know that because p is a probability mass function, $$\sum_{x=1}^n kx=1$$ but I'm not sure where to go from there.