Since I can't comment on this (not enough reputation) I'll post this as an answer. Do you have to do it inside a math-environment? You could accomplish that in a tabular-environment easily I think.
EDIT: Because it was requested:
\documentclass{article}
\begin{document}
\begin{tabular}{rr}
&1234\\
+&321\\
+&12345\\
+&6\\
\hline
&13906
\end{tabular}
\end{document}
Please note that this doesn't calculate the results. Also please note that this puts a '+' in front of every row and not next to the \hline. For that use:
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{rr}
1234 & \\
321 & \\
12345 & \\
6 & \multirow{2}{*}{+}\\
\cline{1-1}
13906 & \\
\end{tabular}
\end{document}
array? – David Carlisle Nov 06 '16 at 19:34xloppackage you'll see that its syntax for specifying the addition is rather consice, as opposed to the very verbosearray. I was hoping a multi-value variant ofxlop, or at least a less repetitive version ofarrayexisted. – Bert Peters Nov 06 '16 at 19:39