In terms of n 1, 1, -1, -1, 1, 1, -1, -1,

  • Thread starter ziggie125
  • Start date
  • Tags
    Terms
In summary, the conversation discusses methods for coming up with a general formula for the sequence 1, 1, -1, -1, 1, 1, -1, -1... and suggests using a function f(n) to alternate between 1 and -1. Two possible approaches are discussed and the conversation concludes by stating that either method would work as long as f(n) can be determined for the first sequence.
  • #1
ziggie125
13
0

Homework Statement



Put in general terms 1, 1, -1, -1, 1, 1, -1, -1, ...

Homework Equations





The Attempt at a Solution



obviously (-1)^n, alternates 1, -1, 1, -1...

I have no idea how to figure this out. I thought it might have a sin function in it possibly.
Thanks a lot for your help.
 
Physics news on Phys.org
  • #2
If you defined a function f(n) such that

f(0) = 0
f(1) = 0
f(2) = 1
f(3) = 1
f(4) = 2
f(5) = 2
...

then

[tex](-1)^{f(n)}[/tex]

would work, right? So try to find a simple formula for f(n).
 
  • #3
The [itex]i^{th}[/itex] term (starting with [itex]i=1[/itex]) could be [itex]\sqrt{2}sin\{(2i-1)\frac{\pi}{4}\}[/itex], but don't use that. You could probably use something similar to generate the [itex]f(i-1)[/itex] that jbunniii has suggested.

Of course, if the first number after the dots start is 42 you're in trouble.
 
  • #4
Hey thanks a lot for the help. Either method works fine, as long as you can figure out f(n) for the first one.
 

1. What is the pattern in the given sequence?

The given sequence follows a pattern of alternating positive and negative numbers.

2. What is the value of n in the sequence?

The value of n in the sequence is 8.

3. What is the sum of the sequence?

The sum of the sequence is 0.

4. Is there a mathematical formula for this sequence?

Yes, the formula for this sequence is (-1)^n.

5. How does this sequence relate to other sequences?

This sequence is related to the alternating sign sequence and can also be seen as a binary sequence.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
576
  • Calculus and Beyond Homework Help
Replies
1
Views
514
  • Calculus and Beyond Homework Help
Replies
22
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
915
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
255
  • Calculus and Beyond Homework Help
Replies
1
Views
601
  • Calculus and Beyond Homework Help
Replies
2
Views
578
  • Calculus and Beyond Homework Help
Replies
2
Views
189
  • Calculus and Beyond Homework Help
Replies
3
Views
570
Back
Top