English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I came up with an explicit formula of: f(n) = 5*2^(n-1) - 3 as a solution to the recursive sequence: f(n) = 2f(n-1) + 3 for all integers n >= 2 and f(1) = 2. Is there a way to use mathematical induction to verify the "correctness" of my explicit formula?

2007-12-06 04:38:13 · 1 answers · asked by ǝɯɐuɹǝsn ɔıɹǝuǝƃ 3 in Science & Mathematics Mathematics

1 answers

Yes, in fact induction is an optimal method for proving the correctness of solutions to recursive functions. You need to do two things: first, prove that the formula is correct for n=1, and second, prove that if it is correct for n, then it is also correct for n+1. Then it will follow that the formula is correct for all n. Let us check these conditions:

f(1) = 5*2^(1-1) - 3 = 5*2^0 - 3 = 5-3 = 2 ✓

Suppose f(n) = 5*2^(n-1) - 3. Then by the recurrence relation f(n+1) = 2f(n) + 3 = 2*(5*2^(n-1) - 3) + 3 = 5*2^n - 6 + 3 = 5*2^((n+1)-1) - 3, so the formula also holds for n+1. ✓

Thus by induction, f(n) = 5*2^(n-1) - 3 for all n

2007-12-06 04:50:45 · answer #1 · answered by Pascal 7 · 1 0

fedest.com, questions and answers