The inverse of a number $b$ in $Z_n$ is a number $a$ such that $ab mod n === 1$

ie in $Z_11$, 3 is the inverse of 4 as 3*4 = 12 = 1 (mod 11)