#How to find the sum of all numbers from 1 number to another

146 messages · Page 1 of 1 (latest)

small gorge
#

For instance the sum of all positive natural numbers from 3 to 1000

daring fulcrumBOT
#
  1. 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.
  2. Wait patiently for a helper to come along.
  3. Once someone helps you, say thank you and close the thread with:
    +close
    
  4. Feel free to nominate the person for helper of the week in #helper-nominations
  5. Do not ping the mods, unless someone is breaking the rules. If there is a conflict amongst multiple helpers feel free to ping “Helper Mod”
  6. If you're happy with the help you got here, and the server overall, you can contribute financially as well:
small gorge
#

3 + 4 + 5 + 6 + 7 + ..... + 999 + 1000

compact sapphire
#

search up arithmetic series

small gorge
#

for certain numbers

#

what to do then

foggy coral
small gorge
#

(2 + 499)/2

#

x 499

#

Gives a decimal answer

foggy coral
#

$S=\frac{n}{2}(2a+(n-1)d)$

nova ridgeBOT
#

;( | 追放された興奮

small gorge
#

then wtf does this do

#

why are there two different equations

foggy coral
#

are you, like, calculating it right

#

that too

small gorge
#

yeah

#

501/2

#

is a decimal

foggy coral
#

it works

small gorge
#

Ok

foggy coral
#

where are you getting 501

small gorge
#

a1 = 2

#

an = 499

#

do that

foggy coral
#

multiply by n?

small gorge
#

yeah

foggy coral
#

which is an even number?

small gorge
#

(2 + 499)/2

#

x 499

#

is a decimal

foggy coral
#

which produces an integer result?

#

n=498

small gorge
#

No

#

It equals 499

#

Not 498

foggy coral
#

are you okay.

small gorge
#

Stop changing my values to gaslight me

foggy coral
#

count your numbers again.

#

i will calculate it right now

small gorge
#

n = 499

#

in this case

#

do it

foggy coral
#

,w 2+3+4...499

foggy coral
#

...

#

,w \sum_{n=2}^{499} n

#

i told you.

#

it’s an integer.

#

count your numbers properly

small gorge
foggy coral
#

when you have a sequence starting from a and ending at b, the amount of numbers in the sequence is b-a+1

small gorge
#

NO not

#

3 - 499

#

2 - 499

#
  • as in to
#

"-" as in to

foggy coral
#

okay

#

still

small gorge
#

"Still" thats a different value

foggy coral
small gorge
#

How do I use this

#

Because its giving me a decimal answer and it shouldnt

small gorge
#

Im trying to find the sum of 2 to 499

foggy coral
#

oh my

small gorge
#

2 + 3 + .... + 499

foggy coral
#

did i not explain this already?

small gorge
#

a1 = 2

an = 499

foggy coral
small gorge
#

((2+499)/2) x 499 = 124999.5

foggy coral
#

dude.

small gorge
foggy coral
#

I quite literally just provided a method to count it

small gorge
#

Why are you being a jerk

foggy coral
#

if it starts and a and ends at b, the amount of terms in the sequence is b-a+1

#

so if it starts at 2 and ends at 499, what is the amount of terms?

#

@small gorge

foggy coral
#

fine, i’ll put it better

#

the amount of terms is $a_n-a_1+1$

nova ridgeBOT
#

;( | 追放された興奮

solid hemlock
#

sum of n from n = a to n= b, where 0<a<b, a,b are integers.

#

This is equal to sum of n from n = 1 to n = b which b(b+1)/2 but you subtract the sum of n from n =1 to n = a which is a(a+1)/2. So, b(b+1)/2 - a(a+1)/2, when factoring out difference of two squares is (a+b+1)(b-a)/2

celest marsh
#

dont randomly drop a solution when op has already made progress

#

this confuses people

celest marsh
#

how many numbers are there from 1 to 3 inclusive?

#

are there 3-1 = 2?

compact sapphire
#

it should be (2+499) * 498 /2

celest marsh
#

mistake is not knowing number of numbers thing

#

which has been explained but idk if op got it

compact sapphire
# celest marsh

my mistake; i did not see that - but there are 498 numbers

#

ok

pure arrow
celest marsh
#

its the sum of integers lol

pure arrow
#

Or, at least, you make a good point, it's always an integer for a series of integers.

pure arrow
foggy coral
#

i just went to sleep cause i had stuff to do today

true imp
#

So the amount of terms is
$a_n-a_1+1$
We can express the formula of the summation of terms as:
$\frac{a_n-a_1+1}{2}\cdot(a_1+a_n)$

nova ridgeBOT
#

denzio321

true imp
#

So if $a_n-a_1+1$ is not divisble by 2

nova ridgeBOT
#

denzio321

true imp
#

Then $a_n-a_1$ is divisble by 2

nova ridgeBOT
#

denzio321

true imp
#

So then $a_n+a_1$ is divisble by 2

nova ridgeBOT
#

denzio321

true imp
pure arrow
#

The amount of terms is... n.

foggy coral
#

(and also OP doesn’t understand that)

#

for some reason

pure arrow
#

And considering before that we were talking about the sum of an arbitrary algebraic series...

foggy coral
pure arrow
foggy coral
#

it’s whatever though

foggy coral
pure arrow
foggy coral
#

i get that n=length, but OP things that n=a_n

#

or some other number

#

it’s not really incorrect when OP’s fundamental understanding is also incorrect

pure arrow
#

The problem is a lack of specificity. That's the correct way to count the number of integers in a bounded interval, but not to count the number of terms in an algebraic sequence.

foggy coral
#

i guess so

#

still i’m trying to fix an underlying problem

pure arrow
#

And I think the way to do that is to be more specific.

pure arrow
#

Half the reason OP is confused seems to be because they don't know how to draw these kinds of distinctions.

turbid lynxBOT
#

@small gorge

<:HelpIcon:1304095958283321385>| Help Reminder

Hello sdasdwa222, this is a friendly reminder that your thread has been inactive for more than 24 hours. If you no longer need assistance, please consider closing the thread using the +close command.