Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
an = an-1 + an-2
Replace the terms ai with xi, i = n, n-1, , n-r, we obtain the following equation in x:
(1)
(2)
The equation (2) is called the characteristic equation of (1). And any root of (2) is called a characteristic root of the recurrence relation (1)
II. 1, 2, , r (1 k r) are distinct characteristic roots of (1) s.t. i is of multiplicity mi, i = 1, 2, , k, then the general solution of (1) is given by a n = (A 11 +A 1 2 n++A 1 m1 n m1-1)(1) n
Result I
a n = A 1 (1) n + A 2 (2) n + + A r (r) Result II a n = (A 11 +A 1 2 n++A 1 m1 n m1-1)(1) n + (A 21 +A 22n++A 1 m2 n m2-1) (2) n
+
+ (A k1 +A k 2 n++A 1 mk n mk-1) A r (r)
Example 1: Solve the recurrence relation an = an-1 + an-2 given that a0 = 1 and a1 = 1. The recurrence relation can also be written as: an - an-1 - an-2 = 0 Its characteristic equation will be x2 x 1 = 0 And its characteristic roots will be 1=
1+ 5 and 2
2 =
1 5 2
Final solution:
=
for all n 0.
From the recurrence relation we obtain the first few terms of the sequence: 1, 1, 2, 3, 5, 8, 13, 34, 55, 89, 144, The BEAUTIFUL formula above for the nth Fibonacci number is called the Binet formula.
Example 2: Solve the recurrence relation an 7an-1 + 15an-2 9an-3 = 0 given that a0 = 1, a1 = 2 and a2 = 3.
Example 3: Solve the recurrence relation an = 2(an-1 an-2) given that a0 = 1 and a1 = 0.
Vas happenin mates?! Bloody good report eh? Hope to see you soon! Bye!!!