Loading calculators...
Fetching calculator categories and tools for this section.
Preparing tools and content for you. This usually takes a second.
Fetching calculator categories and tools for this section.
Quick answer
A recursive formula gives the first term and a rule that builds each term from the one before. Arithmetic sequence: a₁ = first term, aₙ = aₙ₋₁ + d. Geometric sequence: aₙ = r·aₙ₋₁. Example: 12, 17, 22, 27, … adds 5 each time, so the recursive formula is a₁ = 12, aₙ = aₙ₋₁ + 5 for n ≥ 2 (in function notation f(1) = 12, f(n) = f(n − 1) + 5). The explicit formula is aₙ = 5n + 7, so the 10th term is 57.
Paste any sequence — whole numbers, decimals, fractions or negatives — and get the recursive formula in aₙ and f(n) notation, the explicit formula, any term, the sum and a step-by-step explanation. It recognizes arithmetic, geometric, quadratic, multiply-then-add and Fibonacci-type patterns, and it also works backwards from a recursive rule, an explicit formula or two known terms.
Last updated October 2, 2026. Free, no sign-up. Guides: recursive formula for an arithmetic sequence · recursive vs explicit formula
Separate terms with commas or spaces. Fractions (1/3), decimals and negatives are fine; “…” is ignored. Enter 4 or more terms for the most reliable answer.
First term is
Try an example
Recursive formula
a₁ = 12
aₙ = aₙ₋₁ + 5 for n ≥ 2
Explicit formula (nth term)
aₙ = 5n + 7
Also: aₙ = 12 + 5(n − 1)
Term 10
a₁₀ = 57
Sum of terms a₁ to a₁₀: S₁₀ = 345
Next 5 terms
32, 37, 42, 47, 52
Parameters
a₁ = 12, d = 5
a₁: first term · d: common difference
Same formula in other notations
| n | aₙ | aₙ − aₙ₋₁ | aₙ ÷ aₙ₋₁ |
|---|---|---|---|
| 1 | 12 | — | — |
| 2 | 17 | 5 | 17/12 |
| 3 | 22 | 5 | 22/17 |
| 4 | 27 | 5 | 27/22 |
| 5 | 32 | 5 | 32/27 |
| 6 | 37 | 5 | 1.15625 |
| 7 | 42 | 5 | 42/37 |
| 8 | 47 | 5 | 47/42 |
Shaded rows are the terms you entered; the rest are generated by the formula.
Step by step
A recursive formula defines a sequence by giving its first term (or first few terms) and a rule that produces each later term from the term or terms before it. For an arithmetic sequence the rule adds a common difference d (aₙ = aₙ₋₁ + d); for a geometric sequence it multiplies by a common ratio r (aₙ = r·aₙ₋₁). An explicit formula, by contrast, computes any term directly from its position n.
Arithmetic: a₁ given, aₙ = aₙ₋₁ + d → aₙ = a₁ + (n − 1)d
Geometric: a₁ given, aₙ = r·aₙ₋₁ → aₙ = a₁ · rⁿ⁻¹
d = aₙ − aₙ₋₁ · r = aₙ ÷ aₙ₋₁
Why the starting value matters: the rule aₙ = aₙ₋₁ + 5 fits 12, 17, 22, … and also 1, 6, 11, …. Only the rule plus a₁ pins down one sequence. A rule that uses two earlier terms needs two starting values.
Answers for the sequences students search for most, computed by the calculator above. “Next” is the term after the last one shown.
| Sequence | Type | Recursive formula | Explicit formula | Next |
|---|---|---|---|---|
| 12, 17, 22, 27, 32, 37, … | Arithmetic | a₁ = 12; aₙ = aₙ₋₁ + 5 | aₙ = 5n + 7 | 32 |
| 6, 1, −4, −9, −14, −19, … | Arithmetic | a₁ = 6; aₙ = aₙ₋₁ − 5 | aₙ = −5n + 11 | −19 |
| −3, −1, 1, 3, 5, 7, … | Arithmetic | a₁ = −3; aₙ = aₙ₋₁ + 2 | aₙ = 2n − 5 | 5 |
| −1, −13, −25, −37, −49, −61, … | Arithmetic | a₁ = −1; aₙ = aₙ₋₁ − 12 | aₙ = −12n + 11 | −49 |
| 1, 6, 11, 16, 21, 26, … | Arithmetic | a₁ = 1; aₙ = aₙ₋₁ + 5 | aₙ = 5n − 4 | 21 |
| 6, 8, 10, 12, 14, 16, … | Arithmetic | a₁ = 6; aₙ = aₙ₋₁ + 2 | aₙ = 2n + 4 | 14 |
| 9, 15, 21, 27, 33, 39, … | Arithmetic | a₁ = 9; aₙ = aₙ₋₁ + 6 | aₙ = 6n + 3 | 33 |
| 19, 15, 11, 7, 3, −1, … | Arithmetic | a₁ = 19; aₙ = aₙ₋₁ − 4 | aₙ = −4n + 23 | 3 |
| −42, −33, −24, −15, −6, 3, … | Arithmetic | a₁ = −42; aₙ = aₙ₋₁ + 9 | aₙ = 9n − 51 | −6 |
| 5, 3, 1, −1, −3, −5, … | Arithmetic | a₁ = 5; aₙ = aₙ₋₁ − 2 | aₙ = −2n + 7 | −3 |
| 2, 6, 18, 54, 162, 486, … | Geometric | a₁ = 2; aₙ = 3aₙ₋₁ | aₙ = 2 · 3ⁿ⁻¹ | 162 |
| 80, 40, 20, 10, 5, 2.5, … | Geometric | a₁ = 80; aₙ = 0.5aₙ₋₁ | aₙ = 80 · (0.5)ⁿ⁻¹ | 2.5 |
| 16, −8, 4, −2, 1, −0.5, … | Geometric | a₁ = 16; aₙ = −0.5aₙ₋₁ | aₙ = 16 · (−0.5)ⁿ⁻¹ | −2 |
| 3, −6, 12, −24, 48, −96, … | Geometric | a₁ = 3; aₙ = −2aₙ₋₁ | aₙ = 3 · (−2)ⁿ⁻¹ | −96 |
| 5, 15, 45, 135, 405, 1215, … | Geometric | a₁ = 5; aₙ = 3aₙ₋₁ | aₙ = 5 · 3ⁿ⁻¹ | 1215 |
| 3, 27, 243, 2187, 19683, 177147, … | Geometric | a₁ = 3; aₙ = 9aₙ₋₁ | aₙ = 3 · 9ⁿ⁻¹ | 19683 |
| 8, 40, 200, 1000, 5000, 25000, … | Geometric | a₁ = 8; aₙ = 5aₙ₋₁ | aₙ = 8 · 5ⁿ⁻¹ | 5000 |
| 150, 30, 6, 1.2, 0.24, 0.048, … | Geometric | a₁ = 150; aₙ = 0.2aₙ₋₁ | aₙ = 150 · (0.2)ⁿ⁻¹ | 1.2 |
| 1/3, 2/9, 4/27, 8/81, 16/243, 32/729, … | Geometric | a₁ = 1/3; aₙ = (2/3)aₙ₋₁ | aₙ = (1/3) · (2/3)ⁿ⁻¹ | 8/81 |
| 4, −1, 0.25, −0.0625, 0.015625, −1/256, … | Geometric | a₁ = 4; aₙ = −0.25aₙ₋₁ | aₙ = 4 · (−0.25)ⁿ⁻¹ | 0.015625 |
| −0.25, −2, −16, −128, −1024, −8192, … | Geometric | a₁ = −0.25; aₙ = 8aₙ₋₁ | aₙ = −0.25 · 8ⁿ⁻¹ | −1024 |
| 1, 3, 6, 10, 15, 21, … | Quadratic+ | a₁ = 1; aₙ = aₙ₋₁ + n | aₙ = (1/2)n² + (1/2)n | 28 |
| 3, 5, 9, 17, 33, 65, … | aₙ = p·aₙ₋₁ + q | a₁ = 3; aₙ = 2aₙ₋₁ − 1 | aₙ = 2 · 2ⁿ⁻¹ + 1 | 65 |
| 1, 1, 2, 3, 5, 8, … | Two-term | a₁ = 1, a₂ = 1; aₙ = aₙ₋₁ + aₙ₋₂ | aₙ ≈ 0.7236 · (1.618)ⁿ⁻¹ + 0.2764 · (−0.618)ⁿ⁻¹ | 13 |
| 3, 5, 11, 21, 43, 85, … | Two-term | a₁ = 3, a₂ = 5; aₙ = aₙ₋₁ + 2aₙ₋₂ | aₙ = (8/3) · 2ⁿ⁻¹ + (1/3) · (−1)ⁿ⁻¹ | 171 |
| Pattern | How to spot it | Recursive formula | Explicit formula | Example |
|---|---|---|---|---|
| Arithmetic | Same difference d | a₁ given; aₙ = aₙ₋₁ + d | aₙ = a₁ + (n − 1)d | 12, 17, 22, 27 (d = 5) |
| Geometric | Same ratio r | a₁ given; aₙ = r·aₙ₋₁ | aₙ = a₁ · rⁿ⁻¹ | 2, 6, 18, 54 (r = 3) |
| Quadratic | Same second difference | aₙ = aₙ₋₁ + (linear in n) | aₙ = An² + Bn + C | 1, 3, 6, 10, 15 (aₙ = aₙ₋₁ + n) |
| Multiply-then-add | Differences form a geometric sequence | aₙ = p·aₙ₋₁ + q | aₙ = (a₁ − L)pⁿ⁻¹ + L, L = q/(1 − p) | 3, 5, 9, 17 (aₙ = 2aₙ₋₁ − 1) |
| Fibonacci-type | Each term from the two before | a₁, a₂ given; aₙ = p·aₙ₋₁ + q·aₙ₋₂ | Roots of x² = px + q (Binet for Fibonacci) | 1, 1, 2, 3, 5, 8 |
“Use the initial term and the recursive formula to find an explicit formula” — answers in simplest form, with the 10th term.
| Recursive | Explicit | First terms | 10th term |
|---|---|---|---|
| a₁ = 15; aₙ = aₙ₋₁ + 16 | aₙ = 16n − 1 (= 15 + 16(n − 1)) | 15, 31, 47, 63, 79 | a₁₀ = 159 |
| a₁ = −37; aₙ = aₙ₋₁ − 16 | aₙ = −16n − 21 (= −37 − 16(n − 1)) | −37, −53, −69, −85, −101 | a₁₀ = −181 |
| a₁ = −23; aₙ = aₙ₋₁ + 17 | aₙ = 17n − 40 (= −23 + 17(n − 1)) | −23, −6, 11, 28, 45 | a₁₀ = 130 |
| a₁ = 28; aₙ = aₙ₋₁ + 10 | aₙ = 10n + 18 (= 28 + 10(n − 1)) | 28, 38, 48, 58, 68 | a₁₀ = 118 |
| a₁ = 2; aₙ = aₙ₋₁ + 7 | aₙ = 7n − 5 (= 2 + 7(n − 1)) | 2, 9, 16, 23, 30 | a₁₀ = 65 |
| a₁ = 25; aₙ = aₙ₋₁ − 2.5 | aₙ = −2.5n + 27.5 (= 25 − 2.5(n − 1)) | 25, 22.5, 20, 17.5, 15 | a₁₀ = 2.5 |
| a₁ = −14; aₙ = aₙ₋₁ + 6 | aₙ = 6n − 20 (= −14 + 6(n − 1)) | −14, −8, −2, 4, 10 | a₁₀ = 40 |
| a₁ = −5; aₙ = −3aₙ₋₁ | aₙ = −5 · (−3)ⁿ⁻¹ | −5, 15, −45, 135, −405 | a₁₀ = 98415 |
| a₁ = 185; aₙ = (2/3)aₙ₋₁ | aₙ = 185 · (2/3)ⁿ⁻¹ | 185, 370/3, 740/9, 1480/27, 2960/81 | a₁₀ = 4.8122746 |
| a₁ = 32; aₙ = (1/4)aₙ₋₁ | aₙ = 32 · (1/4)ⁿ⁻¹ | 32, 8, 2, 1/2, 1/8 | a₁₀ = 1/8192 |
| a₁ = 3; aₙ = 2aₙ₋₁ − 1 | aₙ = 2 · 2ⁿ⁻¹ + 1 (= 2ⁿ + 1) | 3, 5, 9, 17, 33 | a₁₀ = 1025 |
| a₁ = 1; aₙ = 2aₙ₋₁ + 3 | aₙ = 4 · 2ⁿ⁻¹ − 3 | 1, 5, 13, 29, 61 | a₁₀ = 2045 |
Substitute n = 1 for the first term, then find the common difference or ratio.
| Explicit | First terms | Recursive |
|---|---|---|
| aₙ = −9n + 38 | 29, 20, 11, 2 | a₁ = 29; aₙ = aₙ₋₁ − 9 |
| aₙ = 5n + 7 | 12, 17, 22, 27 | a₁ = 12; aₙ = aₙ₋₁ + 5 |
| aₙ = −2 + 4n | 2, 6, 10, 14 | a₁ = 2; aₙ = aₙ₋₁ + 4 |
| aₙ = 9 + (n−1)(−3) | 9, 6, 3, 0 | a₁ = 9; aₙ = aₙ₋₁ − 3 |
| aₙ = 4(2)ⁿ⁻¹ | 4, 8, 16, 32 | a₁ = 4; aₙ = 2aₙ₋₁ |
| aₙ = 15(1/3)ⁿ⁻¹ | 15, 5, 5/3, 5/9 | a₁ = 15; aₙ = (1/3)aₙ₋₁ |
| aₙ = 32(1/4)ⁿ⁻¹ | 32, 8, 2, 1/2 | a₁ = 32; aₙ = (1/4)aₙ₋₁ |
| aₙ = 8(2.5)ⁿ⁻¹ | 8, 20, 50, 125 | a₁ = 8; aₙ = 2.5aₙ₋₁ |
| aₙ = −5(−3)ⁿ⁻¹ | −5, 15, −45, 135 | a₁ = −5; aₙ = −3aₙ₋₁ |
| aₙ = n² + 1 | 2, 5, 10, 17 | a₁ = 2; aₙ = aₙ₋₁ + (2n − 1) |
| aₙ = 2ⁿ + 1 | 3, 5, 9, 17 | a₁ = 3; aₙ = 2aₙ₋₁ − 1 |
Arithmetic: d = (aⱼ − aᵢ) ÷ (j − i). Geometric: rʲ⁻ⁱ = aⱼ ÷ aᵢ — when the gap is even there are two real answers, r and −r. Then work back to a₁. The last column is a₈.
| Given | d or r | Recursive formula | Explicit formula | a₈ |
|---|---|---|---|---|
| a₁₈ = 26, a₃₅ = 60 | d = 2 | a₁ = −8; aₙ = aₙ₋₁ + 2 | aₙ = 2n − 10 | a₈ = 6 |
| a₄ = 25, a₁₀ = 43 | d = 3 | a₁ = 16; aₙ = aₙ₋₁ + 3 | aₙ = 3n + 13 | a₈ = 37 |
| a₃ = 108, a₅ = 3888 | r = 6 or −6 | a₁ = 3; aₙ = 6aₙ₋₁ | aₙ = 3 · 6ⁿ⁻¹ | a₈ = 839808 or −839808 |
| a₅ = −324, a₆ = 972 | r = −3 | a₁ = −4; aₙ = −3aₙ₋₁ | aₙ = −4 · (−3)ⁿ⁻¹ | a₈ = 8748 |
| a₃ = 27, a₄ = 81 | r = 3 | a₁ = 3; aₙ = 3aₙ₋₁ | aₙ = 3 · 3ⁿ⁻¹ | a₈ = 6561 |
| a₅ = 512, a₆ = 2048 | r = 4 | a₁ = 2; aₙ = 4aₙ₋₁ | aₙ = 2 · 4ⁿ⁻¹ | a₈ = 32768 |
Textbooks and tests write the same rule several ways. All of these describe 12, 17, 22, 27, …. Multiple-choice questions often switch between them, so match the starting index and the direction of the shift.
| Style | Starting value | Rule | Applies |
|---|---|---|---|
| Subscript | a₁ = 12 | aₙ = aₙ₋₁ + 5 | for n ≥ 2 |
| Function | f(1) = 12 | f(n) = f(n − 1) + 5 | for n ≥ 2 |
| Function, next term | f(1) = 12 | f(n + 1) = f(n) + 5 | for n ≥ 1 |
| Subscript, next term | a₁ = 12 | aₙ₊₁ = aₙ + 5 | for n ≥ 1 |
| Starting at n = 0 | a₀ = 12 | aₙ = aₙ₋₁ + 5 | for n ≥ 1 (explicit: aₙ = 5n + 12) |
Definitions and formulas follow the OpenStax College Algebra and Precalculus textbooks and Paul’s Online Math Notes; the two-term and characteristic-equation methods follow MathWorld and standard references on linear recurrences, and the topic matches Common Core standards HSF-BF.A.2 and HSF-IF.A.3. Each detected pattern must reproduce every term you enter exactly (to floating-point tolerance), fractions are recovered exactly, and the Fibonacci and triangular-number cases were checked against OEIS. Every table on this page is generated by the same code as the calculator.
Need sums too? Try the summation notation calculator or the sequence calculator. Run a tutoring service, school or ed-tech site? We build branded math calculators for your website.
Get Custom Calculator for Your BusinessSuggested hashtags: #Math #Algebra #Sequences #RecursiveFormula #Calculator