4.3
4.3
4.3
B 1
a0 128, an an 1 for n 1
4
C b1 5, bn 7 2bn 1 for n 2
D
a1 1, a2 2, an an 1 3 an 2 for n 3
E
d1 1, d 2 2, d 3 3, d n d n 1 d n 2 d n 3 for n 4
Modeling with Recurrence Relation
• We can use recurrence relation to model a wide variety of
problems such as
S n 2 S n 1 ; S0 1
Solution:
S0 1
S1 2S0
S 2 2S1 2 2S0 22 S0
S3 2S 2 2 22 S0 23 S0
S n 2S n 1 2 2n 1 S0 2n S0 2n ; n 1
Recall: Mathematical Induction
Steps:
S k 1 2 S k 2 2k 2k 1
4. Conclusion: Therefore, the statement is true for each integer n ≥ n0
Generating Function
• Generating functions are used to represent sequences efficiently by coding the
terms of a sequence as coefficients of powers of a variable x in a formal power
series.
The generating function for the sequence a0, a1,…,ak,… of real
numbers is the infinite series
G x a0 a1 x ak x k ak x k
k 0
formal power series
REMARKS:
sometimes, this generating function for {ak} is called
the ordinary generating function of ak
Example
ak k 1, G x k 1 x k
k 0
ak 2k , G x 2k x k
k 0