How Do I Adjust a Formula to Alternate Sequence Terms?

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 ?
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top