I'm a total noob with LaTeX and I keep getting an error on the last line of this code:
\begin{align*}
14038 \pmod{1529} = 277 & \mbox{as 14038 = 1529\cdot 9 + 277}\\
& 1529 \pmod{277} = 144 & \mbox{as 1529 = 277\cdot 5 + 144} \\
& 277 \pmod{144} = 133 & \mbox{as 277 = 144\cdot 1 + 133} \\
& 144 \pmod{133} = 11 & \mbox{as 144 = 133\cdot 11 + 1} \\
& 133 \pmod{11} = 1 & \mbox{as 133 = 11\cdot 12 + 1} \\
& 11 \pmod{1} = 0 & \mbox{as 11 = 1\cdot 11 + 0}
\end{align*}
I get an error saying "Missing $ inserted. Extra }, or missing $. Missing } inserted". I checked through it, and I'm pretty sure I don't have any stray curly brackets or $ symbols. I've used align before in the PDF multiple times before, formatted in the same way, and it's been fine with that. I don't know what's wrong here.
EDIT - ANSWERED Thanks for your answers! I'm really unfamiliar with overleaf so it probably would've taken me ages on my own to find out that mbox was text-formatting. Thank you for being patient with me :)