I What is the value of n in Reverse Combinatorics problem?

hotvette
Homework Helper
Messages
1,001
Reaction score
11
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.
 
Physics news on Phys.org
We can rearrange the equation to be a polynomial equation:
$$p(n)=0$$
where ##p## is the following degree-20 polynomial:
$$p(n) = \prod_{k=1}^{20} (n-k+1)- 230230\times 20!$$

We can then use techniques for root-finding to find the answer.

While that is an 'algebraic' technique it is not at all suitable to the problem. There will be up to twenty roots to be found and only one of them will be the n that we want.

It is more efficient to just start with ##n=1## and keep increasing it until the solution is found.
 
Thanks!
 
Maybe finding the factors of 230,230 will help narrow down the values of n.
 
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Thread 'Detail of Diagonalization Lemma'
The following is more or less taken from page 6 of C. Smorynski's "Self-Reference and Modal Logic". (Springer, 1985) (I couldn't get raised brackets to indicate codification (Gödel numbering), so I use a box. The overline is assigning a name. The detail I would like clarification on is in the second step in the last line, where we have an m-overlined, and we substitute the expression for m. Are we saying that the name of a coded term is the same as the coded term? Thanks in advance.
Back
Top