Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: alternating sequence question


Senior Member

Status: Offline
Posts: 138
Date:
alternating sequence question
Permalink   


I thought i wasn't going to have another new question until after thanksgiving, but i did...lol, sorry to bother on thanksgiving eve. here it goes...


1. 1^2-2^2+3^2-4^2+5^2=


the answer is 15


i check your sequence section, there is a trick to a cubic alternating sequence but there isn't one that's ^2.


thanks


quincy



__________________


Senior Member

Status: Offline
Posts: 138
Date:
Permalink   

i just work with it some more and found a pattern...


1. 1^2-2^2+3^2-4^2+5^2


just focus on the last number, in this case, 5^2.


if the last number is odd, add 1 to the number, divide the result by 2, and multiply by the original number. so the last number is 5, add 1 is 6, divide 6 by 2 is 3, and multiply 3 by the original last number, 5.


the answer is 15, and if the last number is odd, it's always positive.


if the last number is even, still, focus on the last number, divide it by 2, use the result and multiply by the original number plus 1.


so...if....1^2-2^2+3^2-4^2+5^2+6^2


6 divided by 2 is 3, use 3 times (6+1), which is 21


the answer is -21, when the last number is even, it's always negative


i am pretty sure that's how it works...i've tried many times and it worked, plz tell me if i am wrong


quincy


 



__________________


Senior Member

Status: Offline
Posts: 138
Date:
Permalink   

...so the general formula is n(n+1)/2, n being the last number in the sequence, if it's even, then it's negative. just realized that...

__________________


Administrator

Status: Offline
Posts: 169
Date:
Permalink   

Quincy,

Very good. You are learning how to develop your own formulas. That was very nice and yes, you are correct, the formula for that is n(n+1)/2. You just need to watch your negative signs.

Good!

Webmaster

__________________
Webmaster


Administrator

Status: Offline
Posts: 169
Date:
Permalink   

I don't want to blow your mind or anything but here is why this works.

First, you need to understand that:

1^2 = 1
2^2 = 2(1) + 2
3^2 = 2(1) + 2(2) + 3
4^2 = 2(1) + 2(2) + 2(3) + 4
...
n^2 = 2(1) + 2(2) + 2(3) + ... + 2(n-1) + n

So keeping this in mind, lets see what happens when we subtract (n-1)^2 from n^2.

n^2 = 2(1) + 2(2) + 2(3) + ... + 2(n-1) + n
+
(n-1)^2 = -2(1) - 2(2) - 2(3) - ... - 2(n-2) - (n-1)

Notice, everything is going to cancel out except for the last terms. We will be left with n + (n-1). If we took this all the way from n^2 down to 1^2, we will be left with:

n + (n-1) + (n-2) + ... + 3 + 2 + 1 which is n(n+1)/2 or a triangular number.

Webmaster

-- Edited by webmaster at 12:47, 2004-11-29

__________________
Webmaster
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard