Recursive

Site: Clare
Course: Michigan Algebra I Sept. 2012
Book: Recursive
Printed by: Guest user
Date: Sunday, November 24, 2024, 1:01 AM

Description

Recursive

Recursion

Recursion is the process of choosing a starting term in a sequence of numbers and repeatedly applying the same process to each term to arrive at the next term. Recursion requires that you know the value of the term immediately before the term you are trying to find. It is often used in computer programming. It helps to find the patterns that are occurring.

The nursery rhyme "This is the House That Jack Built," is an example of recursion. Please read through it and try to put into words what is happening. Select the following link to read the Mother Goose nursery rhyme:

"This is the House That Jack Built"

An everyday example of recursion is a TV camera that is focused on a scene that includes a TV monitor displaying the image recorded by the camera. The image seen on the monitor includes an image of the monitor displaying an image of the monitor and so on - that's also recursion.


In Math

An example used in math might come from an ordered list of numbers, also known as a sequence. Consider the sequence below:

1, 3, 5, 7, 9 . . .

Step 1. What is the first term?

The first term in the sequence is 1.

Step 2. What has to be done to the first term to yield the second term?

If you add 2 to the first term, you get the second term.

Step 3. Does this pattern continue?

If you add 2 to the second term, you get the third term and so on. You can get to any term in the sequence by adding two to the term before it.

Formulas

Recursion is the process of choosing a starting term and repeatedly applying the same process to each term to arrive at the following term. Recursion requires that you know the value of the term immediately before the term you are trying to find.

A recursive sequenceis an ordered list of numbers defined by a starting value and a rule. Given a list of numbers when the same operation is applied over and over, a formula or rule can be written. A recursive formula always has two parts:

  1. The starting value which is called Recursive1-1. This means the first term in the list or the function rule for term one.
  2. The recursion equation or formula which states what operation is being done to the previous term, called Recursive1-2, to get to any term known as Recursive1-4.

The recursive formula for the ordered list 1,3,5,7,9, . . . would be:

Recursive1-4

Example 1

Find the recursive formula for the sequence: 4, 12, 20, 28, 36...

Step 1. Define the first term.

RecursvieEx1-1

Step 2. Find the pattern to get from one term to the next.

4 + 8 = 12
12 + 8 = 20
20 + 8 = 28
28 + 8 = 36

Step 3. Write a recursive function to represent this pattern.

RecursiveEx1-2

Step 4. Put the two parts together into one recursive formula.

The recursive formula is: RecursiveEx1-3


Example 2

Find the recursive formula for the sequence: 12, 9, 6, 3, 0 . . .

Step 1. Define the first term.

RecursiveEx2-1

Step 2. Find the pattern to get from one term to the next.

12 - 3 = 9
9 - 3 = 6
6 - 3 = 3
3 - 3 = 0

Step 3. Write a recursive function to represent this pattern.

RecursiveEx2-2

Step 4. Put the two parts together into one recursive formula.

The recursive formula is: RecursiveEx2-3


Example 3

Find the recursive formula given the following table:

RecursiveEx3Table

In this example, the initial term is the 0 term, not 1. Most of the time, recursive formulas begin with either term 0 or 1. There are other ways to show the initial term including RecursiveEx3-1 for the zero term or RecursiveEx3-1a for the first term. Other letters may be used as well. In this case, RecursiveEx3-2.

Now find the pattern in the table. From one term to the next, a constant amount is not added but multiplied.

RecursiveEx3-2a

In this case, to go from one term to the next, multiply by 3. Therefore, the recursive formula is:

RecursiveEx3-2;RecursiveEx3-3


Video Lesson

For a video lesson on finding a sequence or list of numbers using recursion, select the following link:

Recursive Functions Video

Practice

Recursive Functions Worksheet

*Note: If Google Docs displays “Sorry, we were unable to retrieve the document for viewing,” refresh your browser.

Answer Key

Recursive Functions Answer Key

*Note: If Google Docs displays “Sorry, we were unable to retrieve the document for viewing,” refresh your browser.

Sources

Amherst University, ""This is the House..."." http://www3.amherst.edu/ ~rjyanco94/literature/mothergoose/rhymes/thisisthehousethatjackbuilt.html (accessed 08/25/2010).

Holt, Rinehart, and Winston, "Lesson Tutorial." http://my.hrw.com/ math06_07/nsmedia/lesson_videos/alg2/player.html?contentSrc=6496/6496.xml (accessed 08/25/2010).

KeyMath.com, "Recursive Sequences." http://www.keymath.com/x3293.xml (accessed 09/11/2010).

Regents Prep, "Recursive Sequences." http://regentsprep.org/ Regents/math/algtrig/ATP3/Recursive.htm (accessed 08/27/2010).