Consider a sequence of the form:
$x[n]=-1,-1...,1,1,...,-1,-1...,1,1... \quad n>0$
One can think of this as a square wave ($\pm1$) with a 50 % duty cycle (coming from EE).
For the simplest case of such a series i.e. $-1,+1,-1,+1,-1...$, a general equation is quite trivial ($x[n]=-1^n$).
Can we have e general equation for the other cases i.e. when there are multiple $-1$'s followed by $+1$'s ?