I've been playing with periodic sequences of 1s and -1s lately. This is what I came up with: \begin{eqnarray*} -(-1)^n& = &1, -1, 1, -1,\ldots\quad\textrm{(Period 2)}\\ \left(-(-1)^n\right)^{\frac{n+2}{2}} & = &1, 1, 1, -1, 1, 1, 1, -1,\ldots\quad\textrm{(Period 4)}\\ \left(\left(-(-1)^n\right)^{\frac{n+2}{2}}\right)^{\frac{n+4}{4}}& = &1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1, 1, -1, \ldots\quad\textrm{(Period 8)} \end{eqnarray*} One can easily find a similar formula for a periodic sequence with period $ 2^n, n\in\mathbb{N} $. I also found a formula: $$ (-1)^{2 \sin\left(\frac{(2n-1)\pi}{6}\right)}, $$ which gives a sequence $ -1, 1, -1, -1, 1, -1,\ldots $ with period 3.
My question is: Is there a formula for a periodic sequence of 1s and -1s with period 5? If there is, what is it?
I know about this formula for a periodic zero and one sequence with period $ N $: $$ \sum\limits_{k = 1}^N\cos\left(-2\pi\frac{n(k-1)}{N}\right)/N = 0, 0, 0, \ldots, 1. $$ However, it requires to sum up $ N $ expressions to count the $ n\textrm{th} $ term, which is why I don't like it. I would also like the formula not to contain functions like floor or modulus.