Skip to content
LoveToCalc

Definition — what does that mean?

Recursive sequence

A sequence given by a first term and a rule for the next one, instead of a formula for position n.

In Swedish: Rekursiv talföljd

Recursive sequence

The relation

uₙ=auₙ₋₁+b

A sequence where each term is worked out from the one before it, uₙ = a · uₙ₋₁ + b from a first term u₁ — the rule behind a dose that builds up, a saving with deposits, and both arithmetic and geometric sequences.

uₙ=33

uₙ equals 2 times u 4) plus (−1, equals (2 times 17) plus (−1), equals 34 plus (−1), equals 33

Working4 steps

Practice questions

You are given

  • a=1
  • b=3
  • u₁=5
  • n=6

What the definition says

A sequence is defined recursively when its first term u₁ is given together with a rule that gives each term from the one before it:

The same rule is often written uₙ₊₁ = f(uₙ). Only the numbering differs: both say that the next term is worked out from the one just before it.

The calculator on this page uses the most common form, where the rule is linear:

With a = 1 this is an arithmetic sequence with common difference b, and with b = 0 a geometric sequence with common ratio a.

Worked examples

A dose that builds up. A patient is given 200 mg on the first day. Each day 80% of the amount is still in the body, and a new dose of 50 mg is given. The amount after n days is uₙ = 0.8 · uₙ₋₁ + 50 with u₁ = 200:

n Working uₙ
1 200
2 0.8 · 200 + 50 210
3 0.8 · 210 + 50 218
4 0.8 · 218 + 50 224.4
5 0.8 · 224.4 + 50 229.52

The terms grow, but more and more slowly. They approach 250, because 0.8 · 250 + 50 = 250: at 250 as much leaves as is added.

The Tower of Hanoi. The least number of moves for n discs is u₁ = 1 and uₙ = 2 · uₙ₋₁ + 1. The sequence is 1, 3, 7, 15, 31, … and u₁₀ = 1,023, which agrees with 2¹⁰ − 1.

From the recursion to a closed form

For the linear rule with a ≠ 1 there is a formula that gives uₙ directly. Let L = b/(1 − a), the number the rule leaves unchanged. Then

For the dose, L = 50/0.2 = 250, and u₅ = 0.8⁴ · (200 − 250) + 250 = 0.4096 · (−50) + 250 = 229.52, as in the table. The formula also shows when the sequence settles: if −1 < a < 1, aⁿ⁻¹ goes to 0 and uₙ approaches L. If a ≥ 1 or a ≤ −1 it does not, except when u₁ = L.

Common mistakes

Common questions

What is the difference between a recursive and a closed formula? A recursive formula gives the next term from the one before, so every earlier term has to be worked out first. A closed formula gives uₙ straight from n. For an arithmetic sequence, uₙ = uₙ₋₁ + d is recursive and uₙ = u₁ + (n − 1)d is closed.

Can a term depend on more than the one just before it? Yes. The Fibonacci sequence has uₙ = uₙ₋₁ + uₙ₋₂ with u₁ = u₂ = 1, giving 1, 1, 2, 3, 5, 8, 13, … It needs two first terms. The calculator here handles only rules that look one term back.

What is a difference equation? Another name for a recursive rule, used when the sequence describes something that changes in steps, such as year by year. uₙ = 1.05 · uₙ₋₁ + 1,000 is a saving that grows by 5% a year with 1,000 paid in each year. The total of such payments can also be found with the sum of a geometric series.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
uₙauₙ₋₁+b2u₄+(−1)33

Last reviewed October 8, 2026 ·How pages are reviewed

Indices and seriesAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.