A Thousand Dollars And a Bunch of Envelopes

Apr 04, 2020

RAY: You know what inspired me to use this puzzler? All of these envelopes that are in front of us. We have dozens of envelopes sitting on the table.

Here's the puzzler. It's very simple.

I'm going to hand you one thousand dollars, in one-dollar bills.

Your job is to put some of those dollar bills in the envelopes, in such a manner that no matter what number of dollars I ask you for you'll hand me the appropriate combination of envelopes.

The question is--what's the fewest number of envelopes, and how much money do you put in each one?



RAY: In the first nine envelopes, you're going to put one dollar, 2 dollars, then 4, 8, 16, 32, 64,128, and 256. That's nine envelopes.

If you add all those up, that's 511 dollars. So if I ask you for any amount up to 511 dollars, you would give me some combination of those envelopes, and if I asked you for 511.

You'd give you all of them.

So, I put everything else in the next envelope? 489 bucks. And if you do that, you can give me any amount of money that I ask for. For example, if I ask for say, 671 dollars, you would give me the envelope that's 489 dollars, plus you'd give me another 182 dollars. But we know that you can give me 182 dollars.

You could do that combination with the other envelopes.

Get the Car Talk Newsletter