So I'm trying to find the inverse of $24$ in $\mathbb{Z}_{35}$. I know this means that there must be some $ab \equiv 1 \pmod{n}$ But when I try this:
$24b \equiv 1 \pmod{35}$
$1 = 35*0 + 1$
$24b = 1$
$b = 1/24$
But this isn't an integer, so I'm not sure what I'm doing wrong here.