Source: https://www.nuigalway.ie/media/publicsub-sites/engineering/files/permutations_combinations_and_probability_part2.pdf