What a sequence really is
A sequence is not merely a row of numbers written with commas. Formally, it is a function whose input is a positive integer and whose output is a real number. The input tells us the position of the term. The output is the value sitting at that position.
Definition
Sequence of real numbers
A sequence of real numbers is a function
Instead of writing , we usually write , and we denote the whole sequence by . Here the starting index is , and all general-term formulas in this definition apply for integers .
This definition is worth taking seriously. It explains why the same values in a different order form a different sequence, and why a formula for must say what happens for every positive integer .
Worked example
Reading a general term
If , then
If , then
Both are sequences because each positive integer determines exactly one real number.
Checkpoint
A sequence is formally a function from which set to which set in this chapter?
Use the chapter definition.
Solution · Answer
It is a function , so each positive integer index returns one real-number term.
Finding general terms from patterns
A finite list suggests a pattern, but the general term must describe the -th term, not just the first few terms. Without a rule, a finite initial list never uniquely determines an infinite sequence: a later term can be changed while every listed term stays the same. In pattern exercises, the intended continuation must therefore be stated as part of the proposed rule.
Worked example
Alternating zeros and ones
The sequence
is when is odd and when is even. A compact formula is
When is odd, is even and the numerator is . When is even, is odd and the numerator is .
Worked example
Products of even and odd factors
The product
has the -th factor . Therefore
Similarly,
because is the product of all factors from to , and dividing by the even part leaves only the odd part.
Worked example
A sequence made from repeated differentiation
The chapter also uses to show that sequences do not have to come from ordinary lists first. Define , where means the -th derivative. The derivatives cycle:
So
and the same four-term pattern repeats. One compact general term is
This example is important because it separates the idea of a sequence from the idea of a simple algebraic pattern. The sequence is still a function of the index ; its values are produced by a calculus operation before evaluating at .
Common mistake
A pattern is not a definition until the indexing is fixed
With indexing starting at , the formula gives , whereas gives . These are different sequences, not interchangeable descriptions of the same list. Substituting the first index is a quick way to check whether a proposed formula has shifted the sequence.
Recursive definitions
Some sequences are easier to define by saying how to get the next term from earlier terms. An explicit definition computes a term directly from its index; a recursive definition specifies how known terms determine later ones. A first-order rule needs a starting value, and a rule involving the previous two terms generally needs two starting values. The rule alone does not choose those values. A recurrence with sufficient initial data can define a sequence completely even when no convenient closed formula is available.
Definition
Recursive sequence
A recursive sequence is a sequence whose terms are defined using one or more preceding terms, together with enough initial values to start the process.
For example,
gives
The recurrence determines the next term only after the earlier term is known.
For this particular recurrence, we can also find a closed formula. Add to both sides and set . Then
Since , the transformed sequence is geometric:
Therefore
The lesson is not that every recurrence becomes geometric. The useful habit is to look for a change of variables that removes the constant term when the recurrence is affine.
Concept lensAlgorithmic
One sequence, two ways to obtain a term
The explicit formula takes a positive integer as its input. To obtain , substitute and get directly. The recursive description instead starts from and repeatedly applies , generating . It describes how to produce the next value from the current value; the initial value is part of that description.
These are two descriptions of the same sequence, not two different kinds of number. The derivation above links the step-by-step process to the explicit formula for every integer . Agreement at the first four terms alone would not establish that link. Use the explicit view when asking for a term at a specified index, and the recursive view when following successive changes. The existence of a generative rule does not by itself supply a closed formula.
Theorem
Recursion theorem
Let be a set, let , and let be a function. Then there is a unique function such that
for every .
The theorem gives the formal reason why a first term plus a rule such as really defines a sequence. The rule never leaves , because maps back into , and uniqueness says that there is no second sequence satisfying the same starting value and same next-term rule. Existence means the repeated construction supplies a value at every positive integer index. Uniqueness can be understood step by step: two proposed sequences agree at the first term, and whenever they agree at one term, applying the same function forces agreement at the next. Requiring is essential; the next step must remain defined after every previous step.
Worked example
Turning a recurrence into theorem data
For
take , , and . The recursion theorem says that there is a unique real sequence satisfying this rule. The first terms are
There may be no simple closed formula, but the sequence is still completely defined.
Fibonacci as a first-order recursion on pairs
The Fibonacci sequence is defined by two starting values and a rule using the previous two terms:
To fit the recursion theorem, package two consecutive values as one ordered pair:
Then the next pair is obtained from the function
So a two-term recurrence can be viewed as a one-step recurrence on the set . The full theorem data are , , and . The function always returns a real pair. Its second coordinate stores the information needed for the following step; starting from gives and then . Thus uniqueness applies to the pair sequence and consequently to the Fibonacci terms.
Theorem
Binet form of Fibonacci numbers
Let
Then for every positive integer ,
This formula is usually proved by checking that the right-hand side has the same first two values and satisfies the same recurrence. The essential identities are and .
Here is the verification in a form that is useful for similar recurrence questions. Define
The denominator is , so this defines a real number for every positive integer index. Checking the recurrence alone would not identify Fibonacci: the two initial values must also be checked.
First,
Next, because each of and satisfies , we have
Subtracting the second identity from the first and dividing by gives
Thus has the same first two values and the same recursive rule as the Fibonacci sequence. By uniqueness of the recursively defined sequence, must equal for every positive integer .
Arithmetic sequences and sums
Definition
Arithmetic sequence
A sequence is arithmetic if there is a constant such that
for every . The number is the common difference.
From the first term to the -th term there are increments, each equal to . Adding the successive differences gives . Thus, if , the general term is
The sum of the first terms is
To justify pairing for both odd and even numbers of terms, write the sum forwards and backwards and add the two copies:
Every column has sum , because its two indices add to . For even , the original terms form distinct first-last pairs. For odd , the middle term is half of ; in the two-copy argument it is added to itself. There are always exactly columns, so dividing by two is valid in either case.
Worked example
Recover an arithmetic sequence from a sum
Suppose the common difference is and the sum of the first terms is . Then
Solving gives .
If the sum of the first terms is , then
This simplifies to
The positive integer solution is ; the other root is rejected because a number of terms cannot be negative.
Checkpoint
What is the sum of the first terms of an arithmetic sequence with first term and common difference ?
Use first-last pairing.
Solution · Answer
Geometric sequences and sums
Definition
Geometric sequence
A sequence of nonzero numbers is geometric if there is a nonzero constant such that
for every . The number is the common ratio.
If , then
For , the finite geometric sum is
Let . Multiplication by shifts every exponent up by one, giving . On subtraction, all powers from through cancel. The first term of and the last term of remain, so
If , every term is , so the sum is ; division by is not allowed. These are finite sums for positive integers , and the cancellation requires no assumption about infinite convergence.
Read and try
Compare recursive and explicit sequence descriptions
Arithmetic, geometric, and affine recurrences determine each term from its predecessor and an initial value. Expanding the recurrence identifies an explicit formula and, for arithmetic and geometric terms, a finite-sum formula.
Key relation
a_1=5.5, a_{n+1}=a_n+1.5
Result
a_n=5.5+1.5(n-1)
Successive differences stay constant. The sum pairs the first and last terms.
Show between 1 and 12 displayed terms or months.
| n | a_n | Partial sum s_n |
|---|---|---|
| 1 | 5.5 | 5.5 |
| 2 | 7.0 | 12.5 |
| 3 | 8.5 | 21.0 |
| 4 | 10.0 | 31.0 |
| 5 | 11.5 | 42.5 |
| 6 | 13.0 | 55.5 |
Checkpoint
Why does the geometric-sum formula need a separate case when ?
Look at the denominator.
Solution · Answer
The formula divides by , which is zero when . In that case every term is , so the sum is .
Arithmetic-geometric sums
A useful final exercise mixes an arithmetic factor with a geometric factor. Let
where and . For an integer , define
Use the same subtraction method, now tracking the changing coefficients. Separate the endpoints before aligning the interior powers:
For each interior power , the coefficient difference is . The constant term occurs only in the first line, while the power occurs only in the second. Therefore
To express the middle sum using the same endpoint as the final formula, start with and remove its last term:
Substitution contributes an extra . Combining it with the previous boundary term changes into . Dividing by gives
For , the interior sums are empty and have value zero: the original sum is just . The two fractions above also reduce to , because the extra terms involving cancel. Setting instead recovers , the ordinary geometric sum. These checks retain the first and last terms and help detect an indexing error.
Common mistake
Watch the shifted boundary term
The boundary term is the subtle point. The last term in is , but after combining with the finite geometric sum the equivalent final formula can be written with .
Checkpoint
In the arithmetic-geometric sum, why is the method useful?
Track what happens to the coefficient after shifting by one power of .
Solution · Answer
Most terms line up with the same power of , and their coefficients differ by exactly . That leaves two boundary terms and a geometric sum , which can be simplified by the ordinary geometric-sum formula.
An applied recurrence: the mortgage formula
The chapter's mortgage example is a useful applied recurrence. Let:
- be the initial principal;
- be the fixed nominal annual interest rate written as a decimal;
- be a positive integer number of monthly payments;
- be the fixed payment made at the end of each month;
- be the outstanding balance immediately after payment .
The model uses monthly rate : interest is applied to the previous balance first, then the payment is subtracted. For example, an annual rate of means , not . Month zero records the principal before any interest or payment. For integer months ,
Write . The first two steps show the timing explicitly:
The first payment has reduced the balance for one extra month, while the second payment has just been made. Repeated substitution gives
For , we have , so the geometric quotient is defined and gives
To finish the loan after months, set , so
The weighted payments form a finite geometric sum: payment contributes to the reduction of the balance after payment . This explains why the newest payment has weight one and the earliest has weight . The resulting formula belongs to this fixed-rate, end-of-month payment model.
When , use the recurrence directly instead of the quotient: , , and gives . No interest is charged in this case; the principal is divided equally among the payments.
Exercises
- Let be the sequence and let . Find formulas for both sequences and verify . Explain which formula changes when the first index is shifted.
- Prove by induction that . Compare the ratio of consecutive proposed values with the factor appended to the product.
- Let and . Find and .
- Let and . Find and the sum of the first terms.
- Let , where and . Verify that and .
- Let and . Write using a finite geometric sum.
- Let and . Write using the arithmetic-geometric formula.
Guided solutions
Solution · Model solution 1
Odd indices give , and even indices give , so . Shifting one index gives . The alternating sign changes; the two complementary sequences therefore sum to at every index.
Solution · Model solution 2
At , both sides equal . If the identity holds at , append the factor . The proposed right-hand side changes by exactly the same factor:
Thus the induction step holds. This proves the formula by its recurrence rather than repeating the separation into even and odd factors.
Solution · Model solution 3
This is arithmetic with first term and common difference , hence and .
Solution · Model solution 4
This is geometric with first term and ratio , so and .
Solution · Model solution 5
Since and , multiplying by or gives and . Subtract the two identities and divide by to obtain . Also and . Therefore satisfies the same initial values and recurrence as Fibonacci.
Solution · Model solution 6
Repeated substitution gives , so .
Solution · Model solution 7
Here , , , and . Therefore
This can be simplified further, but the important point is the substitution into the general finite-sum formula.