I am trying to solve this problem and need help with one aspect.
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.