What algorithm will generate [-1,1,1,-1,1,1]
\(a_n = \dfrac{\cos\left(\pi + \dfrac{2\pi n}{3}\right)}{\left|\cos\left(\pi + \dfrac{2\pi n}{3}\right)\right|}\)