A Recurrence Riddle
Two sisters, Amy and Sarah, are staying busy on a long car ride. Sarah is reading a book. Amy is poking her older sister and trying to start a conversation.
To give Amy something to do, Sarah looks up from her book and says, “Look – I’ll give you a math puzzle, and once you get the answer, I’ll put down the book and talk with you.” Amy is up for the challenge and agrees.
Here’s the puzzle that Sarah gives Amy:
Define the sequence of numbers a1,a2,a3,… as follows:
a1=1
an=an−1+2n−1 for all n>1.
Find a10000.
“No fair!” says Amy. “That’ll take forever to compute.”
“Well, you agreed to the challenge,” Sarah says. “It’s completely fair.”
Amy thinks for a bit, and comes up with the idea to find a closed form expression for an: one that doesn’t require calculating any of the terms before the one you’re interested in. (For instance, an=2n would be a closed form, since you could just plug in n=10000 to get your answer, but it’s not the right expression.)
Can you help Amy find a closed form expression for an and then calculate a10000?
The solution can be found here. Happy puzzling!
Print-friendly versions of all Brain Play problems can be found here.