Suppose that , with probability mass function given by
and otherwise. Show that the moment generating function of is given by
I keep getting majorly lost with this. I've tried Googling to find a solution to this, since it's a fairly generic question, but to no avail. Can anyone show me how to show this?