r/aops • • 8d ago

Arithmetic Series

Im going through thr prealg book as a self learner and some of the questions are like

Add up all positive numbers from 2 to 500. AoPS doesnt want you to list them out, but explains literally everything else but how to do this in thr first chapter.

So im wondering if theyre expecting that some kids/people would just figure it out even tho the chapter is the first???

I can do easy ones like 1 to 10, but I struggle to turn off the urge to write things down.

If its 2 to 500, but we are only adding positive numbers, how do i write a formula for that??

I know i can pair them, but when deepseek explains b-a+1, I get a little lost on where the plus one is coming from.

Also are these problems always considered exclusive unless said otherwise?

1 Upvotes

7 comments sorted by

2

u/Responsible-Hawk-551 8d ago

Ok so let me explain the concept behind this.

Goal: Find the sum

Strategy: The sum of any set of numbers is just: average of the numbers * the number of numbers

The good thing about consecutive numbers is that finding the average and the number of numbers is easy!

So the average of a set of consecutive numbers is just the average of the first and last numbers in the set (if this confuses you, let me know). So in your problem, the average would be: (2+500)/2 = 502/2 = 251

Now we have to find the number of numbers.

The number of numbers in a set of consecutive integers is b(the last number) - a(the first number) +1

You mentioned you don't get the +1, so let's walk through an explain.

How many numbers are there from 1 to 10? It is not 9, it is 10.

When we subtract 10-1, we are finding how many "jumps" it takes to get from 1 to 10. This is why 10-1 = 9, since it takes 9 jumps (also we are assuming jumps are of length one since that is just our number system, if this part confuses you I can explain more). These "jumps" are the numbers from 2-10.

So this does not include 1, since it is seen as our starting point. This is why subtraction does not include the first endpoint, so if we want to find the number of numbers, we can't just subtract 500-2, since this gives us 498, but this only includes the numbers from 3->500, not 2. So, the number of numbers is instead 498+1 = 499.

Now we have the average and the number of numbers.

So to find the sum, we just have to multiply these two together,

So the sum of all the consecutive integers from 2 to 500 is 251*499 = 125249

Let me know if this helped or if you would like more explanation!

1

u/Severe_Blackberry406 8d ago

Yes you did great and I feel bad for writing it wrong, but what if its like... "the sum of all odd integers from 1 to 250"

My brain wants to say 250, but we have to remove half. Since 250 is even, we only have a max of 1 to 249.

Since were adding a sum, if the problem is inclusive, this is where your help comes in.

I know each pair will equal 250 (1+249), (3+247) and so on, but my brain goes 'well how many pairs equal 250? 250 times what?'

So if we add 250 numbers and leave out all the even ones, then its 125 numbers, but each number gets a pair... but 125 doesnt cut evenly...

You can see I get lost here lol

1

u/Responsible-Hawk-551 7d ago

Add me on discord and I can explain it to you over a voice chat. I think I could explain it better My discord: @cookie202009

1

u/Severe_Blackberry406 7d ago

I wont forget but give me a day. Tomorrow I will tyty

1

u/Frequent-Net-8073 8d ago

Let's say the book asked you for the formula to 4 (1 to 4, not 2 to 4).
You could write out: 1 + 2 + 3 + 4 = 10

Not really sure where there is a formula

What if the book asked for the formula for 5?
You could write out: 1 + 2 + 3 + 4 + 5

If we included them in a little table, we'd get:
to 4: 1 + 2 + 3 + 4
to 5: 1 + 2 + 3 + 4 + 5
to 6: 1 + 2 + 3 + 4 + 5 + 6
to 7: 1 + 2 + 3 + 4 + 5 + 6 + 7
to 8: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8
to 9: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9
to 10: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10

What can we do with that?

We could try adding two consecutive integers, as they seem to have the same numbers (for instance, 9 + 10 has two 1s, two 2s, two 3s, etc., and then one 10). Maybe that would give us a formula?

We could try pairing them, as you said: for the add-to-4, the 1 and 4 go together, and the 2 and 3 go together.

If you look at it long enough, maybe it occurs to you that you could just add the same series of additions together.

So that would mean something like, using the 9s as an example,
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9.

Or if we're being clever:
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +
9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1

Why is that clever?

Because we can pair of 1 and 9, 2 and 8, 3 and 7, 4 and 6, 5 and 5, 6 and 4, 7 and 3, 8 and 2, 9 and 1!

So we have 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 + 10 = 2 times (the sum of 1 to 9)

Which means then means that 2 times (the sum of 1 to 9) = 9 * 10

But wait, isn't that 9, the one we were adding up to? That looks like it could give us a formula!

Let's do the example with 4:
1 + 2 + 3 + 4 + 1 + 2 + 3 + 4

1 + 2 + 3 + 4
4 + 3 + 2 + 1

5 + 5 + 5 + 5

Which is 4 * 5

Which means then means that 2 times (the sum of 1 to 4) = 4 * 5

Notice that we have 1 plus the number we are adding to, repeated that many times.

That sentence is convoluted, so we use variables to clean it up a bit.

Let n be the number we are adding up to: n = number

2 times (sum of 1 to n) = n * (n + 1)

The plus 1 comes from the first addition when we stack them (9+1 or 4+1 in our two examples).

Said another way, the sum of 1 to n is equal to: n*(n+1)/2.

Since the book wants 2 to 500, we can just calculate the sum of 1 to 500, and then subtract one.

Sum of 1 to 500: (500*501)/2 = 125,250

Sum of 2 to 500: 125,250 - 1: 125, 249.

I don't work for AoPS, so I don't speak for them, but my general feeling from having used their material to teach other students (all the way from beast academy 1 to aops honors calculus), is that what they want you to do is to play around until you see a pattern and then try to write that pattern out with variables.

Obviously you are in pre-algebra, so using "n" as a variable may not be immediately obvious to you or others, but it might be something you've seen before in school, even if it's a [space]. as in ___ x 3 = 9, what is ___.

Happy to chat through any of the above if it helps :)

1

u/InformalVermicelli42 7d ago edited 7d ago

You already get the 2+500=502, 3+499=502, ... Count how many pairs can you make.

The b-a+1 is how you count the number of integers. Like how many different numbers are there between 1 and 10? (It's not 9, you have to do +1 to include all 10 numbers in your count)

500-2+1=499 499/2=249 with 1 remainder, the middle number: 251.

(502*249)+251

ETA for "even" integers, it's the same calculation but you can only make half as many pairs.

The sum is even, so the pairs must be two evens or two odds. The middle number is odd, so it doesn't count, it just separates your pairs.

499/4=129 with 1 remainder, the middle number.

502*129