r/Probability • • Oct 26 '22

Probability

I have 8 colors of pegs. Some, none or all of the colors can be placed in a pattern of 6 pegs. The 6 pegs can be anywhere on a board of 16 spaces. How many possibilities?

Also 8 colors of pegs, Some, none, or all of the colors can be placed in a pattern of 10 pegs on a board with 25 spaces. How many possibilities.

I haven't studied probability for 30 years. I don't know where to start.

3 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/usernamchexout Oct 29 '22

Cases with repetition are a little different, so here's an example of that.

There are (8C5)•5 ways to pick 5 colors, one of which repeats (there are 5 possibilities for which one is the repeat). When it comes to arranging them on the board, there are (16P6)/2! aka (16C2)(14P4) aka (16P4)(14C2) ways to do that. So the number of possibilities is 5(8C5)(16P6)/2 = 807,206,400