Introduction - If you have any usage issues, please Google them yourself
Gray code is a sequence of length 2n. No similar sequence elements, each element is n-bit string length, the adjacent element is only a difference exactly. With sub-rule strategy was designed and implemented an algorithm for arbitrary n-constructed response Gray codes.