presentation4
DESCRIPTION
Chapter 5- Sequences and Mathematical Induction (I)TRANSCRIPT
![Page 1: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/1.jpg)
Alex Soh 032184 Fahmi 032799
Lailatulkadariah 033059 Nazri 032515
Nursyafiqah 032251 Shafiq 033035
Nurul Afiqah 032656 Hafizah 033006
Nurul Huda 032405 Thiba 032669
Proundly presents Task 4
![Page 2: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/2.jpg)
Topics: 4.1 Sequences - Definition of sequence - Example problem involving sequence. -Types of sequence -Give 1 example sequences use in computer programming 4.2 Mathematical Induction 1 -List down the principle of Mathematical Induction. -Explain the method of Proof by mathematical Induction -Give 2 example problems that use for solving mathematical induction.
![Page 3: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/3.jpg)
4.1 Sequence
![Page 4: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/4.jpg)
4.1 Sequences
Definition of sequence
β’ A sequence is a list of numbers or a set of integers. β’ In technical terms, a sequence is a function whose domain is the set of
natural numbers and whose range is a subset of the real numbers. β’ We use the notation ππto denote the image of the integer n. β’ We call ππ a term of the sequence.
EXAMPLE Consider the function ππ = 2n + 1 (explicit formulae) The list of the terms of the sequence π1, π2, π3 , π4,π5β¦β¦ (list of domain) This function describes the sequence 3,5,7,9,11,...... (list of range)
![Page 5: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/5.jpg)
Example of problems involving sequence
The first term of an arithmetic sequence is equal to 6 and the common difference is equal to 3. Find a formula for the n th term and the value of the 50 th term
Solution β’ Use the value of the common difference d = 3 and the first term a1 = 6 in the
formula for the n th term given above an = a1 + (n - 1 )d = 6 + 3 (n - 1) = 3 n + 3
The 50 th term is found by setting n = 50 in the above formula.
a50 = 3 (50) + 3 = 153
4.1 Sequences
![Page 6: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/6.jpg)
TYPES OF sequence
β ARITHMETIC PROGRESSION
Arithmetic progression is a sequence of the form
a ,a+d ,a+2d,β¦β¦,a+(n-1)d, a+nd
where the initial a and the common difference d are real numbers.
A arithmetic progression is a discrete analogue of the linear function f(x)=dx+a.
4.1 Sequences
![Page 7: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/7.jpg)
Example β’ The sequences {dn} with dn= β1 + 4n and {tn} with tn= 7
β 3n are both arithmetic progressions with initial terms and common differences equal to β1 and 4, and 7 and β3, respectively,
If we start at n = 0. The list of terms d0, d1, d2, d3, . . . begins with
β1, 3, 7, 11, . . . , and the list of terms t0, t1, t2, t3,β¦ begins with 7, 4,
1,β2, . . . . 4.1 Sequences
![Page 8: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/8.jpg)
How to find the terms
β’ A nth term of an arithmetic sequence can be defined using the following formula,
an = a +(n-1)d
4.1 Sequences
![Page 9: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/9.jpg)
Example You are given that the first term of an arithmetic sequence is 1 and the 41st term is 381. What is the 43rd term? The difference between ai and aj is d Β· (j βi).
How can we use this to solve the given problem? Well since we know a1 = 1 and a41 = 381,we have a41=381= 1+40d. So, d= 381β1
40 and a43 β a41 = 2d = 2(
380
40)=
380
20 = 19
Therefore, a 43 = 381 + 19 = 400.
4.1 Sequences
![Page 10: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/10.jpg)
β’ Alternatively, we can use the equation a n =a+(n-1)d
a 43 = 1+ (43-1) (380
40)
= 1 + (42)(380
40)
= 1+399
= 400
4.1 Sequences
![Page 11: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/11.jpg)
Sum Of nth Terms β’ If m and n are integers mβ€n the symbol ππ
ππ=π , read the
summation from k equals m to n of a-sub-k, is the sum of all the terms am, am+1, am+2, β¦, an. We say that am,+ am+1+ am+2+ β¦+ an is the expanded form of the sum and we write
ππππ=π = aπ+ aπ + 1+ aπ + 2+β¦+aπ
β’ k= index of the summation β’ m= lower limit of the summation β’ n= upper limit of the summation
4.1 Sequences
![Page 12: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/12.jpg)
Sum Of nth Terms (cotdβ) β’ If we wanted to find the sum of terms ai + ai+1
+ ai+2 + Β· Β· Β· + aj, we need to find the average of the terms multiplied by the number of terms
ai + ai+1 + ai+2 + Β· Β· Β· + aj = ai+ aj
2Β· (j β i + 1)
Note that if you every get a fractional sum from an arithmetic sequence of integers, you probably did something wrong!
4.1 Sequences
![Page 13: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/13.jpg)
Example
Let there be a sequence defined by Ai={2, 5, 8, 11, 14, 17, 20, 23}, where 0<i<9. Find the sum of this sequence.
Using formula, (2+23)
2. 8 β 1 + 1 =
25
2Β· 8
A i
8π=1 = 100.
4.1 Sequences
![Page 14: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/14.jpg)
β‘ GEOMETRIC PROGRESSION
Geometric progression is a sequence of form
a,ar,arΒ²,β¦ arβΏ-1
where initial term a and the common ratio r are real number, nβ₯0
4.1 Sequences
![Page 15: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/15.jpg)
EXAMPLE The sequences {bn}with bn = (β1)n, {cn} with cn = 2 γ» 5n, and {dn} with dn = 6 γ» (1/3)n are geometric progressions with initial term and common ratio equal to 1 and β1; 2 and 5; and 6and 1/3, respectively. If we start at n = 0. The list of terms b0, b1, b2, b3, b4, . . . begins with
1,β1, 1,β1, 1, . . . ; C0,C1,C2,C3,C4
2,10,50,250,1250 d0,d1,d2,d3,d4
6,2,2 ,2 ,2 β¦..
3 9 24
4.1 Sequences
![Page 16: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/16.jpg)
Finding nth term
β’ To find the nth of a GP, we must first need to find the ratio of the GP by using the formula
πππ + 1
πππ
Then, we can use arπ to find the nth term of a GP
4.1 Sequences
![Page 17: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/17.jpg)
EXAMPLE β’ The first term of a geometric sequence of positive
integers is 1 and the 11th term is 243. How can you find the 13th term?
β’ We know g1= 1 and g11 = 243 so g11 g1
= 243 = r10. This
allows us to say
gj
gi= rj-i, you get
g13
g1
= r12
= (r10)6/5 = 729
4.1 Sequences
![Page 18: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/18.jpg)
Summation in GP
β’ First formula: if a and r are real number and rβ 1, then
Sn= πππππ=0 π(
ππ+1β1
πβ1), rβ 1
β’ Second formula: |r|<1 = π
1βπ
|r|β₯1 = πβπ(πππ)
1βπ =
πππ+1βπ
πβ1
4.1 Sequences
![Page 19: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/19.jpg)
EXAMPLE
β’ Given the term is {1, 3, 9, 27, 81}. Find the sum of the term given.
π5 = 1 β 3(81)
1 β 3= 121
4.1 Sequences
![Page 20: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/20.jpg)
β’ HARMONIC SEQUENCE
β’ A harmonic sequence is a sequence h1, h2, . . . ,
hk such that1h1
, 1h2
, β¦, 1hk
is an arithmetic
sequence.
4.1 Sequences
![Page 21: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/21.jpg)
β£ FIBONACCI SEQUENCE
β’ The Fibonacci sequence, f0, f1, f2, . . . , is defined by the initial conditions f0 = 0, f1 = 1,
and the recurrence relation
fn = fnβ1 + fnβ2
for n = 2, 3, 4, . . .
4.1 Sequences
![Page 22: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/22.jpg)
RECURRENCE RELATIONS
β’ A recurrence relation for the sequence { an } is an equation that expresses an in terms of one or more of the previous terms of the sequence, namely, a0 , a1 , . . . , an-1, an ,for all integers n with n β₯ n0 , where n0 is a nonnegative integer.
β’ A sequence is called a solution of a recurrence relation if its terms satisfy the recurrence relation.
4.1 Sequences
![Page 23: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/23.jpg)
β’ Its say that the recurrence relation is solved together with the initial conditions when we find an explicit formula, called a close formula, for the terms of the sequence.
β’ Example: Suppose that {an} is the sequence of integers defined by an= n!, the value of the factorial function at the integer n, where n = 1, 2, 3, . . .. Because n! = n((n β 1)(n β 2) . . . 2 γ» 1)
β’ n(n β 1)! = nan-1 , we see that the sequence of factorials satisfies the recurrence relation
β’ an = nan-1 , together with the initial condition a1 = 1. 4.1 Sequences
![Page 24: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/24.jpg)
EXAMPLE β’ Find the Fibonacci numbers f2, f3, f4, f5, and f6.
β’ Solution: The recurrence relation for the Fibonacci sequence tells us that we find successive terms by adding the previous two terms. Because the initial
conditions tell us that f0 = 0 and
f1 = 1, using the recurrence relation in the definition we find that
β’ f2 = f1 + f0 = 1 + 0 = 1,
β’ f3 = f2 + f1 = 1 + 1 = 2,
β’ f4 = f3 + f2 = 2 + 1 = 3,
β’ f5 = f4 + f3 = 3 + 2 = 5,
β’ f6 = f5 + f4 = 5 + 3 = 8.
4.1 Sequences
![Page 25: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/25.jpg)
β€ Special Integer Sequences
β’ It is used to identify a sequence
β’ Example: Find the formulae for the sequences with the following first 5 terms
a) 1, 1/2, 1/4, 1/8, 1/16
b) 1,3,5,7,9
4.1 Sequences
![Page 26: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/26.jpg)
β’ Solution:
a) we recognize that the denominator are powers of 2. the sequence with an = (1/2)n , n=0,1,2,... is a possible match. This proposed sequence is a geometric progression with a=1 and r= 1/2 .
b) note that each term is obtained by adding 2 to the previous term. The sequence with an = 2n=1, n=0,1,2,.. is a possible match. This proposed sequence is an arithmetic progression with a=1 and d=2.
4.1 Sequences
![Page 27: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/27.jpg)
4.1 Sequences
![Page 28: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/28.jpg)
4.1 Sequences
![Page 29: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/29.jpg)
β’ Sometimes we shift the index of summation in a sum. This is often done when two sums need to be added but their indices of summation do not match.
β’ Example: we have π25π=1 but we want the index of summation to
run between 0 and 4 rather than 1 to 5. Then we let k=j-1=0 and π2 become (k+1)2 . Hence,
π25π=1 = (π + 1)24
π=0
=1 + 4 + 9 + 16 + 25 = 55
Index shifting
4.1 Sequences
![Page 30: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/30.jpg)
ππ3π=1
4π=1 = (π + 2π + 3π)4
π=1
= 6π4π=1
=6+12+18+24
=60
Double summation
4.1 Sequences
![Page 31: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/31.jpg)
β’ A structured series of shots or scenes with a beginning, middle and end , the term sequence can be applied to video, audio or graphics.
β’ Structured programming provides a number of constructs that are used to define the sequence in which the program statements are to be executed.
usage on computer programming
![Page 32: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/32.jpg)
FLOWCHART
1
2
3
Usage on computer programming
4.1 Sequences
![Page 33: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/33.jpg)
Pseudocode Statement-1 Statement-2 Statement-3 Example: input a b= 5 + 2 * a print b
4.1 Sequences
![Page 34: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/34.jpg)
4.2 Mathematical
Induction
![Page 35: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/35.jpg)
To prove that P(n) is true for all positive intergers n, where P(n) is a propositional function by 2 steps:
4.2 Mathematical Induction 1
Principle of Mathematical Induction
BASIS: we verify that P(1) is true @ show that a initial value is true for all Z+ of the propositional function (inductive hypothesis )
INDUCTIVE: we show that the conditional statement βk (P(k) β P(k+1)) is true for all Z+ of k.
![Page 36: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/36.jpg)
β’ Similarly, we can say that mathematical induction is a method for proving a property defined that the property for integer n is true for all values of n that are greater than or equal to some initial interger.
P(1)^βk(P(k) β P(k+1))) β βnP(n)
4.2 Mathematical Induction 1
![Page 37: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/37.jpg)
β’ The proofs of the basis and inductive steps shown in the example illustrate 2 different ways to show an equation is true
Transforming LHS and RHS independently until they seem to be equal.
Transforming one side of equation until it is seen to be the same as the other side of the equation.
Method of proof
4.2 Mathematical Induction 1
![Page 38: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/38.jpg)
β’ Example 1
Using Mathematical Induction, prove that
4.2 Mathematical Induction 1
Problem Solving
1+2+β¦+n = π(π+1)
2, for all integers nβ₯1
![Page 39: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/39.jpg)
BASIS: Show that P(1) is true for the LHS and RHS of the equation. β΄Since LHS = RHS, we have proven P(1) is true.
Solution: we know that the property P(n) is the equation shown at the previous page. Hence, we need to prove it using BASIS and INDUCTION steps.
RHS= π(π+1)
2 , nβ₯1
= 1(1+1)
2
= 2
2
=1
LHS= 1+2+β¦+n = 1
![Page 40: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/40.jpg)
INDUCTIVE: we need to show that the equation can take any value k and itβs successive value (k+1) by defining P(k) [the inductive hypothesis] and P(k+1) for kβ₯1. If P(k) is true
then P(k+1) is true.
β΄Since Eq.1 and Eq.2 is identical for both LHS and RHS, therefore P(k+1) is true.
Inductive Hypothesis P(k)= 1+2+β¦+k
= π(π+1)
2
= π2+π
2
(assume that it is true)
P(k+1)= 1+2+β¦+k+(k+1)
= (π+1)(π+1+1)
2
= (π+1)(π+2)
2
= π2+3π+2
2 -Eq.1
P(k+1)= 1+2+β¦+k+(k+1) = P(k)+ (k+1)
= π2+π
2+ (k+1)
=π2+π +2(π+1)
2
= π2+π+2π+2
2
= π2+3π+2
2 -Eq.2
![Page 41: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/41.jpg)
β’ Example 2 Show that the sum of the first n odd integers is n2
Example: If n = 5, 1+3+5+7+9 = 25 = 52
Here, we know that d= n2-n1 =2 and a=1 Hence,
an = 1+(n-1)2 = 1+ (n)2 = 1+2n-2
=2n-1
Sn = (2π β 1)ππ=0
P(n)= (2π β 1)ππ=0
n2 = (2π β 1)ππ=0
![Page 42: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/42.jpg)
BASIS: Show that P(1) is true for the LHS and RHS of the equation. β΄Since LHS = RHS, we have proven P(1) is true.
Solution: Again, we have defined the general formula for the sum of the nth term of the odd positive integers as P(n)
RHS P(n) = (2π β 1)π
π=1 , nβ₯1 P(1) = (2(1) β 1)1
π=1 = 1
LHS
n2= 12 = 1
![Page 43: Presentation4](https://reader033.vdocument.in/reader033/viewer/2022052901/556a74ffd8b42a7c758b4691/html5/thumbnails/43.jpg)
INDUCTIVE: Again we need to show that if P(k) is true then P(k+1) is true.
β΄Since LHS = RHS, therefore P(k+1) is true.
Inductive Hypothesis P(k)= 1+3+β¦+(2k-1)
= (2π β 1)ππ=1
= π2
(assume that it is true)
P(k+1)= 1+3+β¦+(2k) = (2π β 1)π+1
π=0
= π + 1 2 (LHS)
(2π β 1)π+1π=1 = π + 1 2
2(k+1)-1+ (2π β 1)ππ=1 = π + 1 2
2k+1+k2= π + 1 2 k2+2k+1= k2 +2k+1 (RHS)