Trolls and Tolls
You are on your way to visit your Grandma, who lives at the end of the valley. It’s her birthday, and you want to give her the cakes you’ve made. Between your house and her house, you have to cross 7 bridges, and as it goes in the land of make believe, there is a troll under every bridge! Each troll, quite rightly, insists that you pay a troll toll. Before you can cross their bridge, you have to give them half of the cakes you are carrying, but as they are kind trolls, they each give you back a single cake. How many cakes do you have to leave home with to make sure that you arrive at Grandma’s with exactly 2 cakes?
An excellent question! Let’s work out the problem with variables first, and see if there is an underlying formula waiting to be discovered.
I start out with cakes (I don’t know what this number is yet) and I want to end up at Grandma’s house with 2 cakes, or .
I cross the first bridge, and the troll takes half my cakes but gives me one back. After I cross the bridge, I still want to have cakes. If I translate these sentences into math I get
I cross the second bridge and the troll takes half my cakes again but gives me one back. I am bringing with me to the second bridge, because that’s what I have left over from the first bridge. And, as before, I still want to have cakes after crossing the second bridge. In math I write this as
In other words, I take the formula from the first bridge and stick it into the numerator of the first term of the equation for the second bridge. I simplify to get
Now the third bridge. Same rigamarole as before so my equation becomes
And the fourth bridge
And the fifth bridge
Now I’ve done this enough to where I can see a pattern. At bridge five, the first fraction is . I’ve crossed five bridges at this point. The numerator has stayed the same but the denominator has been multiplied by 2 each time. So, I can re-write the first term more generally as
where is the number of bridges I have crossed.
The second term is . If I look at the pattern I see that this fraction increases according to
where is the number of bridges I have crossed.
Now, I can re-write my equation like this:
I can plug an any bridge number (1, 2, 3, and so on) and get any of the equations above. For example, for bridge 4 I get
which equals
which is what I got the first time. So, the equation works! Now all I have to do is re-arrange it to solve for and then I can figure out how many cakes I need to start with for any number of bridges–not just 7! The equation is
Voila. Now I can calculate how many cakes I need to start with () in order to end up with 2 cakes () after crossing 7 bridges (). And, since I left in the equation, I also don’t have to limit myself to ending up with just 2 cakes. I could figure out how many cakes I need to start with if I cross 7 bridges and want to end up with 3 cakes, for example. All I need to do is make .
A special thanks to my daughter and Mr. Jones at OIS for providing the inspiration for this post.