Let $C \in (\mathbb{Z}/5)^3$ be the code consisting of all elements $(x_1,x_2,x_3)$ satisfying $x_1 +3x_2 +2x_3 = 0$
Show that this is a 1-error detecting code. What is the minimal distance of $C$?
Now, as far as I know, there are $5^3 = 125$ possible combinations of $(x_1,x_2,x_3)$, and if I were to write all 125 out, calculate if they satisfy the polynomial and then creat a distance table, I could calculate the minimal distance and error detection.
This is what I know to do, but is there a simpler way?
Observe that:
The code in question is a linear code (as it is the kernel of a linear map and thus a linear subspace).
For linear codes the minimal distance is equal to the minimal weight (number of nonzero coordinates) of a nonzero codeword.
Can you have a codeword with exactly one nonzero coordinate? No (but prove it.)
Show there are codewords with only two nonzero coordinates.
Then you proved that the minimal distance is two and thus (recall why) it is one-error-detecting.