Problem 18E

Find a formula for the general term $a_{n}$ of the sequence, assuming that the pattern of the first few terms continues.

$\{1,0,-1,0,1,0,-1,0, \ldots\}$

Step-by-Step Solution