[Tex/LaTex] How to write a permutation

math-modematrices

How to write a permutation like this ?

permutation

Best Answer

Consider using amsmath's smallmatrix:

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\[
  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.

\end{document}
Related Question