Find any term and the sum of arithmetic, geometric and Fibonacci sequences, or enter a few numbers to identify the pattern and predict the next terms.
Terms
Arithmetic: aₙ = a₁ + (n − 1)d. Geometric: aₙ = a₁ × rⁿ⁻¹. Fibonacci starts 1, 1 and each term is the sum of the two before it. Very large values are shown in scientific notation.
A number sequence calculator finds any term of an arithmetic, geometric or Fibonacci sequence, adds up the terms, and can identify the pattern in a list of numbers so you can predict what comes next. It gives the nth-term formula, the sum of the first n terms, the first terms of the sequence and, for geometric sequences with a ratio between −1 and 1, the sum to infinity.
For example, the arithmetic sequence 3, 7, 11, 15, … has a 10th term of 39, and its first 10 terms add up to 210. The geometric sequence 2, 6, 18, 54, … has an 8th term of 4,374. The 10th Fibonacci number is 55, and the pattern finder recognises 1, 4, 9, 16, 25 as the square numbers, n².
In an arithmetic sequence, you add the same number, the common difference d, each time: 3, 7, 11, 15 has d = 4.
nth term: aₙ = a₁ + (n − 1)d
Sum of the first n terms: Sₙ = n ÷ 2 × (2a₁ + (n − 1)d)
For 3, 7, 11, …, the 10th term is 3 + 9 × 4 = 39, and the sum of the first 10 terms is 10 ÷ 2 × (6 + 36) = 210. The nth-term rule simplifies to aₙ = 4n − 1. A neat way to remember the sum: it’s the number of terms times the average of the first and last terms, 10 × (3 + 39) ÷ 2 = 210.
The common difference can be negative, giving a decreasing sequence, such as 20, 17, 14, 11 with d = −3.
In a geometric sequence, you multiply by the same number, the common ratio r, each time: 2, 6, 18, 54 has r = 3.
nth term: aₙ = a₁ × rⁿ⁻¹
Sum of the first n terms: Sₙ = a₁(1 − rⁿ) ÷ (1 − r), for r ≠ 1
For 2, 6, 18, …, the 8th term is 2 × 3⁷ = 4,374, and the first 8 terms add up to 6,560. Geometric sequences grow very quickly when r is greater than 1, which is why they describe compound interest, population growth and the spread of viruses.
When the ratio is between −1 and 1, the terms get smaller and smaller, and the total approaches a fixed limit:
S∞ = a₁ ÷ (1 − r)
For 16, 8, 4, 2, 1, …, with r = 0.5, the sum to infinity is 16 ÷ 0.5 = 32. The first 6 terms already add up to 31.5.
The Fibonacci sequence starts 1, 1, and each term is the sum of the two before it: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, … The 10th term is 55 and the 50th is 12,586,269,025. The sum of the first n Fibonacci numbers is always one less than the term two places further on: the first 10 add up to 143, which is 144 − 1.
As the sequence grows, the ratio of one term to the one before approaches the golden ratio, φ ≈ 1.618034. Fibonacci numbers appear in nature, in the spirals of sunflowers and pine cones and the branching of trees, and in art, architecture and computer algorithms.
Enter a few terms and the calculator checks the common patterns in order:
For a quadratic sequence, half the second difference is the coefficient of n². For 4, 9, 16, 25, the second difference is 2, so the formula starts with n². Subtracting n² from each term (4 − 1, 9 − 4, 16 − 9, 25 − 16) leaves 3, 5, 7, 9, an arithmetic sequence equal to 2n + 1. Putting them together gives aₙ = n² + 2n + 1, which is (n + 1)².
Compare two pay rises on a starting salary of 30,000: one adds a fixed 2,000 a year (arithmetic), the other adds 5% a year (geometric).
| Year | +2,000 a year | +5% a year |
|---|---|---|
| 1 | 30,000 | 30,000.00 |
| 5 | 38,000 | 36,465.19 |
| 10 | 48,000 | 46,539.85 |
| 20 | 68,000 | 75,808.51 |
The fixed increase wins at first, but percentage growth catches up and pulls ahead, because each rise is calculated on a bigger number. Over long periods, geometric growth always overtakes arithmetic growth when the ratio is greater than 1.
A theatre has 20 seats in the front row, and each row behind has 2 more seats than the one in front. How many seats are in row 20, and how many in total? This is an arithmetic sequence with a₁ = 20 and d = 2. Row 20 has 20 + 19 × 2 = 58 seats, and the total is 20 ÷ 2 × (20 + 58) = 780 seats.
Square and triangular numbers are quadratic sequences, so the pattern finder recognises them from a few terms.
Sometimes you know the first term, the difference and the last term, and need to know how many terms there are. Rearranging the arithmetic formula gives n = (last − first) ÷ d + 1. For 7, 11, 15, …, 99, that’s (99 − 7) ÷ 4 + 1 = 24 terms, including both the first and the last.
For related questions, use the matrix calculator to add, multiply and invert matrices, or the quadratic formula calculator to solve quadratic equations.
Use aₙ = a₁ + (n − 1)d. For 3, 7, 11, …, the 10th term is 3 + 9 × 4 = 39.
Use aₙ = a₁ × rⁿ⁻¹. For 2, 6, 18, …, the 8th term is 2 × 3⁷ = 4,374.
Sₙ = n ÷ 2 × (first term + last term). The first 10 terms of 3, 7, 11, … add up to 210.
For a geometric sequence with a ratio between −1 and 1, the sum approaches a₁ ÷ (1 − r). For 16, 8, 4, … it's 32.
55. The sequence runs 1, 1, 2, 3, 5, 8, 13, 21, 34, 55.
If the difference between terms is constant, it's arithmetic. If the ratio between terms is constant, it's geometric.
A sequence whose second differences are constant, such as the square numbers 1, 4, 9, 16, 25. Its nth term includes n².
About 1.618034. The ratio of consecutive Fibonacci numbers gets closer and closer to it as the sequence grows.
The sequence 1, 3, 6, 10, 15, …, where each term is n(n + 1) ÷ 2. They count the dots needed to make a triangle.
Yes. Increasing by 5% each year multiplies by 1.05 each time, so the values form a geometric sequence with r = 1.05.
Yes. A negative common difference gives a decreasing arithmetic sequence, such as 20, 17, 14, 11 with d = −3.
At least three, but four or more make the result more reliable, especially for quadratic sequences.