https://numbas.mathcentre.ac.uk/question/36893/find-a-generator-matrix-for-a-code-and-decide-if-it-is-standard-ternary/embed/