0=\sum_{i=1}^{n}{(x_{i+1}-x_{i})} \equiv \sum_{i=1}^{n}{(x_{i+1}-x_{i})^2}~(mod~2)