# Need Help with an Algebra(?) Formula

**URL:** <https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834>\
**Category:** Factual Questions\
**Created:** [March 3, 2016, 4:52pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834 "2016-03-03T16:52:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![FirstLoser](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@FirstLoser](https://boards.straightdope.com/u/FirstLoser)\
**Post date:** [March 3, 2016, 4:52pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/1 "2016-03-03T16:52:16Z")

</div>

(not homework…mine or anyone elses)

So, I’m doing that Christmas savings thing where you put away a dollar amount each week based on what week of the year it is.

IOW week 1, you put away $1, week 2, $2, Week 3, $3, and so on to week 52.

What I’ve been doing though is, whenever I have a few extra bucks in my pocket, I’ll stick in the envelope. Or, if for example it’s week 3 and I have a $5 bill, I’ll just put the whole $5 and mark off week 3.

Then every once in a while I’ll count the money and verify what week I’m paid up to. (we’re in the 9th week of the year and I’ve saved through week 20 already 🙂 )

I imagine there must be some formula for easily figuring out how much $ should have been saved by a certain week.

But, for the life of me, my 47 year-old brain can’t reach far enough back to my 8th grade algebra class to figure it out.

So, I’m stuck with getting out the calculator and punching in “1+2+3+4+5…” to find the answer.

Is there a formula to easy calculate the result?

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [March 3, 2016, 5:05pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/2 "2016-03-03T17:05:51Z")

</div>

> [@FirstLoser](#):
>
> So, I’m stuck with getting out the calculator and punching in “1+2+3+4+5…” to find the answer.
> 
> Is there a formula to easy calculate the result?

K \* (K+1) / 2

For example when K = 5, 1+2+3+4+5 =  
5 \* 6 / 2

(There’s a famous story that an old schoolmaster asked his misbehaving class to sum the numbers 1 + 2 + 3 + … + 100. The very young Carl Gauss produced the answer in a few seconds.)

---

<div class="post-metadata">

**Author:** ![Celidin](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Celidin](https://boards.straightdope.com/u/Celidin)\
**Post date:** [March 3, 2016, 5:07pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/3 "2016-03-03T17:07:03Z")

</div>

Here: [1 + 2 + 3 + 4 + ⋯ - Wikipedia](https://en.wikipedia.org/wiki/1_%2B_2_%2B_3_%2B_4_%2B_%E2%8B%AF)

Or – for the sum of 1:N use the formula k = n(n+1) / 2

For example for 1:5 –

k = 5 \* (6) / 2 = 30/2 = 15 = 1 + 2 + 3 + 4 + 5

G’luck!

---

<div class="post-metadata">

**Author:** ![FirstLoser](https://avatars.discourse-cdn.com/v4/letter/f/aca169/32.png) [@FirstLoser](https://boards.straightdope.com/u/FirstLoser)\
**Post date:** [March 3, 2016, 5:09pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/4 "2016-03-03T17:09:23Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [March 3, 2016, 5:52pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/5 "2016-03-03T17:52:29Z")

</div>

If you _really_ want to have a lot saved up by Christmas, try putting aside $1 the first week, $2 the second week, $4 in Week 3, $8 in Week 4, etc.

😉

---

<div class="post-metadata">

**Author:** ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)\
**Post date:** [March 3, 2016, 6:01pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/6 "2016-03-03T18:01:09Z")

</div>

> [@Thudlow\_Boink](#):
>
> If you _really_ want to have a lot saved up by Christmas, try putting aside $1 the first week, $2 the second week, $4 in Week 3, $8 in Week 4, etc.
> 
> 😉

You’re EVIL.

---

<div class="post-metadata">

**Author:** ![kayaker](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kayaker/32/441_2.png) [@kayaker](https://boards.straightdope.com/u/kayaker)\
**Post date:** [March 3, 2016, 6:05pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/7 "2016-03-03T18:05:16Z")

</div>

> [@Thudlow\_Boink](#):
>
> If you _really_ want to have a lot saved up by Christmas, try putting aside $1 the first week, $2 the second week, $4 in Week 3, $8 in Week 4, etc.
> 
> 😉

God bless us, every one!

---

<div class="post-metadata">

**Author:** ![CurtC](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@CurtC](https://boards.straightdope.com/u/CurtC)\
**Post date:** [March 3, 2016, 6:38pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/8 "2016-03-03T18:38:23Z")

</div>

Besides memorizing the formula, think of it like you’re filling up a triangle, like this:

- 

\*\*

* * *

* * *

* * *

Now what is the area of that five-row triangle? Notice that if you double it and put the two triangles together, you’d get a rectangle that is five by six.

ooooo  
\*oooo  
\*\*ooo  
\*\*\*oo  
\*\*\*\*o

* * *

And the area of a five by six rectangle is 30, so one five-row triangle is 15. It’s easy to generalize this, the sum of the first n integers is n times (n+1), all divided by 2.

---

<div class="post-metadata">

**Author:** ![sitchensis](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sitchensis/32/4892_2.png) [@sitchensis](https://boards.straightdope.com/u/sitchensis)\
**Post date:** [March 3, 2016, 7:16pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/9 "2016-03-03T19:16:10Z")

</div>

> [@CurtC](#):
>
> Besides memorizing the formula, think of it like you’re filling up a triangle, like this:
> 
> - 
> 
> \*\*
> 
> * * *
> 
> * * *
> 
> * * *
> 
> Now what is the area of that five-row triangle? Notice that if you double it and put the two triangles together, you’d get a rectangle that is five by six.
> 
> ooooo  
> \*oooo  
> \*\*ooo  
> \*\*\*oo  
> \*\*\*\*o
> 
> * * *
> 
> And the area of a five by six rectangle is 30, so one five-row triangle is 15. It’s easy to generalize this, the sum of the first n integers is n times (n+1), all divided by 2.

Okay, That’s pretty cool. I’ve never thought of it that way.

---

<div class="post-metadata">

**Author:** ![Omar\_Little](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/omar_little/32/269_2.png) [@Omar\_Little](https://boards.straightdope.com/u/Omar_Little)\
**Post date:** [March 3, 2016, 8:15pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/10 "2016-03-03T20:15:11Z")

</div>

> [@Thudlow\_Boink](#):
>
> If you _really_ want to have a lot saved up by Christmas, try putting aside $1 the first week, $2 the second week, $4 in Week 3, $8 in Week 4, etc.
> 
> 😉

4.5 quadrillion later

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [March 4, 2016, 3:20am UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/11 "2016-03-04T03:20:08Z")

</div>

> [@Thudlow\_Boink](#):
>
> If you _really_ want to have a lot saved up by Christmas, try putting aside $1 the first week, $2 the second week, $4 in Week 3, $8 in Week 4, etc.
> 
> 😉

Yes! If every atom in the universe was a printing press, each churning out dollar bills at the rate of atomic vibrations since the Big Bang . . . 😃

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [March 4, 2016, 3:26am UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/12 "2016-03-04T03:26:20Z")

</div>

> [@septimus](#):
>
> K \* (K+1) / 2
> 
> For example when K = 5, 1+2+3+4+5 =  
> 5 \* 6 / 2
> 
> (There’s a famous story that an old schoolmaster asked his misbehaving class to sum the numbers 1 + 2 + 3 + … + 100. The very young Carl Gauss produced the answer in a few seconds.)

As the story is told (at least as I heard it from my 4th grade teacher), this isn’t how Gauss did it.

Gauss’s thought process, as I heard it told, went like this: He noticed that 1+99=100. And 2+98=100. And 3+97=100. And . . . up to 49+51=100. So that’s a total of 49 hundreds. And the final number, 100 itself makes 50 hundreds. And the number 50 (not yet accounted) makes 5050.

---

<div class="post-metadata">

**Author:** ![SmartAlecCat](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@SmartAlecCat](https://boards.straightdope.com/u/SmartAlecCat)\
**Post date:** [March 4, 2016, 3:32am UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/13 "2016-03-04T03:32:01Z")

</div>

Another trick if you forget the formula – Just add the first to the last, the second to the second last and so on.

For this case:  
(1 + 52) + (2 + 51) + (3 + 50) + … =  
53 + 53 + 53 + … =  
26 \* 53  
(There will be half the total number of terms, or 26 in this case.)

---

<div class="post-metadata">

**Author:** ![Isilder](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Isilder](https://boards.straightdope.com/u/Isilder)\
**Post date:** [March 4, 2016, 3:50am UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/14 "2016-03-04T03:50:59Z")

</div>

> [@FirstLoser](#):
>
> So, I’m stuck with getting out the calculator and punching in “1+2+3+4+5…” to find the answer.
> 
> Is there a formula to easy calculate the result?

Its easy to do it in excel…

But in mathematics its called an arithmetic series.

---

<div class="post-metadata">

**Author:** ![Ranger\_Jeff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ranger_jeff/32/2065_2.png) [@Ranger\_Jeff](https://boards.straightdope.com/u/Ranger_Jeff)\
**Post date:** [March 4, 2016, 6:45am UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/15 "2016-03-04T06:45:58Z")

</div>

I seem to recall " K! " Where K, in this instance, would be 52.

---

<div class="post-metadata">

**Author:** ![Nava](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@Nava](https://boards.straightdope.com/u/Nava)\
**Post date:** [March 4, 2016, 8:05am UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/16 "2016-03-04T08:05:12Z")

</div>

> [@Ranger\_Jeff](#):
>
> I seem to recall " K! " Where K, in this instance, would be 52.

No, that’s if he was multiplying.

In this case, the quick way to do it has already been given but the formula for each value in the series would be a summatory:

n  
Ʃ x  
x=1

That means “add all values of x from 1 to n”; n would be the number of each week, from 1 to 52.

---

<div class="post-metadata">

**Author:** ![RivkahChaya](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/rivkahchaya/32/8919_2.png) [@RivkahChaya](https://boards.straightdope.com/u/RivkahChaya)\
**Post date:** [March 4, 2016, 10:59am UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/17 "2016-03-04T10:59:23Z")

</div>

$1388, if I understand the question correctly.

---

<div class="post-metadata">

**Author:** ![kaylasdad99](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kaylasdad99/32/3398_2.png) [@kaylasdad99](https://boards.straightdope.com/u/kaylasdad99)\
**Post date:** [March 4, 2016, 12:21pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/18 "2016-03-04T12:21:50Z")

</div>

Close. 26 X $53 = $1378.

---

<div class="post-metadata">

**Author:** ![kaylasdad99](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kaylasdad99/32/3398_2.png) [@kaylasdad99](https://boards.straightdope.com/u/kaylasdad99)\
**Post date:** [March 4, 2016, 12:32pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/19 "2016-03-04T12:32:24Z")

</div>

> [@Senegoid](#):
>
> As the story is told (at least as I heard it from my 4th grade teacher), this isn’t how Gauss did it.
> 
> Gauss’s thought process, as I heard it told, went like this: He noticed that 1+99=100. And 2+98=100. And 3+97=100. And . . . up to 49+51=100. So that’s a total of 49 hundreds. And the final number, 100 itself makes 50 hundreds. And the number 50 (not yet accounted) makes 5050.

That’s close to how I did it. I did 1 + 100 = 101. 2 + 99 = 101. Etc. That way I was able to multiply 101 X 50 = 5050. It was when I contemplated a series with an odd number of members (leaving one unpairable number in the center that I realized that I needed a universal formula, and came up with [x (× + 1)]/2.

---

<div class="post-metadata">

**Author:** ![CurtC](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@CurtC](https://boards.straightdope.com/u/CurtC)\
**Post date:** [March 4, 2016, 3:42pm UTC](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834/20 "2016-03-04T15:42:32Z")

</div>

Speaking of factorials, I heard a good factorial puzzle years ago.

The value of 6! is 720, which ends in one trailing zero.

The value of 12! is 479,001,600 which ends in two trailing zeroes.

How many trailing zeroes does 2016! end with?

[Next page](https://boards.straightdope.com/t/need-help-with-an-algebra-formula/747834.md?page=2)
