Skip to main content
Logo image

Section 11.3 Solving through iteration

Given a recursively defined sequence {ak}, we can โ€œunravelโ€ the recursive definition to determine an explicit formula for the general term ak which involves only the index k.

Worked Example 11.3.1.

Solve the recurrence relation from Example 11.2.1.
Solution.
The sequence in the example was defined recursively by h0=100 and
hk=34hkโˆ’1,kโ‰ฅ1.
We can apply this formula to every term in the sequence, except for the first, using the pattern โ€œeach term is three-quarters of the previous term.โ€ That is,
hk=34hkโˆ’1,hkโˆ’1=34hkโˆ’2,hkโˆ’2=34hkโˆ’3,โ€ฆ.
Therefore, for kโ‰ฅ1, we can calculate
hk=34hkโˆ’1=34(34hkโˆ’2)=(34)2hkโˆ’2=(34)2(34hkโˆ’3)=(34)3hkโˆ’3โ‹ฎ=(34)kh0=(34)k(100).
(Note that this formula is also valid for k=0.)
We can verify our formula by substituting it into the original recurrence relation:
RHS=34hkโˆ’1=34(34)kโˆ’1h0=(34)kh0=hk=LHS.
We could also prove our formula is correct by induction.

Worked Example 11.3.2.

Solve the recurrence relation ak=rakโˆ’1 for kโ‰ฅ1, where r is a constant and the first term a0 is arbitrarily chosen.
Solution.
Through iteration, we obtain
ak=rakโˆ’1=r(rakโˆ’2)=r(r(ranโˆ’3))=โ‹ฏ=rka0.

Worked Example 11.3.3.

Solve the recurrence relation from Example 11.2.2.
Solution.
The sequence in the example was defined recursively by a0=1 and
ak=kakโˆ’1,kโ‰ฅ1.
Therefore, for kโ‰ฅ1, we have
ak=kakโˆ’1(kโˆ’1)(kโˆ’2)โ‹ฏ(kโˆ’(kโˆ’1))=k(kโˆ’1)(kโˆ’2)โ‹ฏ1โ‹…a0=k!.=k((kโˆ’1)akโˆ’2)ak=k((kโˆ’1)((kโˆ’2)akโˆ’3))โ‹ฎ=k(kโˆ’1)(kโˆ’2)โ‹ฏ(kโˆ’(kโˆ’1))akโˆ’k.
Simplifying this last expression leads to
ak=k(kโˆ’1)(kโˆ’2)โ‹ฏ1โ‹…a0=k!.
Note that the formula ak=k! is also valid for k=0 when we adopt the convention 0!=1.

Checkpoint 11.3.4.

Verify that the formula in the solution to the above worked example satisfies the recurrence relation.

Worked Example 11.3.5.

Solve the recurrence relation a0=1, a1=12, and
ak=k2(kโˆ’1)akโˆ’1,kโ‰ฅ2.
Solution.
Iterating, we obtain
ak=k2(kโˆ’1)akโˆ’1=k2(kโˆ’1)(kโˆ’12(kโˆ’2)akโˆ’2)=k22(kโˆ’2)akโˆ’2=k22(kโˆ’2)(kโˆ’22(kโˆ’3)akโˆ’3)=k23(kโˆ’3)akโˆ’3โ‹ฎ=k2kโˆ’1(kโˆ’(kโˆ’1))akโˆ’(kโˆ’1).
Simplifying this last expression, we obtain
ak=k2kโˆ’1a1=k2k.