Real Sequence/Examples/(1 + (-1)^n) / 2

Examples of Real Sequence
The real sequence whose first few terms are:


 * $1, 0, 1, 0, \dotsc$

can be defined by the formula:
 * $S = \sequence {\dfrac {1 + \paren {-1}^n} 2}_{n \mathop \ge 0}$