I am trying to simulate n random discrete variable which has the following pmf
$P(X = k) = (1-p)^2kp^{k-1}$
I am thinking about using the inverse transform sampling method and I am trying to find the cdf.
$P(X \le k) = 1 - P(X > k) = 1- P(X \ge k+1) = \sum_{x=k+1}^{\infty} (1-p)^2kp^{k-1} = 1-[ (1-p)^2\sum_{x=k+1}^{\infty}kp^{k-1}]$
= $1-(1-p)^2[(k+1)p^k + (k+2)p^{k+1}+ (k+3)p^{k+4} + ...] $
I can't seem to calculate this sum ($\sum_{x=k+1}^{\infty}kp^{k-1}$).
Any help or hint will be appreciated !