Sometimes, questions may be asked requiring students to formulate recurrence relations based on the information provided. We shall look at two examples below.
Example 1: A certain infectious disease spreads rapidly. On day 1, 3 people are infected. On day 2, 9 people have the disease. On day 3, there were 27 infectants. Assuming a constant rate of infection, write down an appropriate recurrence relation to describe this context.
Approach:
Let represent the number of cases of infection on day n.
On day 1, 3 people are infected, so we have as our base case.
For each subsequent day, the number of cases is tripled, so we obtain where
.
Note that the resulting sequence follows a geometric progression, since .
Example 2: We continue from example 1. To slow down the spread of this disease, the health authority proposes a measure to quarantine 15 patients each day starting from the third day. Assuming a constant rate of infection, write down an appropriate recurrence relation to describe this context.
Approach:
Let represent the number of non-quarantined cases of infection on day n.
The base cases are ,
,
(because the quarantine measure kicks in only on day 3).
For each subsequent day, the number of cases is again tripled and 15 people are to be taken out to be quarantined, so we have where
.
As an exercise, I leave this question for the keen learner to reflect upon:
Show that the number of non-quarantined cases of infection on the Nth day of the measure is . Hence deduce the long-term behaviour of the disease.
Hints: Read my first article on recurrences. What happens if .