#addition of n number
11 messages · Page 1 of 1 (latest)
- Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
- Wait patiently for a helper to come along.
- Once someone helps you, say thank you and close the thread with:
+close - Feel free to nominate the person for helper of the week in #helper-nominations
- Do not ping the mods, unless someone is breaking the rules.
- If you're happy with the help you got here, and the server overall, you can contribute financially as well:
there's a simpler formula you can use
if the addition series begins from 1, like 1+2+3+4+.... upto n, you can find the sum using n(n+1)/2
if it starts from a different number, like in your 2nd question, then you can use the same formula and then subtract the extra numbers, in this case -(1+2+3+4) or -(4+(4+1)/2)
@haughty lintel does that help?
Are you sure there's 47 pairs? Therein lies the problem. On top of that you could just do what Shroud suggested instead. That's way less errorprone
Thankyou @lapis elm @left echo
@haughty lintel has given 1 rep to @lapis elm @left echo
+close