 One such type of Gray code is the "n"-ary Gray code, also known as a non-Boolean Gray code.As the name implies, this type of Gray code uses non-Boolean values in its encodings.For example, a 3-ary (ternary) Gray code would use the values {0, 1, 2}.