I'll describe the problem with an example.
Find integers $n$ and $m$ such that $n\cdot13 + m\cdot101 = 1$.
This is the same as solving the equation $n\cdot13 \equiv 1 \pmod {101}$
I'm revising for a maths exam in a few days and it seems like a lot of the questions and examples rely on an ability to solve this type of problem. I can't seem to find a method in my notes, the solutions just get plucked out of thin air!
What is a neat way of doing it on pen and paper with a calculator?
NOTE: This is exactly the same as the Extended Euclidean algorithm. I wouldn't lie to you. Look me up on Facebook, I have a trustworthy face. Dogs love me.
What I do is write the simple continued fraction, in this case for $\frac{101}{13}.$ The convergents, including the fake one $\frac{1}{0}$ that always goes in the second position, are $$\frac{0}{1}, \; \frac{1}{0}, \; ((7)), \; \frac{7}{1}, \; ((1)), \; \frac{8}{1}, \; ((3)), \; \frac{31}{4}, \; ((3)), \; \frac{101}{13}.$$ I put the "digits" in double parentheses.
The crossed product of two consecutive convergents, a little 2 by 2 determinant, is always $\pm 1,$ as you can see from $8 \cdot 4 - 31 \cdot 1 = 1,$ then $31 \cdot 13 - 101 \cdot 4 = -1.$
So $$ -31 \cdot 13 + 4 \cdot 101 = 1.$$
See FRAC and the rest of the article, really. This method is the same information as the Euclidean algorithm but, after practice, takes little room to write. Anyway, I'm accustomed to it.