Lecture 05 - Induction and Recursion Rev 10aug2020
Lecture 05 - Induction and Recursion Rev 10aug2020
Mathematical Induction
Sequence
Defining sequence methods
Examples of sequence
Proving of explicit formula for recursive sequence
𝑷 𝟏 ∧ ∀𝒌 𝑷 𝒌 → 𝑷 𝒌 + 𝟏 ⟹ ∀𝒏𝑷 𝒏
Example:
𝑛 𝑛+1
Use Mathematical Induction to prove that the sum of the first n positive integers is .
2
n(n 1)
Let P(n) be the proposition that 1 2 3 n , for n = 1, 2, 3, ….
2
Example:
Use mathematical induction to prove the inequality n 2 n for all positive integers n.
Let P(n) be the proposition n 2 n , for n = 1, 2, 3, ….
A sequence is a function whose domain is either all the integers between two
given integers or all the integers greater than or equal to a given integer.
The next term of the sequence could be 9 if we mean a sequence of odd integers, or it
could be 11 if we mean the sequence of odd prime numbers.
TMA1401 MATHEMATICS FOR INFORMATION SYSTEMS I
FACULTY OF COMPUTING AND INFORMATICS
MULTIMEDIA UNIVERSITY
DEFINING SEQUENCE METHODS – EXPLICIT FORMULA
The second way to define a sequence is to give an explicit formula for its nth term.
For example, a sequence 𝑎0 , 𝑎1 , 𝑎2 , … can be specified by writing
−1 𝑛
𝑎𝑛 = for all integers 𝑛 ≥ 0
𝑛+1
The advantage of defining a sequence by such an explicit formula is that each term of the
sequence is uniquely determined and can be computed in a fixed, finite number of steps,
by substitution.
Example:
Given the sequence 20 , 21 , 22 , 23 , 24 , …
initial value : 𝑓0 = 1, 𝑓1 = 1 0 1
recurrence relation: 𝑓𝑛 = 𝑓𝑛−1 + 𝑓𝑛−2 for n ≥ 2 1 1
2 2
3 3
4 5
5 8
6 13
TMA1401 MATHEMATICS FOR INFORMATION SYSTEMS I
FACULTY OF COMPUTING AND INFORMATICS
MULTIMEDIA UNIVERSITY
PROVING OF EXPLICIT FORMULA FOR RECURSIVE SEQUENCE
Example:
Show that 𝑎𝑛 = 1 + 2𝑛 for all 𝑛 ∈ 𝑁 is the explicit formula for the recursion with initial
value 𝑎0 = 1 and recurrence relation 𝑎𝑛 = 𝑎𝑛−1 + 2 for all 𝑛 ∈ 𝑍 + .