Let $X \sim Geometric(p)$, and let $M > 0$ be a positive integer. Determine the expected value of $Z = min(X, M)$.
I have done similar exercises where $M$ is a random variable, but not a constant. I don't know how to proceed here, and therefore have no work to show. Hints are very welcome although It would be nice to see more or less of a complete solution for a case like this.
Thank you.