Suppose that
\(t(n)\) is a recursive function defined for
\(n\geq 1\) such that
\(t(1)=1\) and for
\(n\geq 2\text{,}\) \(t(n)=2t(n-1)+1\text{.}\) Create a proof that for all
\(n\geq 1\text{,}\) \(t(n) = 2^n - 1\text{.}\)
Let \(S_n\) be the statement that \(t(n) = 2^n - 1.\)
---
Since \(2^1 - 1 = 1\) and \(t(1)=1\text{,}\) we see that the basis step is true.
---
We see that \(t(1)=2^1 - 1 = 1\text{,}\) so the basis step is true.
#paired
---
The basis step is obvious, so we proceed onward.
#paired
---
Assume that for all integers \(k\geq 1\) that \(S_k\) is true. That is, \(t(k) = 2^k - 1\text{.}\)
#distractor
---
Assume that for some integer \(k\geq 1\) that \(S_k\) is true. That is, \(t(k) = 2^k - 1\text{.}\)
---
We must prove that \(S_{k+1}\) is true. That is, we will prove that \(t(k+1)=2^{k+1}-1\text{.}\)
---
Since \(S_{k}\) is true for all \(k\geq 1\text{,}\) we know that \(S_{k+1}\) is true.
#distractor
---
Since \(k\geq 1\text{,}\) we know that \(k+1 \geq 2\text{,}\) and thus \(t(k+1) = 2t(k+1-1)+1 = 2t(k)+1\text{.}\)
---
We have that \(t(k+1) = 2t(k+1-1)+1 = 2t(k)+1\text{.}\)
#distractor
---
By the inductive hypothesis, since \(S_k\) is true, we know that \(t(k)= 2^k-1\text{.}\)
---
Thus, \(t(k+1)=2t(k)+1 = 2(2^k-1)+1 = 2^{k+1}+1\text{.}\) This proves that \(S_{k+1}\) is true.
---
Therefore, by the Principle of Mathematical Induction, for all positive integers \(n\text{,}\) \(t(n)=2^n-1\text{.}\)