What is a mathematical expression for the sequence $$2,0,1,7,8,8,2,0,1,7,8,8,2,0,1,7,8,8,...$$
Like this Following it's not I want to answer $$a_{n}=\begin{cases} 2&n=6k\\ 0&n=6k+1\\ 1&n=6k+2\\ 7&n=6k+3\\ 8&n=6k+4\\ 8&n=6k+5 \end{cases}$$
such this:simple expression