The beginning is some version of the Extended Euclidean Algorithm...
$$ 1729 \cdot 82 - 801 \cdot 177 = 1 $$
$$ 1729 \cdot 82 \equiv 1 \pmod{801} $$
$$ 1729 \cdot 82 \equiv 0 \pmod{1729} $$
$$ 801 \cdot (-177) \equiv 1 \pmod{1729} $$
$$ 801 \cdot (-177) \equiv 0 \pmod{801} $$
What numbers $R,S$ ought we to choose in
$$ 1729 \cdot 82 R - 801 \cdot 177 S \; ? $$
I got a large negative number. You are free to add or subtract any multiple of $801 \cdot 1729 = 1384929$ to get an answer that is positive and smaller than $1384929.$ Comes out clean and obviously intentional.
=================================================================
$$ \gcd( 1729, 801 ) = ??? $$
$$ \frac{ 1729 }{ 801 } = 2 + \frac{ 127 }{ 801 } $$
$$ \frac{ 801 }{ 127 } = 6 + \frac{ 39 }{ 127 } $$
$$ \frac{ 127 }{ 39 } = 3 + \frac{ 10 }{ 39 } $$
$$ \frac{ 39 }{ 10 } = 3 + \frac{ 9 }{ 10 } $$
$$ \frac{ 10 }{ 9 } = 1 + \frac{ 1 }{ 9 } $$
$$ \frac{ 9 }{ 1 } = 9 + \frac{ 0 }{ 1 } $$
Simple continued fraction tableau:
$$
\begin{array}{cccccccccccccc}
& & 2 & & 6 & & 3 & & 3 & & 1 & & 9 & \\
\frac{ 0 }{ 1 } & \frac{ 1 }{ 0 } & & \frac{ 2 }{ 1 } & & \frac{ 13 }{ 6 } & & \frac{ 41 }{ 19 } & & \frac{ 136 }{ 63 } & & \frac{ 177 }{ 82 } & & \frac{ 1729 }{ 801 }
\end{array}
$$
$$ $$
$$
\begin{array}{ccc}
\frac{ 1 }{ 0 } & \mbox{digit} & 2 \\
\frac{ 2 }{ 1 } & \mbox{digit} & 6 \\
\frac{ 13 }{ 6 } & \mbox{digit} & 3 \\
\frac{ 41 }{ 19 } & \mbox{digit} & 3 \\
\frac{ 136 }{ 63 } & \mbox{digit} & 1 \\
\frac{ 177 }{ 82 } & \mbox{digit} & 9 \\
\frac{ 1729 }{ 801 } & \mbox{digit} & 0 \\
\end{array}
$$
$$ 1729 \cdot 82 - 801 \cdot 177 = 1 $$