Here is my proposed solution to MMM6. (Questions, for the uninitiated or forgetful, are here.)
I actually found these problems to be on the easier side (solved both parts in less than 30 minutes), but I tend to be hasty when I work things out, and overconfident in my thinking, so chances are I’m not right on both counts. So here’s throwing caution to the wind and hoping that I got it right.
(Also, if you liked the problem, don’t forget to look for my generalized problem. Solution to be posted soon.)
Part I Solution:
I created a matrix which represented the [mayonaise, ketchup] initially. I also created a matrix
which represented how much [mayonaise, ketchup] I was adding at each iteration. I let
which is our “normalization” factor. (You’ll see…)
After the first iteration, we have which turns out to be
. You see now what the
does? It makes sure that we have 500 gallons total in the vat.
After the second iteration, we have which simplifies to
.
After the third iteration, we have which simplifies to
.
And you can see the pattern. After the nth iteration, we will have
.
Now we’re almost done, believe it or not. We can use to find out how much mayo is in the vat. (Note that since
, the
doesn’t contribute to the mayo.)
We want to find when the mayo is around 250. The mayo after the nth iteration is . So we have to solve the equation:
A simple manipulation (taking the log of both sides) yields .
Of course a simpler way to think about this is to say that you start out with 500 gallons of mayo. After n iterations, you’ll have gallons of mayo. That brings you to the very last step, which is quickly solvable.
But even though that’s the simpler way to do it, it isn’t the way I started thinking about it. I freely admit that I don’t always find the simplest solution… but it certainly helps when doing generalizations!
What happens if we have add 3 gallons of mayo and 7 gallons of ketchup each time… How many iterations until we get a mixture of 200 gallons of mayo and 300 gallons of ketchup?
My sort-of-involved method works for that! I dare you to try it. You get about 98 iterations. It’s only very slightly tricky, so I’ll write up the solution to that problem in a future post.
Part II Solution
Let’s take the 17 lbs of beef (“it’s what’s for dinner!”).
Let’s have represent the number of single and double burgers that Nortrom can eat. We know that these combinations are
,
,
,
,
,
,
,
,
. Let’s see how many different ways that Nortrom can eat one of these combinations of single and double burgers.
Well, let’s look at . This is 7 single burgers and 5 double burgers. How many ways are there of ordering them? Clearly there are
ways.
Let’s me be clear about this. If Nortrom eats 7 single burgers and 5 double burgers, Nortrom will be eating 12 burgers. We just have to find the number of different ways he can do this. Nortrom, before eating them, placed them down in order of eating them — in 12 slots. Nortrom puts his first burger in slot 1, Nortrom puts his second burger in slot 2, Nortrom puts his third burger in slot 3, etc. Nortrom has to put single burgers in 7 of the 12 slots. (The rest will be filled with double burgers.) The number of ways to do that is
. [1]
So then we have, using our combination of single and double burgers listed above: .
Let’s do exactly the same thing for our 25 lbs of beef!
The combinations are ,
,
,
,
,
,
,
,
,
,
,
,
.
This leads to a similar conclusion:
.
Huzzah!
[1] As a quick aside, note that . This is because if you have 12 slots and you have to put double burgers in 5 of the slots, then the rest must be filled with single burgers.
This is neat — I solved the first problem essentially the way you described (the second way) but did the second problem completely differently. What I noticed with the hamburgers was that the numbers formed a Fibonacci Sequence: there was 1 way to eat 1 lb of meat, 2 ways to eat 2 lbs, 3 ways to eat 3 lbs, 5 ways to eat 4 lbs, 8 ways to eat 5 lbs, etc. In general, the number of ways to eat n pounds of meat is the sum of the number of ways to eat (n-1) lbs and the number of ways to eat (n-2) lbs [because you could start by eating a 1lb burger and then eat the remaining (n-1) lbs in however many ways, or you could start by eating a 2-lb burger and then eat the remaining (n-2) lbs in however many ways.].
What I think is really neat is that Pascal’s Triangle ties together our two different solutions to this problem.
The jth entry in the ith row (starting with 0 rather than 1) is i choose j — you can see the beginning in this picture on wikipedia. But if you add diagonals in Pascal’s Triangle, you get Fibonacci numbers, like in this picture. So your formula is just adding those entries of Pascal’s triangle, and my method gave the sum in terms of Fibonacci’s number. I found that referred to as the Fibonacci Binomial Representation on this site (but I’m not sure I can typeset it in the comment — hence the hyperlink).
Thanks for sharing your method — I love it when there are really different ways to look at the same thing.
Oh my gosh, that’s awesome. I too love different solutions to the same problem.
Like this one! Three different solutions, essentially the same, but different ways of approaching it.
https://samjshah.com/2008/05/15/algebraic-manipulation-is-overrated/