https://numbas.mathcentre.ac.uk/question/36899/lexicographic-parity-check-matrix-ternary-5-ary-or-7-ary/embed/