Created
April 17, 2021 01:38
-
-
Save ricbit/79d4a639885da821302fccea7244cfbb to your computer and use it in GitHub Desktop.
Expected number of packs to complete an album
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
row[n_] := Table[ | |
Binomial[n, 4-(k-n)] Binomial[180-n, k-n] / Binomial[180, 4], | |
{k, 0, 180}] | |
m = Table[row[k], {k, 0, 180}] | |
r = m[[1;;180, 1;;180]] | |
Print[N[Total[Inverse[IdentityMatrix[180] - r][[1]]]]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment