Number Sequence Calculator: Arithmetic, Geometric and Fibonacci
Choose the type of sequence, give the first term and the rule, and say how many terms. You will see the nth term, the sum and the start of the sequence.
Last reviewed
Term number 10
29
- Sum of the first 10 terms
- 155
First terms: 2, 5, 8, 11, 14, 17, 20, 23, 26, 29
All the arithmetic is exact. Large values are shown in full, never in rounded scientific notation.
Three patterns that come up again and again
A sequence is a list of numbers that follows a rule. Three rules cover most of what people ask about, and each has a formula that gets you to any term without writing out all the ones before it.
| Type | The rule | Example |
|---|---|---|
| Arithmetic | add the same amount each time | 2, 5, 8, 11, 14, … |
| Geometric | multiply by the same amount each time | 3, 6, 12, 24, 48, … |
| Fibonacci type | add the previous two terms | 1, 1, 2, 3, 5, 8, … |
The calculator takes the first term and the rule, and works out the nth term, the sum of the first n terms, and the beginning of the list.
Arithmetic sequences
Each term is the one before plus a fixed amount, the common difference d. Starting from a₁:
- The nth term: aₙ = a₁ + (n − 1) d
- The sum of the first n terms: Sₙ = n × (a₁ + aₙ) ÷ 2
For 2, 5, 8, 11, … with d = 3:
- The 10th term is 2 + 9 × 3 = 29.
- The sum of ten terms is 10 × (2 + 29) ÷ 2 = 155.
A negative difference gives a falling sequence. Starting at 100 and taking off 7 each time, the 15th term is 100 − 14 × 7 = 2, and the 15 terms sum to 765.
The same formula adds 1 to 100 in one step: 100 × 101 ÷ 2 = 5,050. Adding 1 to 1,000,000 works the same way and gives 500,000,500,000.
Finding where a value is
To find the position of a value in an arithmetic sequence, solve for n: n = (value − a₁) ÷ d + 1. If that is a whole number of at least 1, the value is a term. In 2, 5, 8, … the value 29 is the 10th term and 299 is the 100th. The value 30 is not a term, because (30 − 2) ÷ 3 + 1 = 10.33. Type a value into the “find the position” box to try it.
Geometric sequences
Each term is the one before times a fixed amount, the common ratio r:
- The nth term: aₙ = a₁ × rⁿ⁻¹
- The sum of the first n terms: Sₙ = a₁ × (1 − rⁿ) ÷ (1 − r), or n × a₁ if r is 1
For 3, 6, 12, 24, … with r = 2:
- The 10th term is 3 × 2⁹ = 1,536.
- The sum of ten terms is 3 × (2¹⁰ − 1) = 3,069.
A negative ratio makes the terms alternate in sign. 1, −2, 4, −8, 16 has a fifth term of 16 and a sum of 11.
Compound growth
Compound interest is a geometric sequence. £1,000 growing by 10% a year multiplies by 1.1 each year, so after three years it is 1,000 × 1.1³ = £1,331. In the calculator, that is first term 1,000, ratio 1.1 and four terms, because the starting amount is the first term.
When the sum goes on for ever
If the ratio is between −1 and 1, the terms get smaller and smaller, and the sum of all of them settles on a limit: a₁ ÷ (1 − r). For 1, 0.5, 0.25, … the limit is 1 ÷ 0.5 = 2. For a ratio of −0.5 it is 1 ÷ 1.5 = 0.6667. If the ratio is 1 or more in size, the terms do not shrink and the sum has no limit.
Fibonacci-type sequences
Each term is the sum of the two before it. Starting from 1 and 1:
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, …
The 10th term is 55, the 20th is 6,765, the 50th is 12,586,269,025 and the 100th is 354,224,848,179,261,915,075. The numbers grow so fast that the 1,000th has 209 digits. The calculator gives them in full, not rounded.
The sum of the first n terms is the term two places further on, less the second term. For Fibonacci, the first ten add up to the 12th term minus 1: 144 − 1 = 143.
The golden ratio
Divide each term by the one before it and the answer settles towards 1.6180339887…, the golden ratio. By the 60th term it agrees to twelve decimal places. The calculator shows the ratio of the last two terms.
Lucas numbers and others
The rule is the same for any two starting numbers. Starting from 2 and 1 gives the Lucas numbers: 2, 1, 3, 4, 7, 11, 18, 29, 47, 76, … Choose “Fibonacci type”, set the first term to 2 and the second to 1. Starting from 0 and 1 gives the Fibonacci numbers with a leading zero, so the 11th term is 55.
Telling them apart
- A constant difference between terms: arithmetic.
- A constant ratio between terms: geometric.
- Each term is the sum of two before it: Fibonacci type.
Check with a few terms. 3, 6, 12, 24 has ratios of 2 and differences of 3, 6, 12, so it is geometric, not arithmetic.
What this handles
- Arithmetic: any first term and difference, up to a trillion terms.
- Geometric and Fibonacci: up to 1,000 terms, because the exact terms grow so large.
- Decimals and negatives: allowed. The arithmetic is exact, so 0.1 added ten times is exactly 1, not 0.9999999999999999.
Common mistakes
- Counting the first term as zero. The first term is term number 1.
- Using n where the formula needs n − 1. In a₁ + (n − 1) d, the (n − 1) is the number of steps taken.
- Forgetting the sum of a geometric sequence needs r ≠ 1. At r = 1 every term is the same.
- Expecting an infinite sum when |r| ≥ 1. It only settles if the terms shrink.
For the factors of a number, see the common factor calculator. For very large whole numbers, the big number calculator. For growth over time, the compound interest calculator and the CAGR calculator.
How it is calculated
The terms and sums come from the closed formulas above, worked in exact decimal arithmetic with enough digits that nothing is rounded. For geometric sequences the ratio is raised to its power exactly. For Fibonacci-type sequences the terms are added one after another. The sum of the first n terms of a Fibonacci-type sequence is the term two places on, minus the second term.
Frequently asked questions
What is an arithmetic sequence?
One where each term is the one before plus the same amount, the common difference. 2, 5, 8, 11, ... has a difference of 3. The nth term is a₁ + (n − 1)d, so the 10th is 2 + 9 × 3 = 29.
What is a geometric sequence?
One where each term is the one before times the same amount, the common ratio. 3, 6, 12, 24, ... has a ratio of 2. The nth term is a₁ × rⁿ⁻¹, so the 10th is 3 × 2⁹ = 1,536.
How do I find the sum of the first n terms?
For an arithmetic sequence it is n × (first + last) ÷ 2: for 2, 5, ..., 29, that is 10 × 31 ÷ 2 = 155. For a geometric sequence it is a₁(1 − rⁿ) ÷ (1 − r): for 3, 6, ..., 1,536 it is 3,069.
Can a geometric sequence have an infinite sum?
Yes, if the ratio is between −1 and 1, so that the terms shrink. The sum of all of them is a₁ ÷ (1 − r). For 1, 0.5, 0.25, ... it is 2. If the ratio is 1 or more in size, the sum grows without limit.
What is the Fibonacci sequence?
The sequence 1, 1, 2, 3, 5, 8, 13, ... where each term is the sum of the two before it. The 10th term is 55, the 20th is 6,765 and the 50th is 12,586,269,025. The ratio of one term to the one before approaches 1.6180339887, the golden ratio.
What are the Lucas numbers?
The same rule as Fibonacci, with different starting terms: 2 and 1 give 2, 1, 3, 4, 7, 11, 18, 29, 47, 76. Choose Fibonacci type, and enter 2 and 1 as the first two terms.
Related calculators
- Common Factor CalculatorEnter two to six whole numbers.
- Big Number CalculatorEnter whole numbers of any size, up to 10,000 digits, and choose an operation.
- Statistics CalculatorEnter your numbers, separated by commas, spaces or new lines.
- Percentage CalculatorPick the question you are actually asking.
- Compound Interest CalculatorEnter what you have, what you add each month, and the return you expect.
- CAGR CalculatorCAGR is the steady annual rate that would have taken you from one value to another.