Encoding and decoding of balanced q-ary sequences using a Gray code prefix | IEEE Conference Publication | IEEE Xplore