How Do I Adjust a Formula to Alternate Sequence Terms?

Click For Summary

Homework Help Overview

The discussion revolves around adjusting a formula to generate a specific sequence of terms: 0, -1, 0, 1, which repeats. Participants are exploring how to modify the formula to ensure every fourth term is negative.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss using trigonometric functions like sine and cosine to achieve the desired sequence. There are attempts to understand how to implement these functions effectively, including the use of the "mod" function. Questions arise about how to handle the zeros in the sequence and the implications of shifting terms.

Discussion Status

The discussion is active, with various approaches being proposed, including the use of sine and cosine functions. Some participants are questioning the effectiveness of certain methods and exploring how to adjust the sequence correctly. There is no clear consensus yet, but several lines of reasoning are being examined.

Contextual Notes

Participants are working within the constraints of a homework assignment, which may limit the methods they can use or the assumptions they can make about the sequence.

whatlifeforme
Messages
218
Reaction score
0

Homework Statement


I am trying to solve this problem and need help with one aspect.

Homework Equations


sequence: 0,-1,0,1 -- repeated.

The Attempt at a Solution


How do I make every 4th term of the sequence a negative number?

for instance i have: (1 + (-1)^n)/2 but i don't know how to alternative the -1 term in.
 
Last edited:
Physics news on Phys.org
whatlifeforme said:

Homework Statement


I am trying to solve this problem and need help with one aspect.

Homework Equations


sequence: 0,-1,0,1 -- repeated.

The Attempt at a Solution


How do I make every 4th term of the sequence a negative number?

for instance i have: (1 + (-1)^n)/2 but i don't know how to alternative the -1 term in.
What functions are you willing to use.

This can easily be done with sine or cosine .

You can probably come up with some solution using the "mod" function.
 
please explain how i would implement cosine or sine.
 
Try sin (n*pi/2) and add integer constants to n to shift the series.
 
then you are going 1, 0, -1, 0. (so if i put sin(pi/2 + npi/2) into the ratio, then i multiply by negative 1 the correct number of times, but what about the zeros? sinx=0 ---> v(sinx) = 0
 
whatlifeforme said:
then you are going 1, 0, -1, 0. (so if i put sin(pi/2 + npi/2) into the ratio, then i multiply by negative 1 the correct number of times, but what about the zeros? sinx=0 ---> v(sinx) = 0
So, it appears you're starting with n = 1 .

Why is it that you say that \displaystyle \ -\,\sin\left(\frac{\pi}{2}+\frac{n\pi}{2}\right)\ doesn't work ?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
2
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 51 ·
2
Replies
51
Views
5K