Homework 2
Document last modified:
For the recurrence:
T(2) = 2
T(n) = 2T(n/2) + n if n=2k, for k>1
Hint: 2.3-3
Assume: T(2k) = 2k lg 2k
Show: T(2k+1) = 2k+1 lg 2k+1
The amount left can be defined by the recurrence equation:
An+1 = An (1 + I) - P
The closed-end formula is:
An = (M - P/I)(1+I)n+P/I
To calculate the monthly payment on a 30-year loan of $100,000 at 12% interest per year (12% makes the math easier, monthly interest is 0.12/12 = 0.01) requires the key insight that after 30 years for:
An = (M - P/I)(1+I)n+P/I
A360 = (100,000 - P/0.01)(1+0.01)360+P/0.01 = 0
and solve for P. This is not exact because of rounding to whole
cents.
An = (M - P/I)(1+I)n+P/I
This looks a little worse but is solved the same as those in class.
Turn in