I'm taking a mathematics course in my university that relies on past knowledge of an older course I've taken. It's been a long time, and I don't remember much from the other course.
One thing I'm struggling on is coming up with the operation tables for the elements in a field. I know they have something to do with modular arithmetic, but I'm also new to that. Anyway here's what my professor came up with for the addition table:
\begin{array}{|c|c|c|c|} \hline +& 0 & 1 & a & b \\ \hline 0 & 0 & 1 & a & b\\ \hline 1& 1 & 0 & b & a\\ \hline a& a & b & 0 & 1\\ \hline b& b & a & 1 & 0 \\ \hline \end{array}
And this for the multiplication table:
\begin{array}{|c|c|c|c|} \hline * & 0 & 1 & a & b \\ \hline 0 & 0 & 0 & 0 & 0 \\ \hline 1 & 0 & 1 & a & b \\ \hline a & 0 & a & b & 1 \\ \hline b & 0 & b & 1 & a \\ \hline \end{array}
I get that adding anything to zero is that element, and multiplying by one is also that element, and multiplying by 0 is zero. What I don't get is how to get the other answers. I'm a bit stuck and any help in the right direction would be greatly appreciated.