Hotmath
Math Homework. Do It Faster, Learn It Better.

Writing Number Patterns in Function Notation

Given a number pattern, or a sequence of numbers a 1 , a 2 , a 3 , , a n , we sometimes want to write the sequence in function notation, with the natural numbers are the domain of the function.

One of the simplest kinds of number pattern is the arithmetic sequence , in which each term differs from the previous term by a constant amount.

An arithmetic sequence with the first term a 1 and the common difference d can be written in function notation as

f ( n ) = a 1 + ( n 1 ) d

Example 1:

0 , 7 , 14 , 21 , 28 , ...

This is an arithmetic sequence with the first term 0 and a common difference of 7 .

f ( n ) = 0 + ( n 1 ) ( 7 ) = 7 n + 7

You can check, for example, that the function gives the correct value for the fourth term:

f ( 4 ) = 7 ( 4 ) + 7 = 28 + 7 = 21

Example 2:

4 , 7 , 10 , 13 , 16 , 19 ,

This is an arithmetic sequence with the first term 4 and a common difference of 3 .

f ( n ) = 4 + ( n 1 ) ( 3 ) = 4 + 3 n 3 = 3 n + 1

Another kind of number pattern is a geometric sequence , where each term is found by multiplying the previous term by a constant r called the common ratio .

Example 3:

1 9 , 1 3 , 1 , 3 , 9 , 27 , 81 ,

This is a geometric sequence with the first term 1 9 and a common ratio of 3 . It can be written in function notation as

f ( n ) = a 1 r n 1 = ( 1 9 ) 3 n 1

Other more complicated sequences can also be written in function notation.