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 5.1.1
(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 .
A sequence assigns a value to each index. Changing the order of the same values therefore changes the function, and a formula for must specify a value for every positive integer .
Worked example 5.1.2
(Reading a general term)
If , then
If , then
Both are sequences because each positive integer determines exactly one real number.
Quick check
(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 5.1.3
(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 5.1.4
(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 5.1.5
(A sequence made from repeated differentiation)
Let and define , where means the -th derivative. The derivatives cycle:
So
and the same four-term pattern repeats. One compact general term is
The index now records how many derivatives to take before evaluating at . This rule determines a sequence even before a formula for its values has been found.
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 5.1.6
(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.
To remove the additive constant, try a shift . Substitution gives , so leaves a purely multiplicative rule. With ,
Since , the transformed sequence is geometric:
Therefore
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 5.1.7
(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. This is the inductive step for agreement at every index. Requiring is essential; the next step must remain defined after every previous step.
Counterexample mode
A rule that leaves its own domain
Consider
The function is defined on , and the starting value lies in . Nevertheless , and is undefined, so the rule produces no third term and defines no sequence on . The recursion theorem does not apply, because does not map into : the output is not an admissible input.
Shrinking the set does not rescue this example. Any set that contains and is mapped into itself by must contain , where is not defined. The hypothesis is therefore not a formality; it is precisely the guarantee that every output can be used as the next input.
Worked example 5.1.8
(The set and rule behind a recurrence)
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 . Apply the theorem with , , 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.
A geometric term is a useful candidate for this recurrence because increasing its index simply multiplies it by a constant. For , substituting into the rule gives , or . The two roots of this quadratic supply geometric sequences satisfying the same rule; a linear combination can then be chosen to match the two starting values.
Theorem 5.1.9
(Binet form of Fibonacci numbers)
Let
Then for every positive integer ,
Proof. 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 .
Concept lensStructural
The roots as stretching directions of the pair map
The pair map is linear, and equals exactly when . So only stretches the pairs and . Write as a combination of these two pairs; applying repeatedly multiplies the pieces by and , and the first coordinate gives Binet's formula.
A rule needs two initial values
A recurrence specifies how later terms are obtained from earlier ones. We work with indices and the homogeneous constant-coefficient rule
where and the initial values are real unless otherwise stated. The two initial values are part of the problem. Once they are fixed, the rule determines , then , and so on.
Uniqueness follows by induction. If two sequences satisfy the same rule and agree at indices zero and one, their difference has its first two terms zero. Whenever two consecutive difference terms vanish, the recurrence makes the next one zero. Hence every term vanishes. This argument works even when a characteristic root is zero; it does not divide by a coefficient or by a term of the sequence. It also tells us how to verify a proposed closed form: check the recurrence and both initial values, then invoke uniqueness.
Why a quadratic appears
Try a geometric sequence . For nonzero , substituting and dividing by gives the characteristic equation
This division is a derivation for nonzero , not permission to divide by zero later. Nevertheless zero can be a root, precisely when . We will handle that case using an explicitly defined sequence. The polynomial equation is still the right algebraic condition: for a nonzero root the geometric sequence satisfies the recurrence, and linear combinations of solutions also satisfy it because the rule is linear and homogeneous.
Distinct roots, including one zero
Suppose the characteristic polynomial has distinct roots in . Define for every root, including , and for use the usual power. Thus the zero-root sequence is , not a division by zero. If zero is a root then , and direct substitution confirms that this sequence satisfies the recurrence at every index, including zero.
Each root sequence satisfies the rule, so their linear combination does too. The initial conditions require
Because , these equations have a unique solution:
The denominators here are differences of distinct roots, not powers of a root, and remain nonzero when one root is zero. The resulting sequence satisfies the recurrence and both initial values; uniqueness proves it is the only solution. The convention at exponent zero is essential for the first equation. It does not assert a general analytic value for an indeterminate expression: it defines this discrete sequence at its initial index.
When the coefficients and initial values are real but the roots are nonreal, they occur as a conjugate pair. The two constants obtained from the initial equations are conjugates as well, so their sum at each integer index is real. One may rewrite the answer using sines and cosines, but that is an equivalent representation, not an additional solution. If the input coefficients or initial values are complex, the same distinct-root argument works over without a claim that the terms are real.
A repeated nonzero root
Suppose both characteristic roots equal . Comparing coefficients gives and . Define ; this division is legitimate because is nonzero. Substituting into the recurrence and cancelling the nonzero power gives
Thus the first differences of are constant. By induction , and consequently . The first two values determine and . Conversely, substituting this form verifies the rule. A repeated root supplies a second independent solution through the factor ; using only a constant multiple of would generally be unable to match two arbitrary initial values.
For real coefficients, a repeated root is real. If is negative, the powers alternate in sign, but the sign of the full solution also depends on : this factor may vanish or change sign, and the zero sequence is possible. A closed form should be checked at indices zero and one before it is used at a later index. In particular, replacing with without changing the initial constants alters the sequence.
The repeated zero root
The remaining repeated-root case is . Then the characteristic polynomial is , so and the rule simply says . The initial terms remain arbitrary, while every term from index two onward is zero. No expression involving division by a power of zero is allowed. If desired, write , where is one when the indices are equal and zero otherwise. This formula is valid at every nonnegative index and makes the exceptional behavior explicit.
Arithmetic sequences and sums
Definition 5.1.10
(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 5.1.11
(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.
Quick check
(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 5.1.12
(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 a recurrence and its explicit formula
Choose a sequence and compare the recurrence with its explicit formula. Display at most ten terms; the affine balance starts at month zero.
,
Explicit formula| n | Partial sum | |
|---|---|---|
| 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 |
Holds: The explicit formula satisfies the recurrence
Successive differences stay constant. The sum pairs the first and last terms.
NoticeDisplayed decimals are rounded only for reading. The affine case shows the remaining balance, not a partial sum, and does not round each intermediate month. Arithmetic and geometric indexing starts at one.
Quick check
(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
Products of arithmetic and geometric terms can also be summed by shifting and subtracting. 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 .
Quick check
(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
A fixed monthly payment gives a recurrence for the outstanding balance. 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.