In my number theory class my professor wrote that
A quadratic polynomial over $\mathbb{Z}_3$ has the form $ax^2+bx+c$, where $a \ne 0$
Then he wrote that “There are 18 Quadratic polynomials over $Z_3$”
My question is how did he get $18$?
If I have
$2$ choices for $a$
$3$ choices for $b$
$2$ choices for $c$
Then how can I have $\mathbf{18}$ Quadratic polynomials over $\mathbb{Z}_3$?
You have $2$ choices for $a$, $3$ choices for $b$, and $3$ choices for $c$. That gives you indeed $2\times3\times3=18$ possibilities.