|
|
|
|||||||||||||||
|
Chipping NSubmitted by Thermos from Appleton, WI, 12/8/1999. Original answer and this article by Allen Stenger.
I am in a combinatorics class, and I am struggling with finding recurrence
relations for problems. For example, "Find a recurrence relation for the
number of ways to stack n poker chips if each poker chip is red, white, or
blue and blue chips may be adjacent, but no red chips are adjacent and no
white chips are adjacent." The answer is:
Hint 1General Strategy: If there is a recursive counting formula, then there is probably a recursive structure to the things being counted; that is, each item is made up recursively of similar smaller items. Hint 2There really is a recursive structure here, but it's hard to see it, because of the adjacency conditions. Try this: make the problem "harder" by counting stacks separately according to the color of the top chip. So look for formulas involving
Hint 3
Let's look at the ones with red on top. If there is a red chip on
top, then the next chip underneath must be white or blue, and any
n-1 high stack with white or blue on top will work, so
we know that
The Rest of the SolutionThe formulas for red, white, and blue are
Note that blue is special, because there are no restrictions on stacks with blue on top. To get back to a formula for a(n) the obvious step is to add together these three formulas: a(n) = r(n) + w(n) + b(n) = 2r(n-1) + 2w(n-1) + 3b(n-1) = 2a(n-1) + b(n-1)
Now we note that
b(n) = r(n-1) + w(n-1) + b(n-1) = a(n-1)
and therefore
b(n-1) = a(n-2)
which gives us the final formula
More is LessIt often happens when you want to derive some result that there is a generalization or a stronger result that is easier to get. Pólya calls this the Inventor's Paradox: "The more ambitious plan may have more chances of success." In this problem we attacked the apparently more difficult problem of counting each kind of stack according to the top chip. Some other examples of the Inventor's Paradox:
References
|
Email the Webmaster |