SOLUTION: Hello, I would to ask the general formula of the sequence: 1 1 -1 -1 1 1 -1 -1 1 1 the pattern goes on and on. Thank you!

Algebra.Com
Question 1024880: Hello, I would to ask the general formula of the sequence:
1
1
-1
-1
1
1
-1
-1
1
1
the pattern goes on and on. Thank you!

Answer by Edwin McCravy(20056)   (Show Source): You can put this solution on YOUR website!
(-1)^(int((n-1)/4)+int((n+1)/4))

where int(x) = the greatest integer not exceeding x.
This function is often denoted floor(x).

So it could be written

(-1)^(floor((n-1)/4)+floor((n+1)/4))

Texas Instrument calculators use int(x).

Edwin

RELATED QUESTIONS

Hello tutors, i would like to ask you a question about sequence. I dont understand this... (answered by MathLover1)
here's the sequence: 1, 1/4, 1/9 ,1/16 or 1, .25, 1.111111repeating, .0625 What is the... (answered by funmath,checkley71,rcmcc)
What is the general term of the arithmetic sequence:... (answered by MathLover1)
I am trying to find the explicit formula for the following sequence: -2 1/2, -2, -1... (answered by Earlsdon,Edwin McCravy)
what would the 7th pattern be to the following sequence: 1, 1+4=5,... (answered by solver91311)
Dertemine the general formula of the following number pattern 1; 9; 25;... (answered by Boreal,MathTherapy)
Hello! I am very confused on a question for homework, and don't know where to start. It... (answered by ikleyn)
what would be the formula for 1/2,1,2,4,8.... (answered by ikleyn,Edwin McCravy)
Hello. Can you please help me? I need to make v the subject of the following formula : (answered by edjones)