https://numbas.mathcentre.ac.uk/question/11932/is-the-given-function-a-probability-mass-function/embed/