I am having trouble knowing what to do here. Can you give me a hint about what to solve this? It's a recurrence relation. Anything is helpful at this point.
"You take a loan of S dollars that is to be paid back in T periods of time. If r is the interest rate per period of the loan, what constant payment P do you have to make at the end of each period? This is a boundary value problem. What are the boundary values? Solve it on the computer. Say r = 0:05 and S = 10000. Try different P and see for which T you have paid back. Plot with command Plot the values of your debt after period n, an, where a0 = S."
The plotting is referred to Mathematica by the way. I know that, with interest at 5%, we have A0 = 10000, A1 = 10.500, A2 = 11.025 and so on. So a recurrence relation (in my head) would be An = An-1 + 0.05*An-1. But I don't know how that helps me solve the problem. How can I define P if T is also not defined?