Show that the polynomial $f(x)=1-2x$ has an inverse in $\Bbb Z_{16}[x]$. (Hint: Solve for $g$ from the equation $fg=1.)$
If $g(x)=ax+b$, then $f(x)g(x)=1 \iff (1-2x)(ax+b)=1$ so $$ax+b-2ax^2-2bx=-2ax^2+x(a-2b)+b=1$$
I can get the $-2ax^2$ term to disappear by setting $a=8$, but this forces $a-2b=8-2b = 2(4-b).$
Now in order to get this $x(a-2b)$ term to disappear I need $a-2b$ to be a multiple of $16$. So $$2(4-b)=16k \iff b=4-8k$$
But varying $k$ I cannot get anything useful except for example when $k=1$ I have that $b=-4$ so $$(1-2x)(8x-4)=-16x^2+16x-4 \equiv -4 \equiv 12 \pmod{16}$$
How can I get rid of this $-4$ here? Also I don't think that $\deg(g)=1$ neccessarily.