10.1 The First-Order Linear Recurrence Relation
312706017 林軒浩
Recurrence Relation
Geometric progression
5, 15, 45, 135, …
an+1 = 3an n≥0 a0=5
7,21,63,189
an+1 = 3an n≥0 a0=7
an+1 = dan , n≥0, d is constant
a0 = 5
a1 = 3a0 = 3(5)
a2 = 3a1 = 3(3a0) = 32(5)
a3 = 3a2 = 3(32(5)) = 33(5)
an+1 = dan , where n≥0, d is a constant , a0=A
is given by
an = Adn, n≥0
A bank pays 6% interest on saving, compounding the interest monthly. If Bonnie deposits $1000 on the first day of May , how much will this deposit be worth a year later?
The annual interest rate is 6%, so the month rate is 6%/12 = 0.5% = 0.005
an+1 = 2an n≥1 a1=1
bn+1 = 2bn n≥0 b0=1
So bn = b0(2n) = 2n, and an = bn-1 = 2n-1,n ≥ 1
Find a12 if an+12 = 5 an2, where an > 0, n ≥ 0 , a0=2
In example 9.6 we sought the generating function for the sequence 0 , 2 , 6 , 12 , 20 , 30 , 42,…, and the solution is an = n2 + n
a1 – a0 = 2 a3 - a2 = 6 a5 - a4 = 10
a2 – a1 = 4 a4 - a3 = 8 a6 - a5 = 12
an – an-1 = 2n, n ≥1, a0 = 0
a1 – a0 = 2
a2 – a1 = 4
a3 - a2 = 6
…
an – an-1 = 2n
333 = 3(84) + 81 0<81<84
84 = 1(81) + 3 0<3<81
81 = 27(3) + 0
81 = 333 mod 84 and 3 = 84 mod 81
gcd(333,84) = gcd(84,333 mod 84) = gcd(333 mod 84,84 mod (333 mod 84))
(Step 1): If b|a (or a mod b = 0), gcd(a,b) = b
(Step 2): If b !| a , then perform the following tasks in the order specified
i) Set a = b
ii)Set b = a mod b, where the value of a for this assignment is the old value of a
iii)Return to step(1)
Thank you
for listening