Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Given the following sequence, give the Recurrence relation and its
closed form formula.
1. 1, 2, 3, 4, 5, 6,….
2. 1, 2, 4, 8, 16, 32,….
3. 2, 3, 5, 8, 12, 17,…
Solution:
1. 1, 2, 3, 4, 5, 6,….
1, 2, 3, 4, 5, 6,….n
a1 a2 a3 a4 a5 a6…. an
The next term an is equal to the One (1) is being added to itself
“n” times.
previous term an-1 added by 1. a1 = 1
Therefore, the recurrence relation for the a2 = 2
sequence is a3 = 3
a4 = 4
an = an-1 + 1
therefore, what is an ?
an = n
(you may do checking on your notebook)
Calayan Educational Foundation, Inc.
College of Arts & Sciences
2. 1, 2, 4, 8, 16, 32,….
1, 2, 4, 8, 16, 32, ….
a1 a2 a3 a4 a5 a6…. an
x2 x2 x2 x2 x2
To get the next term, you just need to multiply the previous term by 2.
a1 = 1 Using an = 2an-1
a2 = a 1 * 2 a1 = 1 =1
a2 = 2(1) =2
a3 = a 2 * 2 a3 = 2(2(1)) = 2*2
a4 = a 3 * 2 a4 = 2(2(2(1))) = 2*2*2
what did you observe?
what did you notice?
Two (2) is multiplied to itself
The next term an is equal to the (n-1) times.
a1 = 2 0
previous term an-1 multiplied by 2.
a2 = 2 1
Therefore, the recurrence relation for the a3 = 2 2
sequence is a4 = 2 3
an = an-1 * 2
therefore, what is an ?
or better
an = 2an-1 an = 2n-1
2, 3, 5, 8, 12, 17, ….
a1 a2 a3 a4 a5 a6…. an
+1 +2 +3 +4 +5
an = an-1 + n – 1 a1 = 2
a2 = 2 + 1
a3 = 2 + 1 + 2
a4 = 2 + 1 + 2 + 3
a5 = 2 + 1 + 2 + 3 + 4
an = 2 + 1 + 2 + 3 + 4+…+(n-1)
Therefore,
(𝑛−1)(𝑛−1+1)
an = 2 +
2
(𝑛−1)(𝑛)
an = 2 +
2
𝑛(𝑛−1)
an = 2 +
2
using the closed form, find a4, a8 & a10
Calayan Educational Foundation, Inc.
College of Arts & Sciences
1. 2, 4, 6, 8, 10, 12, ….
1 1 1 1
3. 1, , , , ,…
2 4 8 16