Teacherβs theorem is not even applied, so the inability to use it is not a significant limitation.
The approach that works here is to guess the upper and lower bounds and then prove these assumptions by induction, if the guesses are good.
a(0) = 0 a(1) = 1 a(2) = 3 a(3) = 10 a(4) = 41
A reasonable assumption for the lower bound is that a (n)> = n! for n> 1. This is true for n = 1. Assume that this is true for n = k-1.
a(k) = ka(k-1)+1 >= k (k-1)! + 1 >= k!.
So, if this is true for n = k-1, then it is true for n = k, so a (n)> = n! for all natural numbers n and a (n) = Omega (n!).
A reasonable assumption for the upper boundary has the form a (n) <= 2 (n!). This is true for the first few values, but it turned out to be a little inconvenient to prove the use of induction. Sometimes with inductive evidence it is better to prove something stronger. In this case, it is better to prove that a (n) 2 (n!), Or that a (n) <= 2 (n!) - 1. This is true for n = 1. Assume that this is true for n = k- 1 for some k-1> = 1. Then
a(k) = k(a(k-1))+1 <= k(2(k-1)!-1)+1 = 2(k!) +1-k <= 2(k-1)!-1.
So, for any n> = 1 a (n) 2 (n!). Since we have a lower bound and an upper bound of the form c * (n!), A (n) = Theta (n!).
source share