Moments of the Random Variable

Aim of the experiment is to calculate the rth moment of a random variable around k.