I was just listening to an old episode of Car Talk, and they had this puzzler.
RAY: You’re given a hundred dollars and told to spend it all purchasing exactly a hundred animals at the pet store. Dogs cost $15. Cats cost a buck, and mice are 25 cents each.
TOM: Let me get this straight. You have to spend exactly a hundred bucks and you end up with exactly a hundred animals?
RAY: Right. The other only other criterion is that you have to purchase at least one of each animal.
The question is, how many of each animal do you have to purchase to equal a hundred animals purchased at exactly a hundred dollars?
I didn’t do very well in algebra when I took it in middle school more than 50 years ago, and I haven’t gotten any better at it since. When confronted by this kind of problem, I usually just use trial and error, plugging in different numbers and watching for patterns until I home in on a solution.
I ended up having to create a spreadsheet to do that this time, but I eventually found it. The whole time I was doing that, however, I was telling myself, surely there’s a simple and elegant way to solve it with math that I’m just too dumb to figure out.
So imagine my surprise when I listened to the next episode where they gave the answer, and admitted they had brute-forced it too. These two MIT grads didn’t have an algebraic answer. Here’s the page with their solution.
Surely our resident math whizzes can find a better method, right?
Answer: 3 dogs, 41 cats, 56 mice.