I've been reading the documentation and some other previous questions but I don't find what I am doing bad in my definition of the newcolumntype
A
in order not to write a double &
when writing the columns in the array.
\documentclass{amsart}
\usepackage{amsthm}
\usepackage[main=spanish]{babel}
\usepackage{array}
\theoremstyle{definition} \newtheorem{ejercicio}{Ejercicio}
\newcolumntype{A}{>{\ado~}r}
\newcounter{ado}[ejercicio]
\newcommand*{\ado}
{\stepcounter{ado} \makebox[2em][r]{\alph{ado}})~}
\begin{document}
\begin{ejercicio} Un ejercicio. %this one has the desired aspect
\[
\begin{array}{rlrlrl}
\ado & 2^1= & \ado & 2^2= & \ado & 2^3=
\end{array}
\]
\end{ejercicio}
\begin{ejercicio} Otro ejercicio. %the one to be fixed
\[
\begin{array}{AlAlAl}
2^1= && 2^2= && 2^3=
\end{array}
\]
\end{ejercicio}
\end{document}