This is LaTeX code:
[latex]
n=\overline{a_{3k}a_{3k-1}a_{3k-2}\ldots a_3a_2a_1}
[/latex]