# [Tex/LaTex] How to write a permutation

math-modematrices

How to write a permutation like this ?

Consider using amsmath's smallmatrix:
\documentclass{article}
$a = \bigl(\begin{smallmatrix} 1 & 2 & 3 & \cdots & n-1 & n \\ 2 & 3 & 4 & \cdots & n & 1 \end{smallmatrix}\bigr)$
Here is another permutation $a = \bigl(\begin{smallmatrix} 1 & 2 & 3 & \cdots & n-1 & n \\ 2 & 3 & 4 & \cdots & n & 1 \end{smallmatrix}\bigr)$ in text mode.