Investigate!
A standard
chessboard contains 64 squares. Actually, this is just the number of unit squares. How many squares of all sizes are there on a chessboard? Start with smaller boards:
etc. Find a formula for the total number of squares in an
board.
So far we have seen methods for finding the closed formulas for arithmetic and geometric sequences. Since we know how to compute the sum of the first
terms of arithmetic and geometric sequences, we can compute the closed formulas for sequences which have an arithmetic (or geometric) sequence of differences between terms. But what if we consider a sequence which is the sum of the first
terms of a sequence which is itself the sum of an arithmetic sequence?
Before we get too carried away, let’s consider an example: How many squares (of all sizes) are there on a chessboard? A chessboard consists of squares, but we also want to consider squares of longer side length. Even though we are only considering an board, there is already a lot to count. So instead, let us build a sequence: the first term will be the number of squares on a board, the second term will be the number of squares on a board, and so on. After a little thought, we arrive at the sequence
This sequence is not arithmetic (or geometric for that matter), but perhaps it’s sequence of differences is. For differences we get
Not a huge surprise: one way to count the number of squares in a chessboard is to notice that there are squares with side length 1, 9 with side length 2, 4 with side length 3 and 1 with side length 4. So the original sequence is just the sum of squares. Now this sequence of differences is not arithmetic since it’s sequence of differences (the differences of the differences of the original sequence) is not constant. In fact, this sequence of second differences is
which is an arithmetic sequence (with constant difference 2). Notice that our original sequence had third differences (that is, differences of differences of differences of the original) constant. We will call such a sequence -constant. The sequence has second differences constant, so it will be a -constant sequence. In general, we will say a sequence is a -constant sequence if the th differences are constant.
Example 2.3.1.
Which of the following sequences are -constant for some value of
-
-
-
Solution.
-
This is the sequence from
Example 2.2.6, in which we found a closed formula by recognizing the sequence as the sequence of partial sums of an arithmetic sequence. Indeed, the sequence of first differences is
which itself has differences
Thus
is a
-constant sequence.
-
These are the perfect cubes. The sequence of first differences is the sequence of second differences is the sequence of third differences is constant: Thus the perfect cubes are a -constant sequence.
-
If we take first differences we get Wait, what? That’s the sequence we started with. So taking second differences will give us the same sequence again. No matter how many times we repeat this we will always have the same sequence, which in particular means no finite number of differences will be constant. Thus this sequence is not -constant for any
The
-constant sequences are themselves constant, so a closed formula for them is easy to compute (it’s just the constant). The
-constant sequences are arithmetic and we have a method for finding closed formulas for them as well. Every
-constant sequence is the sum of an arithmetic sequence so we can find formulas for these as well. But notice that the format of the closed formula for a
-constant sequence is always quadratic. For example, the square numbers are
-constant with closed formula
The triangular numbers (also
-constant) have closed formula
which when multiplied out gives you an
term as well. It appears that every time we increase the complexity of the sequence, that is, increase the number of differences before we get constants, we also increase the degree of the polynomial used for the closed formula. We go from constant to linear to quadratic. The sequence of differences between terms tells us something about the rate of growth of the sequence. If a sequence is growing at a constant rate, then the formula for the sequence will be linear. If the sequence is growing at a rate which itself is growing at a constant rate, then the formula is quadratic. You have seen this elsewhere: if a function has a constant second derivative (rate of change) then the function must be quadratic.
Finite Differences.
The closed formula for a sequence will be a degree
polynomial if and only if the sequence is
-constant (i.e., the
th sequence of differences is constant).
This tells us that the sequence of numbers of squares on a chessboard,
which we saw to be
-constant, will have a cubic (degree 3 polynomial) for its closed formula.
Now once we know what format the closed formula for a sequence will take, it is much easier to actually find the closed formula. In the case that the closed formula is a degree
polynomial, we just need
data points to “fit” the polynomial to the data.
Example 2.3.2.
Find a formula for the sequence
Assume
Solution.
First, check to see if the formula has constant differences at some level. The sequence of first differences is which is arithmetic, so the sequence of second differences is constant. The sequence is -constant, so the formula for will be a degree 2 polynomial. That is, we know that for some constants and
Now to find and First, it would be nice to know what is, since plugging in simplifies the above formula greatly. In this case, (work backwards from the sequence of constant differences). Thus
so Now plug in and We get
At this point we have two (linear) equations and two unknowns, so we can solve the system for
and
(using substitution or elimination or even matrices). We find
and
so
Example 2.3.3.
Find a closed formula for the number of squares on an
chessboard.
Solution.
We have seen that the sequence is -constant, so we are looking for a degree 3 polynomial. That is,
We can find if we know what is. Working backwards from the third differences, we find (unsurprisingly, since there are no squares on a chessboard). Thus Now plug in and
If we solve this system of equations we get
and
Therefore the number of squares on an
chessboard is
Note: Since the squares-on-a-chessboard problem is really asking for the sum of squares, we now have a nice formula for
Not all sequences will have polynomials as their closed formula. We can use the theory of finite differences to identify these.
Example 2.3.4.
Determine whether the following sequences can be described by a polynomial, and if so, of what degree.
-
-
-
Solution.
-
As we saw in
Example 2.3.1, this sequence is not
-constant for any
Therefore the closed formula for the sequence is not a polynomial. In fact, we know the closed formula is
which grows faster than any polynomial (so is not a polynomial).
-
The sequence of first differences is
The second differences are:
Third difference:
Fourth differences:
As far as we can tell, this sequence of differences is constant so the sequence is
-constant and as such the closed formula is a degree 4 polynomial.
-
This is the Fibonacci sequence. The sequence of first differences is
the second differences are
We notice that after the first few terms, we get the original sequence back. So there will never be constant differences, so the closed formula for the Fibonacci sequence is not a polynomial.