https://numbas.mathcentre.ac.uk/question/20819/alex-s-copy-of-is-the-given-function-a-probability-mass-function/embed/