You are here: Home Finding the rule or formula

## Example 1: Identifying patterns

### Question

Elvis makes boxes of fudge and works out the cost of making the boxes by using a pattern. Look at the table below.

 Number of boxes made 1 2 3 4 5 6 Cost of making the boxes (R) 6 10 14 18 22 26
1. What pattern do you see in this table?
2. Are there some different ways of describing the pattern?
3. What would it cost to make 20 boxes of fudge? How do you know?

1. The cost increases by R 4 as the number of boxes increases by 1.
2. We could also say that the cost is equal to 2, plus 4 times the number of boxes.
Or cost = 2 + (4 $$\times$$ number of boxes).
3. From our answer to Question 2, we know that the cost is equal to 2 plus 4 times the number of boxes.
$$\therefore$$ Cost = 2 + ($$\text{4} \times \text{20}$$)
= 2 + 80
= 82
So it would cost R 82 to make 20 boxes.

In the previous example we described the cost pattern using the number of boxes. This is a very useful thing to do, because it gives us a rule that we can use for any number of boxes!

The rule written in words is: $$\text{cost }= \text{2} + (\text{4} \times \text{ number of boxes})$$

If we use variables to write the rule, we have:

$$c = \text{2} + \text{4}b$$, where $$c$$ = cost and $$b$$ = number of boxes.

Notice that in the pattern in the example above, the cost of making the boxes of fudge depends on the number of boxes made. So the cost ($$c$$) is the dependent variable. The number of boxes ($$b$$) is the independent variable.

## Writing a general formula

Let's call the position of a number in a term $$n$$, so that we can use it to describe the value of the term. We call $$n$$ a variable, as it can represent different values.

A general formula for any term in the sequence in the table is $$(\text{10}n) - \text{5}$$.

(Remember that $$\text{10} \times n$$ can also be written as $$\text{10}n$$.)

So for the 100th term in this sequence, $$n = \text{100}$$ and the value of the term is $$(\text{10} \times \text{100}) - \text{5} = \text{995}$$.

What if you wrote a different number sentence for the pattern? You might have written:

$$\text{5} + [($$1$$- \text{1}) \times \text{10}] = \text{5} + \text{0} = \text{5}$$

$$\text{5} + [($$2$$- \text{1}) \times \text{10}] = \text{5} + \text{10} = \text{15}$$

$$\text{5} + [($$3$$- \text{1}) \times \text{10}] = \text{5} + \text{20} = \text{25}$$

If you replace the number in bold by $$n$$, you will get

$$\text{5} + [(n - \text{1}) \times \text{10}]$$. You will find that this simplifies as follows:

$$\text{5} + [(n - \text{1}) \times \text{10}]$$

$$= \text{5} + \text{10}n - \text{10}$$

### Exercise 1: Describing patterns

Describe each of these patterns in words, and then write three more terms in each sequence:

1. 2; 4; 8; 16;$$\ldots$$

2. 1; 5; 9; 13;$$\ldots$$

3. 3; 6; 9; 12;$$\ldots$$

4. 5; 10; 15; 20;$$\ldots$$

1. This number sequence starts at 2 and each term is multiplied by 2 to get the next term.

2. This number sequence starts at 1 and 4 is added to each term to get the next term.

3. This number sequence starts at 3 and 3 is added to each term to get the next term.

4. This number sequence starts at 5 and 5 is added to each term to get the next term.

Write down the first four terms of the pattern for each of the following descriptions:

1. This number sequence starts at 1 and 20 is added each time to get the next term.

2. This number sequence starts at 1 and each term is multiplied by 4 to get the next term.

3. This number sequence starts at 20 000 and each term is multiplied by 2 to get the next term.

1. 1; 21; 41; 61;$$\ldots$$

2. 1; 4; 16; 64;$$\ldots$$

3. 20 000; 40 000; 80 000; 160 000;$$\ldots$$

Complete the table for the following sequence and use the information to work out the general formula and the value of the 20th term: 5; 14; 23; 32; 41; 50;$$\ldots$$

 Position of term ($$n$$) 1 6 20 Value of term 5 14 32 41 50
 Position of term (n) 1 2 4 5 6 20 Value of term 5 14 32 41 50 174

Number sentence: $$(n \times \text{9}) - \text{4}$$. So 20th term $$=(\text{20} \times \text{9}) - \text{4} = \text{176}$$.

Kepa sells pies at a roadside stall. He earns a basic salary of R 250 per day and a commission of 40 c on each pie he sells.

1. Write an equation for calculating how much he earns at an event.

2. Use your equation to complete the table:

 Number of pies 20 40 60 80 100 Money earned (R)
3. Plot the data points from your table and draw a graph.

4. Should Kepa use the table, the graph or the equation to work out how much money he earns at the end of the day? Explain your answer.

1. Earnings = R 250 + ($$\text{40}\text{ c} \times n$$), where $$n$$ is number of pies he sells
2.  Number of pies 20 40 60 80 100 Money earned (R) 258 266 274 282 290
3. Because the graph is continuous, it will allow him to calculate how much money he earned for any number of pies. The precision with which he can read off the graph however, depends on the intervals between units on the graph's axes.