Ten recurrence patterns and how their solutions connect

Original publication: Updated:

A recurrence relates the terms of a sequence

A recurrence such as an+1=ana_{n+1}=a_n specifies a relationship between terms. Together with suitable initial values and domain conditions, it may define a sequence uniquely. Finding a general term means expressing ana_n directly in terms of nn.

The following ten patterns are a useful study map, not a classification of every possible recurrence. Many transformations aim at the same destination: a geometric sequence. Before applying one, check that reciprocals, logarithms, divisions, and implicit root choices are justified.

| Pattern | Useful transformation | | --- | --- | | Affine first order | Subtract a fixed point | | Reciprocal | Replace ana_n by 1/an1/a_n | | Powers or roots | Take logarithms of positive terms | | Exponential forcing | Divide by the forcing exponential | | Constant-coefficient second order | Factor with characteristic roots | | Polynomial forcing | Subtract a polynomial particular solution | | Variable coefficients | Normalize by a suitable sequence | | Coupled recurrences | Find geometric linear combinations | | Partial sums | Subtract consecutive sum equations | | An unfamiliar implicit recurrence | Calculate, conjecture, then prove |

This table replaces the Japanese flowchart in the source article. The first few patterns connect through affine recurrences; coupled and second-order systems connect through geometric combinations; partial sums often reduce to one of these after subtraction.

1. Affine first-order recurrences

For

an+1=pan+q,a_{n+1}=pa_n+q,

if p≠1p\ne1, solve L=pL+qL=pL+q, giving L=q/(1−p)L=q/(1-p). Subtract this identity:

an+1−L=p(an−L),a_{n+1}-L=p(a_n-L),

so

an=L+pn−1(a1−L).\boxed{a_n=L+p^{n-1}(a_1-L).}

If p=1p=1, use the arithmetic-sequence formula an=a1+(n−1)qa_n=a_1+(n-1)q instead. If p=0p=0, the recurrence simply sets every term after the first equal to qq; interpret that case directly without relying on an ambiguous 000^0 notation.

Example

Let a1=3a_1=3 and an+1=2an−1a_{n+1}=2a_n-1. The fixed point is one, so an+1−1=2(an−1)a_{n+1}-1=2(a_n-1) and

an=2n+1.\boxed{a_n=2^n+1.}

For the separate arithmetic example a1=3a_1=3, an+1=an+2a_{n+1}=a_n+2, the answer is an=2n+1a_n=2n+1.

2. A reciprocal transformation

Let

a1=3,an+1=2an3an+1.a_1=3,\qquad a_{n+1}=\frac{2a_n}{3a_n+1}.

First show the recurrence is defined and nonzero. The initial term is positive; whenever an>0a_n>0, the denominator is positive and an+1>0a_{n+1}>0. Induction proves positivity at every step.

Set bn=1/anb_n=1/a_n. Then

bn+1=12bn+32,b1=13.b_{n+1}=\frac12b_n+\frac32, \qquad b_1=\frac13.

Its fixed point is three. Hence

bn=3+(12)n−1(13−3)=3−83⋅2n−1.b_n=3+\left(\frac12\right)^{n-1}\left(\frac13-3\right) =3-\frac8{3\cdot2^{n-1}}.

Taking the reciprocal,

an=3⋅2n−19⋅2n−1−8.\boxed{a_n=\frac{3\cdot2^{n-1}}{9\cdot2^{n-1}-8}.}

For n≥1n\ge1 its denominator is positive, agreeing with the domain check. A nonzero numerator alone would not justify ignoring a potentially zero recurrence denominator.

3. Powers and logarithms

Let a1=2a_1=2 and an+1=3an2a_{n+1}=3a_n^2. Induction gives an>0a_n>0, so set bn=log⁡3anb_n=\log_3a_n. The logarithm has a valid positive base different from one, and positive arguments. Then

bn+1=1+2bn,bn+1+1=2(bn+1).b_{n+1}=1+2b_n, \qquad b_{n+1}+1=2(b_n+1).

Thus

bn=2n−1(log⁡32+1)−1,b_n=2^{n-1}(\log_32+1)-1,

and

an=6 2n−13.\boxed{a_n=\frac{6^{\,2^{n-1}}}{3}.}

Logarithms turn a power relationship into a linear one. They are unavailable for a zero or negative real term unless the problem is reformulated appropriately.

4. Exponential forcing

For an+1=pan+crna_{n+1}=pa_n+cr^n with r≠0r\ne0, divide by rn+1r^{n+1} and set bn=an/rnb_n=a_n/r^n:

bn+1=prbn+cr.b_{n+1}=\frac prb_n+\frac cr.

This is affine. When p=rp=r, it is arithmetic instead of requiring a fixed-point subtraction.

Example

If a1=3a_1=3 and an+1=2an−3na_{n+1}=2a_n-3^n, then

bn+1=23bn−13,b1=1.b_{n+1}=\frac23b_n-\frac13, \qquad b_1=1.

Subtracting the fixed point −1-1 gives bn+1=2(2/3)n−1b_n+1=2(2/3)^{n-1}. Therefore

an=3⋅2n−3n.\boxed{a_n=3\cdot2^n-3^n.}

For the resonant variation an+1=3an−3na_{n+1}=3a_n-3^n with the same initial value, bn+1=bn−1/3b_{n+1}=b_n-1/3. Hence

an=(4−n)3n−1.\boxed{a_n=(4-n)3^{n-1}.}

The term crncr^n need not have coefficient one: its constant multiplier remains in the normalized recurrence.

5. Second-order constant-coefficient recurrences

For

an+2=pan+1+qan,a_{n+2}=pa_{n+1}+qa_n,

solve the characteristic equation t2−pt−q=0t^2-pt-q=0. If its roots are α,β\alpha,\beta, then α+β=p\alpha+\beta=p and αβ=−q\alpha\beta=-q, giving

an+2−αan+1=β(an+1−αan).a_{n+2}-\alpha a_{n+1}=\beta(a_{n+1}-\alpha a_n).

Thus an+1−αana_{n+1}-\alpha a_n is geometric. Solve that recurrence first, then solve the resulting first-order equation for ana_n. This approach also adapts to a repeated characteristic root.

Example

Let a1=2a_1=2, a2=3a_2=3, and an+2=2an+1+3ana_{n+2}=2a_{n+1}+3a_n. The characteristic roots are 33 and −1-1. We obtain

an+1+an=5⋅3n−1,an+1−3an=−3(−1)n−1.a_{n+1}+a_n=5\cdot3^{n-1}, \qquad a_{n+1}-3a_n=-3(-1)^{n-1}.

Subtracting the equations eliminates an+1a_{n+1}:

an=54 3n−1+34(−1)n−1.\boxed{a_n=\frac54\,3^{n-1}+\frac34(-1)^{n-1}.}

The second geometric relation comes from an+2−3an+1=−(an+1−3an)a_{n+2}-3a_{n+1}=-(a_{n+1}-3a_n); keeping the coefficient three is essential.

For distinct roots, using both relations can be faster. With a repeated nonzero root rr, the usual form is (A+B(n−1))rn−1(A+B(n-1))r^{n-1}, with A,BA,B determined by the two initial values. A repeated zero root means p=q=0p=q=0, so an+2=0a_{n+2}=0 and is best handled directly. Do not divide by a characteristic root before checking it is nonzero.

6. Polynomial forcing

Consider an+1=pan+P(n)a_{n+1}=pa_n+P(n), where PP is a polynomial. Look for a polynomial gg satisfying

g(n+1)−pg(n)=P(n).g(n+1)-pg(n)=P(n).

Then an+1−g(n+1)=p(an−g(n))a_{n+1}-g(n+1)=p(a_n-g(n)). For p≠1p\ne1, a polynomial of the same degree as PP provides a systematic coefficient-comparison approach.

Example

Take

a1=1,an+1=2an+3n2+2n+1.a_1=1,\qquad a_{n+1}=2a_n+3n^2+2n+1.

The source's initial-value line is incomplete, but its calculation uses a1=1a_1=1, which is specified here. Set g(n)=An2+Bn+Cg(n)=An^2+Bn+C. Comparing coefficients in g(n+1)−2g(n)=3n2+2n+1g(n+1)-2g(n)=3n^2+2n+1 gives

−A=3,2A−B=2,A+B−C=1.-A=3,\qquad2A-B=2,\qquad A+B-C=1.

Hence g(n)=−3n2−8n−12g(n)=-3n^2-8n-12. Therefore

an+3n2+8n+12=24⋅2n−1,a_n+3n^2+8n+12=24\cdot2^{n-1},

and

an=3⋅2n+2−3n2−8n−12.\boxed{a_n=3\cdot2^{n+2}-3n^2-8n-12.}

If the initial value were an unspecified a1=A0a_1=A_0, replace the geometric coefficient 2424 by A0+23A_0+23.

When the coefficient is one

For an+1=an+P(n)a_{n+1}=a_n+P(n), sum the differences:

an=a1+∑k=1n−1P(k).a_n=a_1+\sum_{k=1}^{n-1}P(k).

With the empty-sum convention this is also valid at n=1n=1. Otherwise derive it for n≥2n\ge2 and verify the first term separately. The usual power-sum formulas and telescoping often evaluate the sum.

A polynomial particular solution still exists here, generally of one higher degree; it is the same discrete-antiderivative idea, rather than a fundamental failure of polynomial methods.

7. Variable coefficients

A normalization can remove coefficients depending on nn. For

a1=1,nan+1=(n+1)an+n3+3n2+2n,a_1=1,\qquad na_{n+1}=(n+1)a_n+n^3+3n^2+2n,

divide by n(n+1)>0n(n+1)>0:

an+1n+1=ann+n+2.\frac{a_{n+1}}{n+1}=\frac{a_n}{n}+n+2.

Set bn=an/nb_n=a_n/n. Then

bn=1+∑k=1n−1(k+2)=1+(n−1)(n+4)2.b_n=1+\sum_{k=1}^{n-1}(k+2) =1+\frac{(n-1)(n+4)}2.

Thus

an=n(n2+3n−2)2.\boxed{a_n=\frac{n(n^2+3n-2)}2.}

For the homogeneous variation nan+1=(n+1)anna_{n+1}=(n+1)a_n, a1=1a_1=1, repeated multiplication gives

an=∏k=1n−1k+1k=n.a_n=\prod_{k=1}^{n-1}\frac{k+1}{k}=n.

This product argument is fully rigorous, and can be justified by induction. More generally, dividing by a nonzero solution of the homogeneous recurrence often gives a useful normalization. An inhomogeneous recurrence may then be solved by summing its normalized increments.

8. Coupled recurrences

Consider

an+1=an+2bn,bn+1=4an+3bn,a1=b1=1.a_{n+1}=a_n+2b_n,\qquad b_{n+1}=4a_n+3b_n,\qquad a_1=b_1=1.

Look for a combination an+λbna_n+\lambda b_n that is geometric:

an+1+λbn+1=(1+4λ)an+(2+3λ)bn.a_{n+1}+\lambda b_{n+1} =(1+4\lambda)a_n+(2+3\lambda)b_n.

It has the required coefficient ratio when

2+3λ=λ(1+4λ),(2λ+1)(λ−1)=0.2+3\lambda=\lambda(1+4\lambda), \qquad(2\lambda+1)(\lambda-1)=0.

For λ=1,−1/2\lambda=1,-1/2, respectively,

an+bn=2⋅5n−1,an−12bn=12(−1)n−1.a_n+b_n=2\cdot5^{n-1},\qquad a_n-\frac12b_n=\frac12(-1)^{n-1}.

Solving gives

an=2⋅5n−1+(−1)n−13,bn=4⋅5n−1−(−1)n−13.\boxed{a_n=\frac{2\cdot5^{n-1}+(-1)^{n-1}}3,\qquad b_n=\frac{4\cdot5^{n-1}-(-1)^{n-1}}3.}

The source switches midway to b1=4b_1=4; these answers consistently use the stated b1=1b_1=1. If b1=4b_1=4 were intended, the corresponding formulas would be an=(5n+2(−1)n)/3a_n=(5^n+2(-1)^n)/3 and bn=2(5n−(−1)n)/3b_n=2(5^n-(-1)^n)/3.

For a symmetric system

an+1=san+tbn,bn+1=tan+sbn,a_{n+1}=sa_n+tb_n,\qquad b_{n+1}=ta_n+sb_n,

adding and subtracting directly yields geometric sequences with ratios s+ts+t and s−ts-t. General coupled systems need not always have two independent real geometric combinations; repeated or complex characteristic values require the appropriate additional treatment.

9. A recurrence containing partial sums

Let Sn=a1+⋯+anS_n=a_1+\cdots+a_n, and suppose the terms are positive with

a1=1,Sn=12an2+12an.a_1=1,\qquad S_n=\frac12a_n^2+\frac12a_n.

For n≥2n\ge2, subtract the equation at n−1n-1 and use Sn−Sn−1=anS_n-S_{n-1}=a_n:

2an=an2−an−12+an−an−1,2a_n=a_n^2-a_{n-1}^2+a_n-a_{n-1}, (an−an−1−1)(an+an−1)=0.(a_n-a_{n-1}-1)(a_n+a_{n-1})=0.

Positivity excludes the second factor being zero. Therefore an=an−1+1a_n=a_{n-1}+1, and

an=n.\boxed{a_n=n.}

Conversely, these terms satisfy Sn=n(n+1)/2=(an2+an)/2S_n=n(n+1)/2=(a_n^2+a_n)/2, so the original partial-sum condition is verified. Without positivity, additional branches would require consideration.

10. Conjecture a formula, then prove it

Let the positive sequence satisfy

a1=1,an+1=anan+1+n+1.a_1=1,\qquad a_{n+1}=\sqrt{a_na_{n+1}+n+1}.

The first few terms are 1,2,31,2,3, suggesting an=na_n=n. A finite list is evidence for a conjecture, not its proof.

The base case is given. Assume ak=ka_k=k for a positive integer kk. Since ak+1>0a_{k+1}>0, squaring is valid and gives

ak+12−kak+1−(k+1)=0,a_{k+1}^2-ka_{k+1}-(k+1)=0, (ak+1+1)(ak+1−k−1)=0.(a_{k+1}+1)(a_{k+1}-k-1)=0.

The positive root is k+1k+1, completing the induction. Thus

an=n.\boxed{a_n=n.}

Here the implicit equation has exactly one positive root at each step, so the branch choice also proves uniqueness. Guessing and induction are useful beyond these ten patterns, but not every unfamiliar recurrence has a conveniently guessable closed form. The induction guide develops the proof methods in detail, and probability recurrences show why these transformations matter in applications.

Related articles

About the author

Koki Saito

Physician and graduate of the University of Tokyo Faculty of Medicine. Drawing on his entrance-exam experience, he explains how to choose mathematical methods and construct complete solutions.

Full profile →

Have a question or spotted an error? Contact us.