It can be as easy as \(\displaystyle \L
s_n = \left\{ \begin{array}{l}
5,\quad \mbox{if n is odd}\\
1,\quad \mbox{if n is even} \\
\end{array} \right.\)
Or it can be as complicated as \(\displaystyle \L
s_n = \bmod \left[ {\left( {6n + \left( { - 1} \right)^n } \right),6} \right]\)