How can we calculate the inverse of a modulo function, now I have a problem given me $f(n)=(18n+18)\mod29$, need find inverse of $f(n)$ ? how is the process to do it?
2026-03-29 05:43:12.1774762992
Inverse modulo function
5k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
You have to check that $\gcd(18,29)=1$. As $29$ is prime, this is obvious. Hence this is a bijection.
Using our friend Wolfram alpha you solve the equation: $$ 18y + 18 = x \mod 29 \\ y+1 = 21x \mod 29 \\ y = 21x+28\mod 29 $$ and you find: $$ f^{-1}(x) = 21x+28 $$