Checking an alternating geometric sequence
A negative ratio flips the sign of every term. This guide follows the partial sums of 3, -6, 12, -24 and shows why the totals swing instead of climbing steadily.
What a negative ratio does to the terms
Multiplying by -2 changes the sign and doubles the size. Starting at 3, the terms are 3, -6, 12, -24, 48, -96. Odd positions are positive and even positions are negative, as long as the first term is positive. In the formula a1 × r^(n-1), the sign of the result follows the parity of the exponent: a negative ratio raised to an even power is positive, and raised to an odd power is negative. The third term has exponent 2, so it is 3 × 4 = 12. The fourth has exponent 3, so it is 3 × (-8) = -24. Checking the sign first often catches an error before any magnitude is computed.
Partial sums that rise and fall
A partial sum adds terms from the start up to a chosen position. For this sequence, the first term alone is 3. The first two sum to -3, the first three to 9, the first four to -15, the first five to 33 and the first six to -63. The totals alternate in sign and their size grows, because each new term is larger than the whole sum before it. That makes the running total a poor stand-in for any single term. The calculator reports both the term and the sum at position n, and the worked cases check n = 3 and n = 4, where the sum is 9 and then -15.
Reconciling the sum and the term
The partial sum at n = 4 equals the partial sum at n = 3 plus the fourth term. Here 9 + (-24) = -15. The case with the basic calculator performs exactly that addition. This reconciliation is the best check available, because it uses outputs of the sequence tool at two positions and one arithmetic step. A frequent confusion is to read -24 as the four-term total. The term at position four is -24, and the total through position four is -15. The same relationship holds at any position, so the formula output at n and at n - 1 should always differ by the term at n.
The closed-form sum with a negative ratio
The sum formula a1 × (1 - r^n) ÷ (1 - r) works for negative r. With a1 = 3 and r = -2, the denominator is 1 - (-2) = 3, so the sum simplifies to 1 - (-2)^n. At n = 3, (-2)^3 = -8 and the sum is 3 × (1 + 8) ÷ 3 = 9. At n = 4, (-2)^4 = 16 and the sum is 3 × (1 - 16) ÷ 3 = -15. At n = 5, the sum is 3 × (1 + 32) ÷ 3 = 33, and at n = 6 it is 3 × (1 - 64) ÷ 3 = -63. Parentheses matter in the exponent: (-2)^4 is 16, while -2^4 is read by most conventions as -16.
A ratio between -1 and 0
When the ratio is a negative fraction, the terms shrink while they alternate. With a1 = 3 and r = -0.5, the first four terms are 3, -1.5, 0.75, -0.375. The four-term sum is 1.875, and the term at position four is -0.375. The partial sums 3, 1.5, 2.25, 1.875 swing above and below a central value and the swings get smaller. That central value is 2, which equals a1 ÷ (1 - r) = 3 ÷ 1.5. The calculator computes finite sums only, but this example shows the shape of a sequence whose totals settle. Compare it with the ratio of -2, where the swings widen with each term.
Finite sums versus infinite sums
Both controls on this page ask for a finite number of terms. The formula for an infinite total, a1 ÷ (1 - r), applies only when the absolute value of r is below 1. For r = -2 the absolute value is 2, the terms grow in size, and no infinite total exists. Reading the four-term sum of -15 as a limit would be a mistake. The same caution applies to a ratio of -1: the terms are 3, -3, 3, -3, and the partial sums alternate between 3 and 0 forever without settling. The finite-sum output is correct for the number of terms requested and says nothing about continuing the pattern.
Where alternating sequences show up
Alternating geometric patterns appear in physical oscillations that reverse direction with each step, in repeated sign changes of a cash flow, and in the expansion of expressions like (1 - x)^(-1) with negative x. In a classroom, they are a clean test for sign handling in code. A program that uses a stored running total will pass a positive-ratio test and still fail with a negative ratio if it applies the sign incorrectly. Using both a three-term and a four-term case, as in the worked cases here, checks both parities of the term count in one pass.
Checking signs without a calculator
Two mental checks catch most sign errors on an alternating sequence. First, the sign of the term at position n depends only on whether n - 1 is even or odd when the ratio is negative. Positions 1, 3 and 5 keep the sign of the first term, and positions 2, 4 and 6 carry the opposite sign. Second, the sign of the partial sum follows the last term whenever the ratio is below -1, because each new term is larger in size than everything before it combined. At n = 4 the last term is -24 and the earlier terms total 9, so the sum must be negative. At n = 3 the last term is 12 and the earlier terms total -3, so the sum must be positive. Both checks agree with the outputs 9 and -15. With a ratio between -1 and 0 the rule changes, because the last term is smaller than the earlier total.
Common slips and limits
Typical errors include dropping the minus sign when typing the ratio, treating the ratio as 2 and the term sign as separate, and computing the exponent as n instead of n - 1. Inputs here are whole numbers with a stated ratio, and the model assumes an exact multiplication each step. The examples describe a mathematical sequence and do not model physical oscillation or any financial result. For large n the magnitude of the terms with a ratio of -2 doubles each step, so a count of 20 already produces terms above one million in size. At n = 20 the term is 3 × (-2)^19, which is about -1.57 million. Keep the first term, ratio and count on the worksheet together with the sign convention, and re-enter the ratio with its minus sign when a result looks wrong. A single dropped sign turns the alternating totals 9 and -15 into the steady totals 21 and 45, a different sequence.
Reproduce the checks
Three-term partial sum
Open the Geometric Sequence Calculator and enter:
- First term
3- Common ratio
-2- Term count
3
Expected output:
term
12sum
9The third term has positive sign.
Four-term partial sum
Open the Geometric Sequence Calculator and enter:
- First term
3- Common ratio
-2- Term count
4
Expected output:
term
-24sum
-15The added negative term moves the total below zero.
Update the partial sum
Open the Basic calculator and enter:
- First number
9- Operation
add- Second number
-24
Expected output:
Result
-15Adding the fourth term reconciles the two totals.
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