In the sequence: 2,5,3, starting with the third, each term is equal to the term preceeding it minus the term preceeding that one. What is the sum of the first 112 terms of this sequence?
2,5,3...........???
is it a fibanocci sequence
Sorta, its 2+5-3
Then, 5+3-4
its prolly a telescoping sum
Yup
a1+a2+a3+(a3-a2)+(a4-a3)+(a5-a4) + ... +(a111 - a110) ^ ^ ^ ^ ^ ^ ^ ^ looks to me like it would amount to: a1+a3+a111 if you can determine those terms
Okay So 2+3+x
yep, only problem is in determining an explicit formula to find the nth term with :/
we could write a program to follow the rules set out to find it recurssively
Okay like in sum notation?
i was thinking more like in "javascript" :)
Well I have a TI-84 + so I kinda want a program for it
i never learnt how to program those fancy things :/
I can but I need the formula :P
<html> <body> <input type=text id="answer"><br> <input type=button value="Calculate a111" onClick="qwe()"> </body> <script language=javascript> var a=new Array() a[1]=2; a[2]=5; a[3]=3 function qwe() { for (x = 4; x < 112; x=x+1) { a[x] = a[x-1] - a[x-2] } document.getElementById("answer").value=a[111] } </script> </html> might do the trick
OMG
I'll give you a medal for that :P
lol, lets see if it works :) copy and past it into a textfile named, i dunno .... tryIt.html
K
I did it but what do I type into the box?
teh box is just a display; the button runs thru the recurrsive parts and stores each value into an array for calculating; all we need is the a111 value; hit the button and it should give you 3 in the box
Okay but how did you learn how use javascript?
heres a better version of it that shows you the values as it calculates; i learned it by going online and reading about it; there are sites that have all sorts of information that arent part of facebook, and have nothing to do with porn .... lol
after the first nine terms it looks like a pattern would have become apparent 2 5 3 -2 -5 -3 2 5 3 etc ....
Join our real-time social learning platform and learn together with your friends!