This is LaTeX code:

[latex]
A = 
 \begin{pmatrix}
 r+1 & 3-2(r+1) \\
 r^2 & 1- 2r^2 \\
 r^{10} & 1- 2r^{10}
 \end{pmatrix}
[/latex]