Distinguishing a sequence term from its running total
A geometric sequence has a term at each position and a running total up to that position. This guide shows how to tell the two outputs apart and check one against the other.
Two outputs, two questions
In a geometric sequence each entry is the previous entry times a fixed ratio r. With first term a1 and ratio r, the nth term is a1 × r^(n-1), and the sum of the first n terms is a1 × (1 - r^n) ÷ (1 - r) when r is not 1. The term answers the question of what the entry at position n is. The sum answers how much the first n entries add up to. For a1 = 2, r = 3 and n = 4, the term is 2 × 3³ = 54 and the sum is 2 × (1 - 81) ÷ (1 - 3) = 80. Reporting 80 where 54 is wanted, or the reverse, is the most frequent labeling error with this calculator.
Expanding the list by hand
The sequence 2, 6, 18, 54 comes from multiplying by 3 three times. Reading the last entry gives the term, 54. Adding all four gives the sum: 2 + 6 = 8, 18 + 54 = 72, and 8 + 72 = 80. The worked cases below the article follow that exact grouping, using the basic calculator for each addition. Grouping in pairs makes each step small enough to check by eye. A useful property is visible here too: the sum of the first three terms is 26, and 26 + 54 = 80, so the final term enters the total once and only once. Write the list out for any new example before you trust a formula output.
Where the exponent comes from
The first term has index 1, so it is a1 × r⁰ = a1. The second term has one multiplication, the third has two, and the nth has n - 1. That is why the exponent is n - 1 and not n. Using the exponent n gives 2 × 3⁴ = 162, which is the fifth term, and calling it the fourth overshoots by one position. The tool treats n = 1 as a special case that returns a1 directly, which avoids any ambiguity about r⁰ when the ratio is zero. Counting multiplications, not entries, is the quickest way to recover the correct exponent when you rebuild the formula from memory.
A second example with ratio 2
Start at 5, double each time, and take five terms: 5, 10, 20, 40, 80. The fifth term is 80 and the sum is 5 × (1 - 32) ÷ (1 - 2) = 155. Check the sum by adding: 5 + 10 + 20 + 40 + 80 = 155. Notice that the sum, 155, is one less than the next term would make it reach: the sixth term is 160, and 160 - 5 = 155. For a ratio of 2 the sum of the first n terms always equals the next term minus the first term. That pattern is a handy cross-check, and it is a special case of the general formula a1 × (r^n - 1) ÷ (r - 1).
A shrinking sequence and a ratio of one
Ratios below 1 give shrinking terms. Starting at 16 with ratio 0.5 and four terms gives 16, 8, 4, 2. The fourth term is 2 and the sum is 30. The sum is larger than any single term, and each added term contributes less than the one before. A ratio of exactly 1 is a special case, since the general formula divides by zero. With a1 = 7, r = 1 and n = 6, every term is 7, the term is 7 and the sum is 6 × 7 = 42. The calculator handles that case with the separate expression n × a1. Neither case changes the distinction between a term and a total.
Zero-based counting in code
Programmers often index lists from 0. If a loop variable i runs from 0 to 3, the entry produced by a1 × r^i for i = 3 is the fourth term. Entering 3 as the term count here would return the third term and its three-term sum, which is 26, not 80. Convert by adding 1 to the zero-based index before using it as n. The calculator uses one-based positions throughout, matching how most textbooks number sequences. When you compare a spreadsheet to this page, check whether the spreadsheet row labeled 0 holds the first term, since that offset is the usual reason two results disagree by exactly one position.
Where terms and sums are used
A single term applies when you want the size of one step, such as the amount in the fourth period of a process that triples each period. A sum applies when you want the cumulative amount, such as the total of all four periods. Savings plans that add a growing amount each period, repeated doubling of a payment in a classroom exercise, and the total number of nodes in a binary tree through a given level are all finite geometric sums. Naming the output with its unit or meaning on the worksheet, for example term 4 versus total through term 4, prevents the two from being swapped later.
Using the sum to recover a term
The two outputs are linked in both directions. The term at position n equals the sum through n minus the sum through n - 1. For the default list, 80 - 26 = 54, where 26 is the three-term sum 2 + 6 + 18. This gives a way to recover a term when you only have a table of running totals, such as a ledger that records cumulative amounts at the end of each period. Subtract neighboring totals and each period's own entry appears. In the other direction, the sum through n is the sum through n - 1 plus the new term. The relation holds for every ratio, including 1 and negative values, which makes it a dependable test of any pair of outputs that look inconsistent.
Limits of this exercise
The examples assume an exact, constant ratio and do not model real-world growth, interest or measurement noise. They use finite counts of terms. A finite sum has no connection to a total over infinitely many terms, which only exists when the ratio has absolute value below 1. The worked cases use small whole numbers so every step can be verified by hand, and values that grow quickly become very large after a few dozen terms, at which point display rounding may hide the last digits. With a ratio of 3, for example, the fortieth term of a list starting at 2 is 2 × 3^39, about 8.1 × 10^18, which is beyond the range where ordinary floating-point numbers hold every digit. Short lists like the four-term control are the right size for a hand check. For longer lists, compare the first few and last few terms and confirm the sum with the formula rather than adding every entry. When you report results, state the first term, the ratio and the term count together so the numbers can be reproduced.
Reproduce the checks
Four-term sequence
Open the Geometric Sequence Calculator and enter:
- First term
2- Common ratio
3- Term count
4
Expected output:
term
54sum
80The term and sum answer different questions.
First pair subtotal
Open the Basic calculator and enter:
- First number
2- Operation
add- Second number
6
Expected output:
Result
8Build the finite sum from explicit entries.
Second pair subtotal
Open the Basic calculator and enter:
- First number
18- Operation
add- Second number
54
Expected output:
Result
72The last term belongs in the sum once.
Full list total
Open the Basic calculator and enter:
- First number
8- Operation
add- Second number
72
Expected output:
Result
80The expanded list confirms the formula output.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- OpenStax ↗ · 2026-10-08