Problem Solving
1.2 Exploration with Patterns
Sequences and Spotting Patterns
One of the most natural things humans do when presented with data is look for patterns. Before we try to prove anything, we observe. We look at examples, notice what's repeating or changing, and make a guess. This section is about that process and about knowing when to trust it.
Beginning Sequences
Example: Shape sequence
Find the next three terms of the pattern:
$$\square,\ \triangle,\ \triangle,\ \square,\ \triangle,\ \triangle,\ \square,\ \ldots$$
Show Solution
The pattern repeats every three terms: one square followed by two triangles. So the next three terms continue that cycle:
$$\square,\ \triangle,\ \triangle$$
The sequence is:
$$\square,\ \triangle,\ \triangle,\ \square,\ \triangle,\ \triangle,\ \square,\ \triangle,\ \triangle,\ \square,\ \ldots$$
Example: A number pattern, but be careful
Look at the following pattern. Describe what you see. Does the pattern continue forever?
$$1 + 0(9) = 1$$ $$2 + 1(9) = 11$$ $$3 + 12(9) = 111$$ $$4 + 123(9) = 1111$$ $$5 + 1234(9) = 11111$$
Show Solution
It looks like the result is always a string of 1s, and the coefficient of 9 grows by appending the next digit each time. It's a satisfying pattern, but patterns can fool you.
Check what happens much further in the sequence:
$$13 + 123456789101112(9) = 1111111101910021$$
That last result is not a string of 1s. The pattern breaks down because the digits in the large multiplier of 9 start interfering with each other when they carry over. Always be suspicious of a pattern based on only a few examples.
MyOpenMath: Spot the pattern
Inductive vs. Deductive Reasoning
When we look at a few examples and say "I think this always works," we're doing inductive reasoning. When we use established rules to prove something must be true, we're doing deductive reasoning. Both are essential in mathematics, but they play very different roles.
Definition: Inductive Reasoning
Inductive reasoning is drawing a general conclusion from specific observations or examples. It moves from the specific to the general.
Inductive arguments are not proofs. They are strong or weak depending on the number and quality of examples observed.
Fact: The limits of inductive reasoning
- "I saw one guy wearing a green shirt. Everyone must wear green shirts." - Weak: only one case.
- "The sun has risen every single day for the 10,950 days I've been counting. It will rise tomorrow." - Strong: many cases, consistent pattern.
Neither of these is a mathematical proof. A single counterexample can destroy an inductive conclusion entirely.
Definition: Deductive Reasoning
Deductive reasoning is drawing a specific conclusion from general principles, premises, or axioms assumed to be true. It moves from the general to the specific.
If the premises are true and the reasoning is valid, the conclusion must be true. This is how mathematics proves things.
Fact: Classic deductive syllogism
- Premise 1: All men are mortal.
- Premise 2: Socrates is a man.
- Conclusion: Socrates is mortal.
The conclusion necessarily follows. No examples needed.
Example: Consecutive number sums
Consider the following data:
| Sum | Value |
|---|---|
| $3 + 4 + 5$ | $12$ |
| $14 + 15 + 16$ | $45$ |
| $19 + 20 + 21$ | $60$ |
| $99 + 100 + 101$ | $300$ |
What pattern do you notice? What type of reasoning are you using to conclude it always works? Can you make a deductive argument?
Show Solution
An inductive observation is: the sum of three consecutive integers always equals three times the middle number.
- $3 + 4 + 5 = 12 = 3 \times 4$
- $14 + 15 + 16 = 45 = 3 \times 15$
- $19 + 20 + 21 = 60 = 3 \times 20$
- $99 + 100 + 101 = 300 = 3 \times 100$
We could even check it with a few more cases. Pick a random number, say $5000$. $3\times 5000 = 15000$, so the sum of the consecutive integers around it should be the same. And indeed, they are: $4999+5000+5001=15000$.
That's inductive reasoning. We noticed it from examples. To make it deductive, we have to work from rules and axioms that we know to be true. A very powerful thing you can do in mathematics is to represent values that can change with a variable. If we want to talk about 3 consecutive integers in general we could let the them be $n-1$, $n$, and $n+1$. If you pick any value for $n$, then we're talking about the 3 integers around that $n$. Next, lets try to add them together:
$$(n-1) + n + (n+1) = 3n$$
No matter what integer $n$ is, the sum is always $3n$, i.e., three times the middle number. This is now a proof. It works for every set of three consecutive integers, not just the ones we checked.
Example: A conjecture about primes
A prime number is a natural number with exactly two distinct positive factors: 1 and itself. The first several primes are 2, 3, 5, 7, 11, 13, …
Amy makes a conjecture (a big mathy word for "guess") that the formula $y = x^2 + x + 11$ always produces a prime number when $x$ is a natural number.
Here's a table for the first few values:
| $x$ | $y = x^2 + x + 11$ |
|---|---|
| 1 | 13 |
| 2 | 17 |
| 3 | 23 |
| 4 | 31 |
Is Amy right?
Show Solution
The early evidence strongly supports Amy's conjecture. Every result so far is prime. That's inductive reasoning: it's persuasive, but it's not proof.
Now try to break it. Plug in $x = 11$:
$$y = 11^2 + 11 + 11 = 121 + 11 + 11 = 143$$
Is 143 prime? Factor it: $143 = 11 \times 13$. That's two factors other than 1 and 143 itself, so 143 is not prime. Amy's conjecture is false.
One counterexample is all it takes to disprove an inductive claim.
MyOpenMath: Inductive vs. Deductive reasoning
Arithmetic Sequences
Many patterns turn out to be sequences where you always add (or subtract) the same amount each step. These are arithmetic sequences.
Definition: Arithmetic Sequence
An arithmetic sequence is a sequence of numbers with a common difference $d$ between consecutive terms. If $a_1$ is the first term, the sequence is:
$$a_1,\ a_2,\ a_3,\ a_4,\ \ldots,\ a_n$$
where $a_k - a_{k-1} = d$ for any consecutive pair. The nth term is given by:
$$a_n = a_1 + d(n-1)$$
Here are a few examples to make this concrete:
| Sequence | Common Difference $d$ | $n$th term |
|---|---|---|
| $1, 2, 3, 4, 5, \ldots$ | $1$ | $$a_n = n$$ |
| $2, 4, 6, 8, 10, \ldots$ | $2$ | $$a_n = 2n$$ |
| $1, 3, 5, 7, 9, \ldots$ | $2$ | $$a_n = 2n - 1$$ |
| $3, 8, 13, 18, 23, \ldots$ | $5$ | $$a_n = 5n - 2$$ |
| $42, 39, 36, 33, 30, \ldots$ | $-3$ | $$a_n = 45 - 3n$$ |
Example: Find the nth term
Find the nth term of the arithmetic sequence $3, 7, 11, 15, 19, \ldots$. Then find the 150th term.
Show Solution
First, identify $a_1$ and $d$.
The first term is $a_1 = 3$. Each step increases by 4, so $d = 4$.
Plug into the formula:
$$a_n = a_1 + d(n-1) = 3 + 4(n-1) = 3 + 4n - 4 = 4n - 1$$
For the 150th term, substitute $n = 150$:
$$a_{150} = 4(150) - 1 = 600 - 1 = 599$$
Example: Octogon pattern
A pattern is built by connecting octogons using a shared side. The first figure is a simple octogon. The second figure is 2 octogons, but they share a side so there are 15 sides. If this pattern continues, how many sides are in the 10th figure? Can you come up with an expression that gives the number of sides in the 10th term?
Show Solution
Start by just collecting data. Figure 1 is a lone octagon, so 8 stides. For Figure 2, the new octagon shares exactly one side with the previous one, so instead of adding a full 8 sides, you only add 7 (the shared side is already there). The same is true every time you attach the next octagon.
| Figure | Process | Sides |
|---|---|---|
| 1 | $8$ | $8$ |
| 2 | $8 + 7$ | $15$ |
| 3 | $8 + 7 + 7$ | $22$ |
| 4 | $8 + 7 + 7 + 7$ | $29$ |
| 5 | $8 + 4(7)$ | $36$ |
| 6 | $8 + 5(7)$ | $43$ |
| $\vdots$ | $\vdots$ | $\vdots$ |
| $n$ | $8 + (n-1)(7)$ | $7n + 1$ |
This is an arithmetic sequence with first term $a_1 = 8$ and common difference $d = 7$:
$$a_n = 8 + 7(n - 1) = 7n + 1$$
For the 10th figure:
$$a_{10} = 7(10) + 1 = \mathbf{71} \text{ sides}$$
Example: Finding terms of a sequence
Find the first four terms of each sequence and determine whether it's arithmetic.
- $a_n = 4n + 3$
- $a_n = n^2 - 1$
- $a_n = \dfrac{n(n+1)}{2}$
Show Solution
Compute the first four terms for each and check whether the differences are constant.
1. $a_n = 4n + 3$
$$a_1 = 7,\quad a_2 = 11,\quad a_3 = 15,\quad a_4 = 19$$
Differences: $4, 4, 4$ which means the sequence is arithmetic with $d = 4$.
2. $a_n = n^2 - 1$
$$a_1 = 0,\quad a_2 = 3,\quad a_3 = 8,\quad a_4 = 15$$
Differences: $3, 5, 7$ which means the differences are not constant. Not arithmetic.
3. $a_n = \frac{n(n+1)}{2}$ (the triangular numbers!)
$$a_1 = 1,\quad a_2 = 3,\quad a_3 = 6,\quad a_4 = 10$$
Differences: $2, 3, 4$; not constant. Not arithmetic.
MyOpenMath: Finding terms of a sequence
Example: Theater seating
A theater has 20 seats in the first row, and each row toward the back adds 4 more seats. The last row has 144 seats. How many rows are in the theater?
Show Solution
This is an arithmetic sequence with $a_1 = 20$ and $d = 4$. We want to find $n$ such that $a_n = 144$.
$$a_n = 20 + 4(n-1) = 144$$
Expand and solve:
$$20 + 4n - 4 = 144$$ $$16 + 4n = 144$$ $$4n = 128$$ $$n = 32$$
The problem says the last row has 144 seats, and we found $n = 32$. Let's verify: $a_{32} = 20 + 4(31) = 20 + 124 = 144$.
There are 32 rows in the theater.
MyOpenMath: Arithmetic sequence practice
Fibonacci Sequences
Some sequences don't have a common difference at all. Instead, each term is built from the ones before it. In general these sequences are called recursive. Perhaps the most famous of them all is the Fibonacci Sequence.
Definition: Fibonacci Sequence
A Fibonacci sequence is a sequence where each term is the sum of the two preceding terms. The classic example starts with 1 and 1:
$$1,\ 1,\ 2,\ 3,\ 5,\ 8,\ 13,\ 21,\ 34,\ \ldots$$
In general, if $f_1$ and $f_2$ are the first two terms, then for $n \geq 3$:
$$f_n = f_{n-2} + f_{n-1}$$
The classic Fibonacci sequence starts at $f_1 = 1$, $f_2 = 1$, and builds from there:
$$1+1=2$$ $$2+3=5$$ $$3+5=8$$ $$\vdots$$
Each new term is just the sum of its two left-hand neighbors. Simple rule, surprisingly rich patterns.
Example: Find Fibonacci terms
What is the 10th Fibonacci number $f_{10}$? What is $f_{20}$?
Show Solution
Build the sequence term by term. Start with $f_1 = 1$, $f_2 = 1$, and apply $f_n = f_{n-2} + f_{n-1}$:
| $n$ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| $f_n$ | 1 | 1 | 2 | 3 | 5 | 8 | 13 | 21 | 34 | 55 |
So $f_{10} = \mathbf{55}$.
Continuing:
| $n$ | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
|---|---|---|---|---|---|---|---|---|---|---|
| $f_n$ | 89 | 144 | 233 | 377 | 610 | 987 | 1597 | 2584 | 4181 | 6765 |
So $f_{20} = \mathbf{6765}$.
MyOpenMath: Fibonacci sequence practice
Geometric Sequences
Arithmetic sequences add a fixed amount each step. Geometric sequences multiply by a fixed amount each step.
Definition: Geometric Sequence
A geometric sequence is a sequence in which each consecutive term differs from the previous by a constant common ratio $r$. If $g_1$ is the first term:
$$g_1,\ g_2,\ g_3,\ g_4,\ \ldots,\ g_n$$
then the nth term is:
$$g_n = g_1 \cdot r^{(n-1)}$$
Example: Identify the common ratio and find the nth term
Identify the common ratio for each sequence, then write the nth term.
- $1,\ 2,\ 4,\ 8,\ 16,\ 32,\ \ldots$
- $3,\ 30,\ 300,\ 3000,\ \ldots$
- $9,\ 0.9,\ 0.09,\ 0.009,\ \ldots$
- $\dfrac{1}{5},\ \dfrac{1}{25},\ \dfrac{1}{125},\ \dfrac{1}{625},\ \ldots$
Show Solution
For each, divide any term by the one before it to find $r$, then build the formula $g_n = g_1 \cdot r^{n-1}$.
1. $r = 2/1 = 2$, so $g_n = 1 \cdot 2^{n-1} = 2^{n-1}$.
2. $r = 30/3 = 10$, so $g_n = 3 \cdot 10^{n-1}$.
3. $r = 0.9/9 = 0.1 = \frac{1}{10}$, so $g_n = 9 \cdot \left(\frac{1}{10}\right)^{n-1}$.
4. $r = \frac{1/25}{1/5} = \frac{1}{5}$, so $g_n = \frac{1}{5} \cdot \left(\frac{1}{5}\right)^{n-1} = \left(\frac{1}{5}\right)^n$.
MyOpenMath: Geometric sequence practice
Other Sequences: Square and Rectangular Numbers
Not every interesting sequence fits neatly into arithmetic or geometric. We've already encountered one with the triangular numbers. Here are a few more.
Definition: Square Numbers
Square numbers are the numbers $1, 4, 9, 16, 25, \ldots$, the perfect squares. The $n$th square number is $n^2$.
When you arrange that many dots, they form a perfect square hence the name: $$1^2,\ 2^2,\ 3^2,\ 4^2,\ 5^2,\ \ldots = 1,\ 4,\ 9,\ 16,\ 25,\ \ldots$$
Definition: Rectangular Numbers
Rectangular numbers are the products numbers that arrange into rectangles where one side is exactly one longer than the other:
$$1 \cdot 2,\ 2 \cdot 3,\ 3 \cdot 4,\ 4 \cdot 5,\ \ldots = 2,\ 6,\ 12,\ 20,\ 30,\ \ldots$$
Example: Rectangular Numbers
Use a table and write down any patterns you see for rectangular numbers. Can you come up with any conjectures?
Show Solution
Let's build a table. The $n$th rectangular number is $n(n+1)$:
| $n$ | Rectangle | $$n(n+1)$$ | Triangular number $t_n$ | Relationship |
|---|---|---|---|---|
| 1 | $1 \times 2$ | 2 | 1 | $2 = 2 \times 1$ |
| 2 | $2 \times 3$ | 6 | 3 | $6 = 2 \times 3$ |
| 3 | $3 \times 4$ | 12 | 6 | $12 = 2 \times 6$ |
| 4 | $4 \times 5$ | 20 | 10 | $20 = 2 \times 10$ |
| 5 | $5 \times 6$ | 30 | 15 | $30 = 2 \times 15$ |
| 6 | $6 \times 7$ | 42 | 21 | $42 = 2 \times 21$ |
Looking down the columns, one big pattern jumps out immediately: every rectangular number is exactly twice the corresponding triangular number. That's not a coincidence. There's a beautiful geometric reason for it.
If you have $t_n$ dots arranged in a triangle, you can take another triangle of the same size, flip it upside down, and fit it perfectly next to the first one to make a rectangle. For example, $t_3 = 6$ dots form a triangle:
•
• •
• • •
Flip another copy and attach it to make a $3 \times 4$ rectangle:
• • • •
• • <- • •
• • • •
... and you've got $3 \times 4 = 12$ dots. Since we used two triangles of size $t_3 = 6$, we have $2 \times 6 = 12$. Perfect.
• • • •
• • • •
• • • •
So our conjecture is:
$$\text{rectangular}_n = 2 \cdot t_n = 2 \cdot \frac{n(n+1)}{2} = n(n+1)$$
Recognizing and working with patterns like these is a difficult skill to build. Practice seeing the beauty in mathematics.
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty—a beauty cold and austere, like that of sculpture, without appeal to any part of our weaker nature, without the gorgeous trappings of paintings or music, yet sublimely pure and capable of a stern perfection such as only the greatest art can show." - Bertrand Russell
Example: Pentagonal Numbers
Consider the pentagonal numbers. They're numbers you can arrange in a pentagon. Do any patterns stick out to you?
Show Solution
For now it is enough to simply look for patterns here. But for those curious enough to see how a formula might be derived, let's compute the first several pentagonal numbers and build a table. Looking at the figures, you can see they are: $1, 5, 12, 22, 35, 51, 70, \ldots$
| $n$ | Pentagonal $P_n$ | First difference | Second difference |
|---|---|---|---|
| 1 | 1 | — | — |
| 2 | 5 | $$5-1=4$$ | — |
| 3 | 12 | $$12-5=7$$ | $$7-4=3$$ |
| 4 | 22 | $$22-12=10$$ | $$10-7=3$$ |
| 5 | 35 | $$35-22=13$$ | $$13-10=3$$ |
| 6 | 51 | $$51-35=16$$ | $$16-13=3$$ |
| 7 | 70 | $$70-51=19$$ | $$19-16=3$$ |
This is interesting! The first differences are $4, 7, 10, 13, 16, 19, \ldots$, and those are increasing by 3 each time. Noteably, the second differences are constant at 3.
When the second differences are constant, that tells us the sequence comes from a formula involving $n^2$. Let's guess the form is $P_n = an^2 + bn + c$ for some constants $a$, $b$, and $c$.
Using our data:
- $P_1 = a(1) + b(1) + c = 1$, so $a + b + c = 1$
- $P_2 = a(4) + b(2) + c = 5$, so $4a + 2b + c = 5$
- $P_3 = a(9) + b(3) + c = 12$, so $9a + 3b + c = 12$
Subtracting the first equation from the second: $3a + b = 4$.
Subtracting the second from the third: $5a + b = 7$.
Subtracting these two new equations: $2a = 3$, so $a = \frac{3}{2}$.
Plugging back into $3a + b = 4$: $3 \cdot \frac{3}{2} + b = 4$, so $\frac{9}{2} + b = 4$, giving $b = -\frac{1}{2}$.
Plugging into $a + b + c = 1$: $\frac{3}{2} - \frac{1}{2} + c = 1$, so $1 + c = 1$, giving $c = 0$.
Therefore:
$$P_n = \frac{3}{2}n^2 - \frac{1}{2}n = \frac{n(3n-1)}{2}$$
Let's verify: $P_3 = \frac{3(3 \cdot 3 - 1)}{2} = \frac{3(8)}{2} = 12$. $P_5 = \frac{5(15-1)}{2} = \frac{5 \cdot 14}{2} = 35$.
Notice something cool: the pentagonal formula $P_n = \frac{n(3n-1)}{2}$ looks a lot like the triangular formula $t_n = \frac{n(n+1)}{2}$. They're built the same way, just with different multipliers inside. This shows how related all these figurate number sequences are. They all follow quadratic patterns, and understanding the differences between them teaches us about families of sequences.