Here is the spreadsheet we worked on in class together yesterday:
https://docs.google.com/spreadsheets/d/1hpuqDeJ7vjYFOup8qjfMJ5KIJ5OE-KsfHJpNOI0ufqI/edit?usp=sharing
We used it to answer HW9, Problem 4 (here’s my version of the question). But this is also an example of a binomial random variable.