routine to model a geometric sequence. Recursive Routines A spider population has invaded the room!
Day one: 16 bugs are in the room
Every day, new bugs hatch, increasing the
population by 50% each week
Week One: The bug population increases by
Eight Recursive Routines Make a table like this:
Weeks Elapsed Total number of Increase in Ratio of this
bugs number of week’s total to bugs (rate of last week’s change per total week) Start (0) 16 N/A N/A 1 24 8 24/16 = 3/2 = 1.5 2 36 12 36/24 = 3/2 = 1.5 3 54 18 54/36 = 3/2 = 1.5 4 81 27 81/54 = 3/2 = 1.5 Record the total number of bugs at the end of each week for four weeks Recursive Routines Weeks Elapsed Total number of Increase in Ratio of this bugs number of week’s total to bugs (rate of last week’s change per total week) Start (0) 16 N/A N/A 1 24 8 24/16 = 3/2 = 1.5 2 36 12 36/24 = 3/2 = 1.5 3 54 18 54/36 = 3/2 = 1.5 4 81 27 81/54 = 3/2 = 3/2 or 1.5 = constant multiplier 1.5 Recursive Routines Constant Multipliers can be positive or negative:
3, 6, 12, 24, 48 Constant Multiplier = 2
3, -6, 12, -24, 48
Constant Multiplier = -2 Negatives change the sign on every other number Recursive Routines Value of boat: $30,000 Depreciates at 6% per year Write a recursive routine