https://numbas.mathcentre.ac.uk/question/126294/formula-for-the-mgf-discrete.zip?