- #1
- 1,007
- 7
- TL;DR Summary
- Combinations with repetition
Not homework, just working odd numbered problems in the book.
Sue has 24 each of n different colored beads. If 20 beads are selected (with repetition allowed) what is the value of n if there are 230,230 possible combinations. I view this as a problem of number of integer solutions to a linear equation, thus:
##x_1 + x_2 + \dots + x_n = 20, x_i \ge 0## has ##C(n+20-1,20) = C(n+19,20) = \frac{(n+19)!}{20!(n-1)!} = 230,230## solutions, which means the task is to solve for ##n##. I managed to get the correct answer (##n=7##) by trying different values of n. What I'm wondering is if there is a reasonable way to determine ##n## algebraically. I can't see any.
Sue has 24 each of n different colored beads. If 20 beads are selected (with repetition allowed) what is the value of n if there are 230,230 possible combinations. I view this as a problem of number of integer solutions to a linear equation, thus:
##x_1 + x_2 + \dots + x_n = 20, x_i \ge 0## has ##C(n+20-1,20) = C(n+19,20) = \frac{(n+19)!}{20!(n-1)!} = 230,230## solutions, which means the task is to solve for ##n##. I managed to get the correct answer (##n=7##) by trying different values of n. What I'm wondering is if there is a reasonable way to determine ##n## algebraically. I can't see any.