Skip to content
Tutorials Center
My learning

Topics

Lesson 24 of 38 ยท Patterns and Sequences

Number Patterns and Rules

Spot patterns in lists of numbers, describe them with words and with an n-th term rule, and use the rule to predict any term without listing the rest.

Mathematics is often called the science of patterns. A pattern is something that repeats or changes in a predictable way. Once you spot the pattern, you can predict what comes next, and even what comes 100 places later, without writing everything out. In this chapter you will learn the language of sequences and the tools for working with them.

A sequence is an ordered list of numbers. Each number is called a term. In the sequence 4, 7, 10, 13, ... the first term is 4, the second is 7, and so on. The three dots mean "and the pattern continues".

Finding the pattern

To find a pattern, look at how each term relates to the one before it.

Example 1: 4, 7, 10, 13, ... Differences: 7 - 4 = 3, 10 - 7 = 3, 13 - 10 = 3. The same number, 3, is added each time. The next terms are 16 and 19.

Example 2: 2, 6, 18, 54, ... Differences are not equal (4, 12, 36). Try dividing each term by the previous: 6/2 = 3, 18/6 = 3, 54/18 = 3. Each term is multiplied by 3. Next: 162.

Example 3: 1, 4, 9, 16, 25, ... Neither a common difference nor a common ratio. But these are 1ร—1, 2ร—2, 3ร—3, 4ร—4, 5ร—5: the square numbers. The next is 6ร—6 = 36.

Example 4: 100, 90, 81, 73, ... Differences: -10, -9, -8. The difference itself changes by +1 each time, so the next difference is -7: the next term is 66.

flowchart TD
  A["Look at a sequence"] --> B{"Same difference<br/>each time?"}
  B -->|"Yes"| C["Add or subtract that number"]
  B -->|"No"| D{"Same ratio<br/>each time?"}
  D -->|"Yes"| E["Multiply or divide by that number"]
  D -->|"No"| F["Look at differences of differences,<br/>squares, or other rules"]

A quick checklist for hunting a pattern.

Two ways to describe a pattern

1. A term-to-term rule. Tells you how to get the next term from the current one: "start at 4 and add 3". It is easy to find, but to get the 50th term you need all 49 before it.

2. A position-to-term rule (the n-th term). Tells you the term directly from its position n (1 for the first term, 2 for the second, and so on). For 4, 7, 10, 13, ... the rule is:

Text
term(n) = 3n + 1

Test it: n = 1 gives 3(1) + 1 = 4. n = 2 gives 7. n = 4 gives 13. The 50th term is 3(50) + 1 = 151, found instantly.

How did we find 3n + 1? The difference is 3, so the rule starts with 3n. Compare 3n (3, 6, 9, 12) with the actual terms (4, 7, 10, 13): each is 1 more, so we add 1.

Python Test an n-th term rule

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Finding a rule step by step

Given 5, 9, 13, 17, ...:

  1. Find the common difference: 4.
  2. Start the rule with 4n. That gives 4, 8, 12, 16.
  3. Compare with the real terms: 5, 9, 13, 17. Each is 1 more than 4n.
  4. The rule is term(n) = 4n + 1.

Given 20, 17, 14, 11, ...: the difference is -3, so start with -3n: -3, -6, -9, -12. Real terms are 23 more, so term(n) = -3n + 23. Check: n = 4 gives -12 + 23 = 11. Correct.

Does a number belong to the sequence?

Is 100 a term of 4, 7, 10, 13, ...? Set the rule equal to 100:

Text
3n + 1 = 100
3n = 99
n = 33

Since 33 is a whole number, 100 is the 33rd term. Is 50 a term? 3n + 1 = 50 gives n = 49/3 โ‰ˆ 16.33, not a whole number, so 50 is not a term.

The tool below finds the rule for a straight-line pattern automatically and tests membership.

Python Find the rule and test membership

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Patterns with shapes

Patterns also appear in pictures. Imagine building a row of squares from matchsticks: 1 square needs 4 sticks, 2 squares in a row need 7, 3 squares need 10. Each new square adds 3 sticks. So sticks(n) = 3n + 1: the same rule as above. Seeing the same rule in a picture and in numbers is the whole point of algebra.

Python Matchstick squares

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Common mistakes

  • Saying a pattern from only two or three terms. Several different rules can fit a short list, so check at least four terms when you can.
  • Mixing up the term (the value) and the position n.
  • Using the term-to-term rule when you need a far-away term. The n-th term rule is faster.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the next term in 3, 8, 13, 18, ...?

    The common difference is 5, so 18 + 5 = 23.
  2. 2. Which rule gives 7, 11, 15, 19, ... (n = 1, 2, 3, 4)?

    The difference is 4, so start with 4n (4, 8, 12, 16). Each term is 3 more, so the rule is 4n + 3.
  3. 3. Using term(n) = 5n - 2, what is the 20th term?

    5(20) - 2 = 100 - 2 = 98.
  4. 4. Is 61 a term of the sequence 2, 5, 8, 11, ... (rule 3n - 1)?

    3n - 1 = 61 gives 3n = 62, so n = 20.67, not a whole number. 61 is not a term.

Summary

  • A sequence is an ordered list of terms; look for a common difference, a common ratio or another rule.
  • A term-to-term rule tells you the next term; an n-th term rule jumps straight to any position.
  • For a constant difference d, the n-th term starts dn, then adjust by a constant.
  • To test whether a number is in a sequence, solve the rule for n and check it is a whole number.

Next: Arithmetic Sequences