30,031 views
45 votes
45 votes
Compute 1 + 2 + 3 +....+ 99 + 100 + 99 + 98 +...+ 3 + 2 + 1

User Baruchiro
by
2.9k points

1 Answer

18 votes
18 votes

Answer:

10000

Explanation:

When computing a consecutive sum of integers with a difference of 1.

Use gauss's formula of (n/2)(first number + last number).

with n being the # of integers.

Since it is ascending and descending, it can be broken down into 2 sequences:

1 + 2 + 3 + ... + 99 and 1 + 2 + 3 + ... + 100.

Once each is calculated, add them up to find the value.

So:

1 + 2 + 3 + ... + 99 = (99/2)(100) = 4950.

1 + 2 + 3 + ... + 100 = (100/2)(101) = 5050.

4950 + 5050 = 10000

User Ryandlf
by
3.0k points