Unfinished learning resource · Units 1–8 available · Whole-course validation unfinished

Unit 3. Recurrences and finite recursive constructions

Unfinished learning resource · TMP-SCI-074. Units 1–8 are available. All eight planned units have manuscripts; whole-course validation remains unfinished. This is provisional noncredit self-study, not a completed semester, registered course, degree credit or accreditation. Workload and rubrics are unpiloted; specialist, learner and accessibility validation remain outstanding. All examples are fictional finite mathematical models. No account, purchase, private data, installation or programming is required.

Study route

A recurrence tells us how later values depend on earlier ones. It does not automatically explain what is counted, choose its own initial values or prove a guessed formula. This unit separates four jobs: define the objects, derive a recurrence, calculate or solve it, and justify that the answer matches the original model.

Preparation: Units 1–2's disjoint cases, products, binomial coefficients, bijections and precise constraints; arithmetic, powers and elementary algebra; ordinary and strong induction from the delivered Mathematical Reasoning and Proof Unit 5. That prerequisite already teaches indexed sequences and earlier-term recurrences. Here we apply those ideas to new finite constructions rather than treating induction as an untaught principle. No calculus, infinite-series theorem, generating functions or graph theory is assumed.

Proposed weeks-5–6 allocation: 18 hours, comprising five teaching/guided, four independent practice/correction, three homework, two quiz/delayed work and four project. These are unpiloted design estimates, not contact hours or credits. Attempt tasks before opening the explained answers. Keep first attempts, corrections and a changed-data retry. Written, typed or spoken-plus-transcript reasoning is acceptable. Every diagram is completely described in text.

Outcomes

Readiness

R1. Let u₀=3 and u_(n+1)=2u_n+1 for integers n≥0. Compute u₁,u₂,u₃. Explain the difference between the index n+1 and adding one to the value u_n.

R2. Suppose f₀=f₁=1 and f_n=f_(n−1)+f_(n−2) for n≥2. What initial statements must a proof of a proposed formula check? Why cannot the recurrence itself be applied at n=1 as written?

R3. List all three-bit strings without adjacent 1s. Partition them by whether they end in 0 or 1. Explain how this differs from simply appending either bit to every valid shorter string.

R4. List the two-element subsets of a four-element set. How many length-zero words exist? If a red/blue coloured object is present, what happens to the parity of the number of blue objects when exactly one colour is flipped?

Session A. A recursive rule needs a domain and a model

A1. Initial values are part of the definition

A sequence assigns a value a_n to each index in its stated domain. In a forward recurrence, a later value is determined by already defined values and operations that are valid there. For example, a₀=2 and a_(n+1)=3a_n+4 for n≥0 give 2,10,34,106,… . Without a₀ there are many sequences satisfying the same step rule. Without the range n≥0, it is unclear which transitions the definition includes.

For x_n=p x_(n−1)+q x_(n−2), n≥2, specify x₀ and x₁. The recurrence then determines x₂, x₃ and every later value. To see uniqueness, compare two sequences with those same initial values. They agree at indices 0 and 1. If they agree at indices n−1 and n−2, applying the same rule makes them agree at n. Induction completes the argument. This is a proof of uniqueness given the data, not a formula for the values.

Some displayed rules need repair before they define anything. A denominator that becomes zero blocks the calculation. A reference to an undefined negative index requires either additional data or a later starting index. A rule using a future value is not a forward computation as written, although algebra may sometimes rearrange it into one. Do not declare every such equation impossible, and do not assume rearrangement is always valid.

G1. Let u₀=2, u₁=5 and u_n=u_(n−1)+2u_(n−2) for n≥2. Compute through u₄. Change only u₁ to 3 and recompute through u₃. Explain what this demonstrates about specifying only u₀.

A2. Remove a last piece and prove the inverse

Let F_n be the set of length-n binary strings with no adjacent 1s, and f_n=|F_n|. The empty string is one valid object, so f₀=1. Both one-bit strings are valid, so f₁=2. For n≥2, partition by the final bit.

The two target families are disjoint and exhaustive, giving f_n=f_(n−1)+f_(n−2), n≥2. Starting from the actual model's initial values yields 1,2,3,5,8,13,21 for n=0,…,6. This is a different sequence from R2, even though the step rule is the same.

Diagram A, text equivalent. The valid length-n strings split into two boxes. The first contains strings ending in 0 and has a reversible arrow to valid length n−1 after deleting 0. The second contains strings ending in 01 and has a reversible arrow to valid length n−2 after deleting 01. The boxes do not overlap because their last bits differ. At n=1 the second deletion would require an undefined negative length, so initial values handle that case separately.

Counting the smaller objects is not enough: the extension must produce each intended larger object exactly once. A recurrence can be arithmetically consistent but model the wrong objects if a case is missing, duplicated or allowed to extend illegally.

G2. Derive f₂ through f₆ from the binary-string model. Explain why 2f_(n−1) is not the valid next count in general, and give a specific illegal extension at length two. Prove the two deletion maps above really have the stated inverses.

Session B. First-order affine recurrences

B1. Unroll finitely before guessing

Consider a₀=c and a_(n+1)=r a_n+s, for integers n≥0 and fixed real numbers c,r,s. Successive substitution gives a₁=rc+s and a₂=r²c+rs+s. For n≥1 the pattern is

a_n = r^n c + s(1+r+…+r^(n−1)).

This is a finite sum, not an infinite series. A proof checks n=1 and then multiplies the existing expression by r and adds s, producing the next finite sum. The initial value n=0 is checked separately.

If r=1, each step adds s, so a_n=c+ns. If r=0, the first step gives s and every later term is s: a₀=c, a_n=s for n≥1. These cases are worth stating directly; no division by r−1 or unexplained 0⁰ is necessary.

For r≠0,1, multiply S=1+r+…+r^(n−1) by r and subtract S. Intermediate powers cancel, leaving (r−1)S=r^n−1. Therefore

a_n = r^n c + s(r^n−1)/(r−1),  n≥0,

where the n=0 value is c and the displayed fraction is zero. This form is valid because the denominator is nonzero. Nonnegative integers are not automatic: arbitrary real recurrence parameters need not describe counts.

B2. A fixed value makes the same idea easier to see

For r≠1, a constant solution L satisfies L=rL+s, so L=s/(1−r). Subtract it from the recurrence:

a_(n+1)−L = r(a_n−L).

For nonzero r this gives a_n=L+(c−L)r^n, with the n=0 value checked. The r=0 case is handled directly as above. This is algebra, not a claim that the sequence approaches L: for example |r|>1 can magnify deviations instead.

Worked example: a₀=2 and a_(n+1)=3a_n+4 have L=−2. Thus a_n=−2+4·3^n. Check a₀=2. If the formula holds at k, then 3(4·3^k−2)+4=4·3^(k+1)−2, proving the next term. The formula gives a₃=106, matching the earlier computation, but the induction step, not that agreement alone, proves all indices.

Diagram B, text equivalent. A value a_n is represented as the fixed value −2 plus a deviation d_n=a_n+2. Each step triples the deviation: d_(n+1)=3d_n. The starting deviation is four, giving d_n=4·3^n and a_n=4·3^n−2. The diagram describes an algebraic change of variable, not a measured physical growth process.

G3. Solve a₀=1, a_(n+1)=2a_n+3. Give a formula, calculate a₄ and prove the formula by induction, explicitly showing the initial value and step.

G4. Handle x₀=5, x_(n+1)=7 and y₀=5, y_(n+1)=y_n−2 separately. List terms through index four. Is the second sequence a nonnegative population count for every n≥0? Distinguish mathematical definition from an interpretation's valid range.

Session C. Selected second-order recurrences

C1. Find candidates, fit initial values, prove uniqueness

Consider x_n=p x_(n−1)+q x_(n−2), n≥2, with real constants p,q and specified x₀,x₁. A candidate λ^n with nonzero real λ satisfies the recurrence when

λ²=pλ+q.

Indeed multiply this identity by λ^(n−2). No inference about initial values has yet been made. If this quadratic has two distinct nonzero real roots λ,μ, then Aλ^n+Bμ^n also satisfies the recurrence: distribute p and q through the sum. Choose A,B so that

A+B=x₀,     Aλ+Bμ=x₁.

Since λ≠μ, these equations determine one pair: A=(x₁−μx₀)/(λ−μ), B=x₀−A. The fitted expression has the correct two bases and step rule, so the uniqueness proof in A1 shows that it is the sequence. This proves the method under the stated conditions; a list of roots alone is not the answer.

Worked example: x₀=2, x₁=3 and x_n=3x_(n−1)−2x_(n−2). The equation λ²−3λ+2=(λ−1)(λ−2)=0 has roots 1 and 2. Fitting gives x_n=1+2^n. Both bases match, and

3(1+2^(n−1))−2(1+2^(n−2))=1+2^n.

Thus the closed formula and recurrence define the same sequence, 2,3,5,9,17,… . A second-order induction can use two bases followed by the step from the preceding two statements. Strong induction is available, but does not remove the need to check short indices.

G5. Complete the worked example's initial-value calculation and a two-base induction proof. Compute x₅ independently from the recurrence and formula.

C2. Know where that theorem stops

If the characteristic roots coincide, the two candidates λ^n and μ^n above are identical, so A and B do not give two independent choices. If a root is zero, the proof's nonzero-root condition has not been met. Nonreal roots also lie outside this unit's real-root theorem. These cases need another argument, not silent substitution into a denominator λ−μ that vanishes.

A useful special repeated-root case can be solved without a new general theorem. If z_n=2z_(n−1)−z_(n−2), define differences d_n=z_n−z_(n−1) for n≥1. For n≥2, d_n=z_(n−1)−z_(n−2)=d_(n−1), so all differences equal d₁. Consequently z_n=z₀+n(z₁−z₀). This solves this specific recurrence, not every repeated-root problem.

G6. Use the difference argument when z₀=0,z₁=1. Verify the resulting formula directly. Explain why the duplicated candidate A·1^n+B·1^n cannot meet these two initial values.

Session D. Keep the state that extension needs

D1. A total may hide the relevant final feature

Let t_n count length-n words over {A,B,C} with no adjacent As. Appending B or C is always legal; appending A depends on the final letter. For n≥1 let A_n count valid words ending in A and N_n count those ending in B or C. Initially A₁=1 and N₁=2. For n≥2,

A_n=N_(n−1),     N_n=2(A_(n−1)+N_(n−1)),     t_n=A_n+N_n.

The first rule appends A only to a non-A ending; the second has two choices of final non-A letter after any valid prefix. The empty word is valid, giving t₀=1, but it has no last letter, so do not classify it as A-ending or N-ending without an explicit new convention. Derive the scalar recurrence carefully: for n≥2, N_(n−1)=2t_(n−2), including n=2 because N₁=2t₀. Therefore t_n=2t_(n−1)+2t_(n−2), with t₀=1,t₁=3.

Diagram C, text equivalent. At a positive length, one state contains A-ending words and the other B/C-ending words. To append A, use only the B/C-ending state, with one new word per prefix. To append a non-A letter, use either state, with two new words per prefix. The empty starting object is kept outside those ending states and handled by the initial data. This is a bookkeeping diagram; no graph-theory vocabulary is required.

G7. Compute (A_n,N_n,t_n) for n=1,2,3,4. Check the same totals with the scalar recurrence. Explain why “append any of three letters” overcounts at n=2.

D2. A finite check can find an error, not certify all indices

Compare model, recurrence and formula on short cases, especially empty objects and the first index using each rule. A direct enumeration using an independently described finite universe is stronger than running the same recurrence twice. It can reveal missing cases or wrong initial values. It still checks only the enumerated cases; the general model and proof must stand separately.

To see why a long matching prefix is not a proof, compare h_n=2^n with g_n=2^n+n(n−1)(n−2)(n−3)(n−4)(n−5). They agree for n=0,…,5 because one factor is zero. At n=6, g₆=64+720=784, not 64. The altered expression also fails the recurrence h_n=2h_(n−1) at that first changed index.

G8. Verify the two expressions' agreement through index five and disagreement at six. Identify the exact failed recurrence equality for g. Explain why this is a counterexample to inference from a finite prefix, not a counterexample to recurrence uniqueness with all required hypotheses.

Independent practice

I1. Let v₁=4 and v_(n+1)=v_n+3 for n≥1. Derive and prove a formula on the correct domain. Diagnose the candidate 3n+4 before doing a long calculation.

I2. Solve u₀=3, u_(n+1)=2u_n−1. Calculate through u₄ and prove the formula using a fixed value or an explicit induction.

I3. Solve w₀=2, w_(n+1)=−2w_n+3. Calculate w₁ and w₄. Explain why a valid real-valued sequence need not count nonnegative objects.

I4. Count length-n binary strings avoiding three consecutive 1s. Supply initial values at 0,1,2 and a recurrence for n≥3 using the final run of 1s. Prove the cases reversible and calculate the count at n=6.

I5. Solve x₀=2,x₁=3 and x_n=3x_(n−1)+4x_(n−2), n≥2, using the selected distinct-root method. Verify both bases and the recurrence; compute x₄.

I6. Let z₀=1,z₁=3 and z_n=2z_(n−1)−z_(n−2), n≥2. Solve using first differences. Explain why the distinct-root theorem is not applicable as stated.

I7. For the ternary no-AA model, explain the exact overcount in 3t_(n−1) at length n=3. Use the ending states to calculate t₅, and explain why the recurrence is a counting statement rather than a probability model.

I8. Consider y₀=1, y_n=y_(n−1)/(n−2) for n≥1. Locate the first failure of this proposed definition. Separately, q₀=4 and q_n=q_(n+1)+1 for n≥0 use a future value as written: can this equation be rearranged into a valid forward definition, and what sequence results? Do not confuse these two issues.

Homework: prove the rule, not just its first values

H1. Prove the binary no-11 recurrence from the object sets and inverse constructions. Then prove uniqueness for the two-initial-value recurrence, distinguishing the model argument from the sequence argument. Explain why changing f₁ can change the sequence without changing its step rule.

H2. Derive and prove the affine-recurrence formula, stating the parameter/index domains and handling r=0 and r=1 separately. Explain the finite-sum cancellation, the n=0 check and why a fixed value need not be an attracting limit.

H3. Prove the selected second-order theorem for two distinct nonzero real roots: each candidate satisfies the recurrence, a linear combination does too, the initial-value equations have a unique solution, and recurrence uniqueness identifies the answer. Give the repeated-root example where the stated method fails, together with its valid difference-based repair.

H4. Audit a proposed recurrence solution using four separate questions: are its object definition and domain clear, is the recursive decomposition reversible/exhaustive, are the initial values correct, and does the formula satisfy every required step? Use the h/g finite-prefix example to show what finite agreement cannot establish, and propose one genuinely independent finite check for a supplied counting model.

Formative quiz: 32 points

Q1 (8). Solve a₀=4, a_(n+1)=2a_n−1 for n≥0. Compute a₄ both recursively and from your formula. Supply an induction proof, not just agreement of the two calculations.

Q2 (8). A strip of integer length n is tiled exactly by uncoloured length-one squares and length-three pieces; tile order along the strip matters. Give the empty/short initial values and derive a recurrence by the final tile. Calculate through n=7. Independently count length six by the number of length-three pieces, explaining the position choices.

Q3 (8). Solve x₀=3,x₁=4 and x_n=x_(n−1)+2x_(n−2), n≥2. Use distinct roots, fit both initial values, verify the recurrence and calculate x₄. Explain why using only x₀ would leave more than one candidate sequence.

Q4 (8). Count length-four words over {A,B,C} that start with A and have no adjacent As. Start ending-state counts at length one with the fixed first letter, derive the transitions and calculate through length four. Explain why taking one-third of the unrestricted no-AA total is not justified by letter symmetry in this model.

Project: coloured tilings and changed memory, 40 points

A strip of integer length n≥0 is tiled exactly by uncoloured squares S of length one and dominoes of length two, each coloured red R or blue B. Two tilings differ when their left-to-right tile word or any domino colour differs. Identical square copies are not separately labelled; no gaps or overlaps are allowed. Counts describe this finite model, not physical manufacturing or probabilities.

P1 (10). Let a_n count all such tilings. Derive a recurrence from the final tile, justify its reversible cases, state initial values and calculate a₀ through a₆. Explain why the empty strip contributes one rather than zero.

P2 (10). Independently count a_n by fixing the number j of dominoes: justify a finite sum using binomial coefficients, the allowed j range and colour choices. Evaluate it at n=6. Find and prove a closed formula for a_n using the recurrence and both initial values. Keep the direct counting argument separate from algebraic verification.

P3 (10). Change the model: no two domino tiles may be adjacent, regardless of colour. Let b_n count valid tilings. Give b₀,b₁,b₂ and derive a recurrence valid for n≥3 by removing a final square or a final square-plus-domino block. Explain why the rule needs the separate short cases. Calculate b₆. Check it independently by fixing j dominoes and inserting them into distinct gaps around the squares; state the feasibility condition on j.

P4 (10). In the restricted model, let e_n and o_n count tilings with an even and odd number of blue dominoes. Give their initial values through n=2 and derive coupled recurrences for n≥3, tracking how a final red or blue domino affects parity. Calculate e₆,o₆. Prove a second relation by flipping the colour of the leftmost domino in every tiling that has a domino, explaining the unpaired all-square tiling. Finish with a short audit distinguishing exact finite enumeration, universal proof and unstated real-world assumptions.

Delayed follow-through

D1. After a pause, solve c₀=2 and c_(n+1)=3c_n−2. Check c₃ by a table and prove your formula. Explain how changing only the initial value to one changes the whole sequence.

D2. Correct one missing-base, index, decomposition or state error from your work and test the repair on changed data. If none occurred, critique using b_n=b_(n−1)+2b_(n−2) for the no-adjacent-domino model. Identify the first incorrect count and exhibit a forbidden tiling that the rule admits; explain the corrected memory and initial data. This is a revision record, not certified mastery.

Feedback and next step

Locate the first unsupported inference: an undefined term, wrong starting index, missing inverse, wrong state or unproved formula. A correct number from a faulty construction is not a correct solution. Preserve alternative valid proofs and compare their assumptions.

Unit 4's relations, equivalence and finite order are available in this reader. Full-semester assessment remains unvalidated. This unit proves selected recurrence methods, not a general solution theory for repeated/zero/complex roots, nonlinear recurrences, generating functions or algorithmic efficiency. Specialist review, learner attempts/timing, rendered navigation and device/assistive-technology checks remain necessary.

Source and original-material note

The exposition, fictional models, text-described diagrams, exercises and keys are original. Optional primary topic reference: MIT OpenCourseWare, Chapter 10: Recurrences, checked 4 November 2026. Its terms and license apply to its material. No external passage, exercise, figure, transcript or video is reproduced. No affiliation, endorsement, institutional equivalence or full-course source validation is implied.