Some quantities are not computed from where they are but from what came before: each month's balance from last month's, each term from the one in front of it. A rule of that kind generates a list rather than a curve, and it needs its own machinery.
This lesson builds that machinery for the two patterns that cover most of the useful cases, and then asks the question that makes the subject interesting: what it can mean to add infinitely many numbers and get a finite answer. It assumes the exponentials of the earlier lessons and nothing else.
Sequences, explicit and recursive
A sequence is a function whose domain is the natural numbers, written rather than , which is notation rather than a new idea. There are two ways to specify one, and the difference matters in practice.
An explicit rule gives the -th term directly, so produces and answers "what is the thousandth term" in one step. A recursive rule gives each term from its predecessors, so with produces the same list but reaches the thousandth term only by generating the nine hundred and ninety-nine before it.
Recursive definitions are how processes actually work: a bank balance, a population census, a loan. Explicit rules are what you want for computing. Much of this lesson consists of turning a recursive description into an explicit formula, which is called finding a closed form, and it converts a thousand steps of arithmetic into one.
Arithmetic sequences and the pairing trick
A sequence is arithmetic when consecutive terms differ by a constant , the common difference. Starting from , each step adds , so after steps
The count rather than is where most errors live, and the check is to set and confirm the formula returns .
Adding the terms gives an arithmetic series, and the trick for summing it is the one Gauss is said to have found as a schoolboy asked to add the numbers from to . Write the sum forwards and backwards, one under the other, and add columnwise. Each column gives the same total, , and there are columns, so twice the sum is and
For to that is . The formula reads as the number of terms times their average, which is a useful way to remember it and is exactly what the pairing shows.
Example. A sequence starts at and rises by each step. Find the twentieth term and the sum of the first twenty.
The twentieth term is . The sum is . Check the first few by hand: , and the formula on four terms gives .
Now you. A sequence starts at and rises by . Find the thirtieth term and the sum of the first thirty.
Answer
, and .
Geometric sequences and the shift trick
A sequence is geometric when consecutive terms have a constant ratio . Each step multiplies, so , and the exponential functions of the earlier lesson are the continuous version of the same idea.
Summing needs a different device, and it is worth seeing because the same move settles the infinite case. Write
Multiply the whole thing by , which shifts every term along one place: . Subtract the second from the first and everything in the middle cancels, leaving only the first term of one and the last of the other: . Factor and divide, which is legal provided :
Example. Sum the first ten terms of
Here and , so , and the tenth term itself is . Note that the last term is nearly half the whole sum, which is characteristic: in a geometric series with every term exceeds the total of all the terms before it.
Now you. Sum the first eight terms of
Answer
, , so , and the eighth term is .
Adding infinitely many numbers
Now let grow without bound in that formula. The only part that depends on is , and its behaviour was settled two lessons ago: if then repeated multiplication by drives the term toward zero. So the sum settles down to a definite value,
and if the terms do not shrink and the partial sums run away without limit. So , with , totals , and no matter how many terms are taken the running total stays below and closes on it.
This retires a loose end from the first lesson. The repeating decimal is the series , geometric with and , so its total is , exactly the answer the shifting trick gave there. The same argument applied to gives . That is not an approximation and it is not a paradox: the notation means the value the partial sums close on, and that value is .
The requirement is essential and its failure is not subtle. Zeno's paradox of Achilles and the tortoise is a geometric series with a ratio below one, so the infinitely many gaps are crossed in a finite time and there is no paradox at all. A series with has partial sums that grow forever, and writing down a formula's answer for it produces a number that means nothing.
What a loan costs
Compound interest and geometric series together price every fixed-payment loan, and the derivation is short enough to do rather than quote. Borrow at a monthly rate and repay a fixed amount at the end of each of months. Each payment must cancel the debt it is settling, and a payment made months from now is worth today, since that sum invested now would grow to by then. Setting the total present value of the payments equal to the loan gives
The bracket is geometric with first term and ratio both . Summing it and tidying gives the standard formula
Example. A mortgage of pounds at a nominal per cent a year runs for years with monthly payments. What is the payment, and what does the loan cost in total?
The monthly rate is and . Then , so the denominator is and pounds a month. Over months that is pounds, so the interest is pounds, more than sixty per cent of the sum borrowed.
Now you. Find the monthly payment and the total interest on pounds at per cent over years.
Answer
and , giving pounds a month. The total paid is pounds, so the interest is pounds.
The same formula run the other way prices saving. Paying a month into an account at per cent for thirty years contributes of capital and accumulates to , the difference being interest on interest.
When shrinking terms are not enough
It is tempting to conclude that a series converges whenever its terms shrink toward zero. It does not, and the standard counterexample is the harmonic series , whose terms clearly shrink to nothing.
Nicole Oresme showed around 1350 that it grows without limit, by an argument that still works. Group the terms as , then through , then through , doubling the block each time. Every term in a block is at least as large as the last one in it, and there are enough of them that each block totals at least . Infinitely many blocks each contributing at least a half cannot add to anything finite.
The growth is extraordinarily slow, which is why it fools people. The first thousand terms total and the first million total ; passing takes terms. Slow growth is still growth, and the series has no sum. Deciding which series converge, in general, is one of the main tasks of calculus, and this lesson has settled only the geometric case.
Sequences that define themselves
Some recursive sequences have no simple closed form and are still worth studying. Fibonacci's, from the Liber Abaci of 1202, is with , giving
Its terms grow, and the ratio of consecutive terms settles: , against the golden ratio . That is not a coincidence and it can be proved, as can a closed form for involving powers of the golden ratio, though both need tools beyond this lesson.
What the computation establishes is weaker than it looks, and this is the point on which the course now turns. Twenty terms have been checked. Nothing checked so far rules out the ratio drifting away at the two hundredth term, or the arithmetic sum formula failing at some enormous , or a pattern that holds for every case anyone has patience to test and fails after that.
Such failures are not hypothetical. The polynomial , noted by Euler, produces a prime for every from to and then fails at , where it gives . Forty successes is a great deal of evidence and no proof at all.
So the closed forms of this lesson rest on arguments, the pairing and the shift, that were performed on a written-out list with dots in the middle. Those arguments are convincing, and being convincing is not the standard. What the standard is, and how to meet it for a claim about every natural number at once, is the last lesson.