Calculate $181^{-1} (mod\,29)$. As part of the calculation write $181 * A ≡ B (mod\,29)$ where $A \& B$ between 0 and 28.
These are my calculations:
$$181 (mod\,29) ≡ 7(mod\,29)$$
$$=>181^{-1}(mod\,29) ≡ 7^{-1} (mod\,29)$$
Because 29 is a prime number, so with fermat's theorem: $7^{28} (mod\,29) ≡ 1$
$$7^{-1} (mod\,29) ≡ 7^{27} (mod\,29) ≡ 7 * 7^{26} (mod\,29) ≡ 181 * 7^{26} (mod\,29)$$
$$A = 7^{26} (mod\,29) = 16$$
$$B = 7^{27} (mod\,29) = 25$$
It was incorrect so I'm hoping someone points out my mistake.