Skip to content
Test versionSearch

Mathematics

Exact finite arithmetic and geometric sequences

Calculate the exact nth term and finite sum for rational first term and difference or ratio, with up to ten initial terms.

How it worksFAQRelated tools

Content reviewed:

The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. JSON, HTML and TXT downloads keep your inputs and all result rows as exact fractions. Automatic recalculation after editing is off unless you switch it on. Nothing is saved, imported or sent automatically. Entered future-price scenario, not a forecast: choose Geometric. For an assumed constant annual price-change rate r% with r > -100%, calculate q = 1 + r/100 separately and enter that positive decimal or fraction as Difference / ratio q. Enter the starting amount as First term and, for Y whole years from 0 to 999, Number of terms n = Y + 1 (n = 1 to 1000; Y = 0 means n = 1). Read Nth term (exact), not Finite sum. Example only: first 100, q = 11/10 and n = 3 gives an assumed future cost of 121 after two years at 10%. To express a fixed future amount in today's price units, enter that amount as First term and use the reciprocal ratio 1/q, not a negated rate: first 100, enter ratio 10/11 and n = 3 gives 10000/121. Use q greater than zero and the existing input, n and output limits. Exact fractions carry between years; only the display rounds. No prediction of future CPI or ONS data, and no personal-basket estimate. The compound-interest calculator's rounded-penny ledger is a different method and is unchanged.

Results are exact fractions; the rounded decimal (0 to 12 places) is shown separately. You can type a fraction such as 3/4, a decimal with a point or comma, or scientific notation such as 2.5e3. Each entry may have up to 100 characters and powers of ten up to ±100. If a result row would be longer than 500 characters, the tool stops and asks for smaller numbers. n is a whole number from 1 to 1000 and the first 10 terms are listed. Ratios of 0, 1 and negative ratios are handled; sums are always finite, so infinite series are not evaluated. The separate first-three-terms form fits a rule of degree at most two (for example 2, 5, 10 gives n² + 1) and calculates the term at any position up to 1,000,000. It cannot know the true rule of an arbitrary sequence; it only continues the simplest one that matches three terms. Without your own choice it shows 4 decimal places (0 to 6 possible).

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Arithmetic sequence: aₙ = a₁ + (n − 1)·d. Geometric sequence: aₙ = a₁·qⁿ⁻¹. Sums use the closed formulas, calculated with exact fractions. Results are exact fractions; the rounded decimal (0 to 12 places) is shown separately. You can type a fraction such as 3/4, a decimal with a point or comma, or scientific notation such as 2.5e3. Each entry may have up to 100 characters and powers of ten up to ±100. If a result row would be longer than 500 characters, the tool stops and asks for smaller numbers. n is a whole number from 1 to 1000 and the first 10 terms are listed. Ratios of 0, 1 and negative ratios are handled; sums are always finite, so infinite series are not evaluated. The separate first-three-terms form fits a rule of degree at most two (for example 2, 5, 10 gives n² + 1) and calculates the term at any position up to 1,000,000. It cannot know the true rule of an arbitrary sequence; it only continues the simplest one that matches three terms. Without your own choice it shows 4 decimal places (0 to 6 possible).

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Sequence type
Constant difference
First term a1
1/3
Difference d / ratio q
1/6
Number of terms n1–1000
10
Rounded display 0–12 places
6

Result

First term (exact)
1/3
Difference / ratio (exact)
1/6
Number of terms
10
Nth term (exact)
11/6
Finite sum (exact)
65/6
Nth term (rounded)
1.833333
Finite sum (rounded)
10.833333
First up to ten terms (exact)
1/3; 1/2; 2/3; 5/6; 1; 7/6; 4/3; 3/2; 5/3; 11/6

Frequently asked questions

How do I find the nth term and sum of an arithmetic sequence?

Choose arithmetic, enter the first term, the difference and n. The example uses first 1/3, step 1/6 and n=10. The tool gives the exact nth term and finite sum, and shows the first ten terms.

What limits apply to n?

n is an integer from 1 to 1000. Only finite sums are calculated, with no infinite convergence, and q=0, q=1 and negative q are handled explicitly.

Can I use fractions and decimals?

Yes. The tool uses exact rational arithmetic with input text up to 100 characters, a decimal point or comma, integer fractions or scientific notation.

How can I model a constant annual price change?

Choose Geometric, calculate q = 1 + r/100 and enter it as the ratio, and set n = Y + 1 for Y whole years. For first 100, q = 11/10 and n = 3, the nth term is 121 after two years at 10%.

How do I express a future amount in today's price units?

Enter the amount as the first term and use the reciprocal ratio 1/q. For first 100, ratio 10/11 and n = 3 gives 10000/121.

Can I find a sequence rule from its first three terms?

A separate workflow assumes a polynomial of degree at most two at positions 1, 2 and 3 and gives the nth value for a position up to 1000000. It does not identify the true rule of an arbitrary sequence.

Does the tool predict inflation?

No. It makes no prediction of future CPI or ONS data and no personal-basket estimate.