Formula: Arithmetic Series Mathematical Identity
- firstTermA1: First Term A1 (numeric parameter)
- commonDiffD: Common Diff D (numeric parameter)
- termCountN: Term Count N (numeric parameter)
Find a_n = a₁ + (n − 1)d and Gauss series sum S_n = n(a₁ + a_n)/2.
Use two runs and subtract. The calculator always sums from term 1 up to term n. For terms 8 through 20 of the default sequence, find S_20 with n set to 20, then find S_7 with n set to 7, and take the second away from the first. The difference is the sum of terms 8 to 20 alone. Make sure the lower run uses the term just before your starting point.
The most likely cause is the term count. It must be a whole number from 1 to ten million, so a value such as 2.5, 0 or a negative number is rejected with a message asking you to correct it. The first term and the common difference can be any decimal, positive or negative, so they rarely trigger an error on their own.
Yes. For an input of n, the a_n line shows the final term that was included in S_n. With the defaults that is the 20th term, 81. The next term line, 85, is the first one that was left out. If you want the sum to include 85, raise n by one and the sum will grow by exactly that amount.
Both work. A step of 0.25 starting from 0.5 gives a 10th term of 2.75 and a sum of 16.25 over ten terms. A step of -3 starting from 10 gives an 8th term of -11 and a total of -4. A negative difference makes the sequence decrease, and a long enough run will push the sum below zero.
It is the average of all the terms that were added, worked out as the first term plus the last term, halved. For the default it is 43. Multiply the mean by n and you get the sum, so 43 times 20 gives the headline 860. With an odd number of terms the mean equals the middle term of the list.
Subtract each term from the one after it. If every difference is the same, the list is arithmetic and that shared gap is d. If the differences themselves grow or shrink, it is not, and this calculator will give wrong totals. A list where each term is multiplied by a fixed amount, such as doubling, is geometric and needs a different formula.
When the first and last terms are equal and opposite, every pair formed from the two ends cancels. Starting at -7 with a step of 2 over 8 terms, the list runs up to 7 and the calculator shows a sum of 0 and a mean of 0. Any symmetric run around zero behaves the same way, however many terms it has.
Write out the first two or three terms and the last one by hand, then confirm that a_n on the page matches the last term you mean. The count of terms is one more than the number of steps between the first and last. A list labelled from 0 to 19 has 20 terms, not 19, so n must be 20.
Yes. Changing a₁ shifts every term by the same amount, so the sum moves by that shift times n. With 20 terms, lowering a₁ from 5 to 3 takes 40 off and gives 820. Raising it to 7.5 adds 50 and gives 910. Changing d is not as simple, because later terms feel the change more than early ones.
Yes, the count stops at ten million terms. That is far beyond what homework, savings plans or seating problems need, and within the cap the sums are exact for whole number inputs. If you genuinely need more terms, multiply n by the first term plus the last term and halve it, using integer arithmetic so no digits are lost.
Out of the box the calculator holds the sequence 5, 9, 13, 17 and onward, climbing by 4 each time, and asks about its first 20 terms. Four numbers come back. The headline is the partial sum S_n, which is 860 for these inputs. Under it sit the 20th term itself, 81, the sequence mean of 43, and the next term after the ones you asked about, 85.
Each of those lines answers a different question, and it pays to know which one you want before you start typing. If a problem asks what the 20th seat in a row is numbered, or how much a savings deposit will be in week 20, you want a_n. If it asks how many seats there are in total, or how much has been saved over the whole run, you want S_n. The mean is the average value of the twenty terms you added. The next term is there mostly so you can carry on by hand or check that the pattern lines up with what you expected.
A quick way to sanity check the headline: the mean multiplied by the number of terms is always the sum. Here 43 times 20 is 860, so the two lines agree with each other. If you ever copy figures off the page into homework or a spreadsheet, that one multiplication catches most transcription slips.
The formula on the page, S_n = (n / 2) × (2a₁ + (n - 1)d), looks heavier than the idea behind it. Write the twenty terms in a row, then write them again in reverse underneath. The first column pairs 5 with 81. The second pairs 9 with 77. The third pairs 13 with 73. Every column adds to 86, because as one row climbs by 4 the other falls by 4.
There are 20 columns, so the two rows together come to 20 times 86. That counts the sequence twice, so halve it, and you are back at 860. This is the trick usually told about the young Gauss adding 1 to 100 in his head, and it works for any arithmetic progression, including ones with fractions or negative steps.
The pairing also explains why the mean line is simply (a₁ + a_n)/2. In an evenly spaced list the average sits exactly halfway between the ends. With an odd number of terms that halfway value is the middle term itself. With an even number, as in the default, it falls between the two middle terms: the 10th term is 41 and the 11th is 45, and 43 sits between them.
The page's own comparison presets move only the first term. Dropping a₁ from 5 to 3 gives a sum of 820. Raising it to 7.5 gives 910. The pattern is easy to see once you notice that changing a₁ slides every one of the twenty terms by the same amount. Lowering it by 2 takes 2 off each term, so 40 off the total. Raising it by 2.5 adds 2.5 to each term, so 50 onto the total. The 20th term moves by the same amount as the first, from 81 to 79 or to 83.5.
The common difference behaves differently because its effect grows along the sequence. The first term does not feel it at all, the second feels it once, and the 20th feels it nineteen times. Set d to 0 and every term is 5, so the sum is just 20 times 5, which the calculator shows as 100, with the nth term, the mean and the next term all equal to 5. That flat case is a useful check that you have the inputs in the right boxes.
So if you are adjusting a plan, such as a training schedule that adds a fixed number of minutes each week, nudging the starting value changes the total in a straight line, while nudging the weekly increase changes it much more steeply over a long run.
The third input is labelled as the term index and the number of terms, which is the same thing here: the calculator always sums from the first term up to and including term n. It does not handle a sum that starts part way through the sequence. If you need terms 8 to 20, run it once with n = 20, once with n = 7, and subtract the second sum from the first.
Because n counts terms, it only makes sense as a positive whole number, and the calculator insists on one. Type 2.5, 0 or a negative count and the page shows an input error asking for a whole number from 1 to ten million instead of producing a sum. That is deliberate: there is no such thing as two and a half terms, and quietly rounding would hide a typing slip. The smallest valid case, n = 1, returns the first term on its own, 5 for the default, with the next term shown as 9.
The most common real mistake is off by one rather than a fraction. If a staircase has steps numbered from 0, or a payment schedule starts in month zero, the count of terms is one more than the last label. Write the first two or three terms out by hand and confirm that the calculator's a_n matches the last one you actually mean.
Nothing stops d from being negative, and decreasing sequences are where intuition goes wrong most often. Try a first term of 10, a difference of -3 and 8 terms. The list runs 10, 7, 4, 1, -2, -5, -8, -11. The calculator gives the 8th term as -11 and the sum as -4, with a mean of -0.5 and a next term of -14.
That small negative total surprises people because the first few terms are clearly positive. The pairing argument shows why it happens: the first and last terms add to -1, there are four such pairs, and four times -1 is -4.
A sequence can even sum to exactly zero. Start at -7, step by 2, and take 8 terms: -7, -5, -3, -1, 1, 3, 5, 7. The calculator returns a last term of 7, a sum of 0 and a mean of 0. Whenever the first and last terms are equal and opposite, the sum vanishes, no matter how many terms sit between them. If you are modelling something like a balance that falls and then recovers at a steady rate, this is the case to recognise.
The first term and the difference both accept decimals; only n has to be a whole number. A first term of 0.5 with a step of 0.25 over 10 terms gives a 10th term of 2.75, a sum of 16.25 and a mean of 1.625. The next term is 3. These are exact because quarters can be represented exactly, so nothing has been rounded away.
A classic pattern to test the calculator with is the odd numbers. Set a₁ to 1, d to 2 and n to 10. The 10th odd number is 19, and the sum of the first ten odd numbers is 100, which is 10 squared. The sum of the first n odd numbers is always n squared, and it is a good way to convince yourself the formula is doing what you think. The counting numbers work too: with a₁ = 1, d = 1 and n = 100 the 100th term is 100 and the mean is 50.5, which is the Gauss problem on the page.
The calculator only runs forwards. You give it a₁, d and n and it gives you a_n and S_n. Textbook problems often go the other way: they give the first term, the last term and the sum, and ask how many terms there are. The tool will not solve for n directly, but the algebra is short.
If you know a₁, a_n and d, the number of terms is n = (a_n - a₁)/d + 1. For the default, (81 - 5)/4 + 1 is 20. If you know a₁, a_n and the sum, then n = 2S_n / (a₁ + a_n). For the default that is twice 860 divided by 86, which is 20 again. Once you have a candidate n, type it in and confirm that the page reproduces the numbers you started from.
To find the difference from two known terms, divide the gap between them by the gap between their positions. If the 1st term is 5 and the 20th is 81, the gap of 76 spread over 19 steps is 4. A result that is not a clean number may still be right, but it is also a sign to recheck which positions the two terms really occupy.
The term count is capped at ten million, which covers any classroom or everyday problem with a wide margin. Within that range the results come out exact for whole number inputs. At the cap with the default first term and step, the last term is a little over forty million and the sum runs into the hundreds of trillions, and the displayed figures still match the formula n(a₁ + a_n)/2 worked out by hand. For a longer run, use that formula directly with integer arithmetic or a computer algebra tool.
For realistic problems, such as seats in a theatre whose rows grow by a fixed number, deposits that rise by a set amount each month, or the distance covered by something that speeds up evenly at each tick, the results are exact or limited only by the decimals you typed. The main risks are human ones: the wrong n, a difference typed with the wrong sign, or reading a_n when the question wanted S_n.