<< Chapter < Page Chapter >> Page >

Assume that you have the flu virus, and you forgot to cover your mouth when two friends came to visit while you were sick in bed. They leave, and the next day they also have the flu. Let's assumethat they in turn spread the virus to two of their friends by the same droplet spread the following day. Assuming this pattern continues and each sick person infects 2 other friends, we can representthese events in the following manner:

Each person infects two more people with the flu virus.

Again we can tabulate the events and formulate an equation for the general case:

Day , n Number of newly-infected people
1 2 = 2
2 4 = 2 × 2 = 2 × 2 1
3 8 = 2 × 4 = 2 × 2 × 2 = 2 × 2 2
4 16 = 2 × 8 = 2 × 2 × 2 × 2 = 2 × 2 3
5 32 = 2 × 16 = 2 × 2 × 2 × 2 × 2 = 2 × 2 4
                        
n = 2 × 2 × 2 × 2 × ... × 2 = 2 × 2 n - 1

The above table represents the number of newly-infected people after n days since you first infected your 2 friends.

You sneeze and the virus is carried over to 2 people who start the chain ( a 1 = 2 ). The next day, each one then infects 2 of their friends. Now 4 people are newly-infected.Each of them infects 2 people the third day, and 8 people are infected, and so on. These events can be written as a geometric sequence:

2 ; 4 ; 8 ; 16 ; 32 ; ...

Note the common factor (2) between the events. Recall from the linear arithmetic sequence how the common difference between terms were established. In the geometric sequence we can determine the common ratio , r , by

a 2 a 1 = a 3 a 2 = r

Or, more general,

a n a n - 1 = r

Common factor of geometric sequence :

Determine the common factor for the following geometric sequences:

  1. 5 , 10 , 20 , 40 , 80 , ...
  2. 1 2 , 1 4 , 1 8 , ...
  3. 7 , 28 , 112 , 448 , ...
  4. 2 , 6 , 18 , 54 , ...
  5. - 3 , 30 , - 300 , 3000 , ...

General equation for the n t h -term of a geometric sequence

From the above example we know a 1 = 2 and r = 2 , and we have seen from the table that the n t h -term is given by a n = 2 × 2 n - 1 . Thus, in general,

a n = a 1 · r n - 1

where a 1 is the first term and r is called the common ratio .

So, if we want to know how many people are newly-infected after 10 days, we need to work out a 10 :

a n = a 1 · r n - 1 a 10 = 2 × 2 10 - 1 = 2 × 2 9 = 2 × 512 = 1024

That is, after 10 days, there are 1 024 newly-infected people.

Or, how many days would pass before 16 384 people become newly infected with the flu virus?

a n = a 1 · r n - 1 16 384 = 2 × 2 n - 1 16 384 ÷ 2 = 2 n - 1 8 192 = 2 n - 1 2 13 = 2 n - 1 13 = n - 1 n = 14

That is, 14 days pass before 16 384 people are newly-infected.

General equation of geometric sequence :

Determine the formula for the following geometric sequences:

  1. 5 , 10 , 20 , 40 , 80 , ...
  2. 1 2 , 1 4 , 1 8 , ...
  3. 7 , 28 , 112 , 448 , ...
  4. 2 , 6 , 18 , 54 , ...
  5. - 3 , 30 , - 300 , 3000 , ...

Exercises

  1. What is the important characteristic of an arithmetic sequence?
  2. Write down how you would go about finding the formula for the n th term of an arithmetic sequence?
  3. A single square is made from 4 matchsticks. Two squares in a row needs 7 matchsticks and 3 squares in a row needs 10 matchsticks. Determine:
    1. the first term
    2. the common difference
    3. the formula for the general term
    4. how many matchsticks are in a row of 25 squares
  4. 5 ; x ; y is an arithmetic sequence and x ; y ; 81 is a geometric sequence. All terms in the sequences are integers. Calculate the values of x and y .

Recursive formulae for sequences

When discussing arithmetic and quadratic sequences, we noticed that the difference between two consecutive terms in the sequence could be written in a general way.

For an arithmetic sequence, where a new term is calculated by taking the previous term and adding a constant value, d :

a n = a n - 1 + d

The above equation is an example of a recursive equation since we can calculate the n t h -term only by considering the previous term in the sequence. Compare this with equation [link] ,

a n = a 1 + d · ( n - 1 )

where one can directly calculate the n t h -term of an arithmetic sequence without knowing previous terms.

For quadratic sequences, we noticed the difference between consecutive terms is given by [link] :

a n - a n - 1 = D · ( n - 2 ) + d

Therefore, we re-write the equation as

a n = a n - 1 + D · ( n - 2 ) + d

which is then a recursive equation for a quadratic sequence with common second difference, D .

Using [link] , the recursive equation for a geometric sequence is:

a n = r · a n - 1

Recursive equations are extremely powerful: you can work out every term in the series just by knowing previous terms. As you can see from the examples above, working out a n using the previous term a n - 1 can be a much simpler computation than working out a n from scratch using a general formula. This means that using a recursive formula when using a computer to work out a sequencewould mean the computer would finish its calculations significantly quicker.

Recursive formula :

Write the first 5 terms of the following sequences, given their recursive formulae:

  1. a n = 2 a n - 1 + 3 , a 1 = 1
  2. a n = a n - 1 , a 1 = 11
  3. a n = 2 a n - 1 2 , a 1 = 2

The Fibonacci Sequence

Consider the following sequence:

0 ; 1 ; 1 ; 2 ; 3 ; 5 ; 8 ; 13 ; 21 ; 34 ; ...

The above sequence is called the Fibonacci sequence . Each new term is calculated by adding the previous two terms. Hence, we can write down the recursive equation:

a n = a n - 1 + a n - 2

Questions & Answers

how to create a software using Android phone
Wiseman Reply
how
basra
what is the difference between C and C++.
Yan Reply
what is software
Sami Reply
software is a instructions like programs
Shambhu
what is the difference between C and C++.
Yan
yes, how?
Hayder
what is software engineering
Ahmad
software engineering is a the branch of computer science deals with the design,development, testing and maintenance of software applications.
Hayder
who is best bw software engineering and cyber security
Ahmad
Both software engineering and cybersecurity offer exciting career prospects, but your choice ultimately depends on your interests and skills. If you enjoy problem-solving, programming, and designing software syste
Hayder
what's software processes
Ntege Reply
I haven't started reading yet. by device (hardware) or for improving design Lol? Here. Requirement, Design, Implementation, Verification, Maintenance.
Vernon
I can give you a more valid answer by 5:00 By the way gm.
Vernon
it is all about designing,developing, testing, implementing and maintaining of software systems.
Ehenew
hello assalamualaikum
Sami
My name M Sami I m 2nd year student
Sami
what is the specific IDE for flutter programs?
Mwami Reply
jegudgdtgd my Name my Name is M and I have been talking about iey my papa john's university of washington post I tagged I will be in
Mwaqas Reply
yes
usman
how disign photo
atul Reply
hlo
Navya
hi
Michael
yes
Subhan
Show the necessary steps with description in resource monitoring process (CPU,memory,disk and network)
samuel Reply
What is software engineering
Tafadzwa Reply
Software engineering is a branch of computer science directed to writing programs to develop Softwares that can drive or enable the functionality of some hardwares like phone , automobile and others
kelvin
if any requirement engineer is gathering requirements from client and after getting he/she Analyze them this process is called
Alqa Reply
The following text is encoded in base 64. Ik5ldmVyIHRydXN0IGEgY29tcHV0ZXIgeW91IGNhbid0IHRocm93IG91dCBhIHdpbmRvdyIgLSBTdGV2ZSBXb3puaWFr Decode it, and paste the decoded text here
Julian Reply
what to do you mean
Vincent
hello
ALI
how are you ?
ALI
What is the command to list the contents of a directory in Unix and Unix-like operating systems
George Reply
how can i make my own software free of cost
Faizan Reply
like how
usman
hi
Hayder
The name of the author of our software engineering book is Ian Sommerville.
Doha Reply
what is software
Sampson Reply
the set of intruction given to the computer to perform a task
Noor
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Siyavula textbooks: grade 12 maths. OpenStax CNX. Aug 03, 2011 Download for free at http://cnx.org/content/col11242/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Siyavula textbooks: grade 12 maths' conversation and receive update notifications?

Ask