Show Gray Codes of a Given Length

A Gray code is an encoding of numbers so that adjacent numbers have a single digit differing by 1.

    
Gray codes of length 4:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]//BaseForm=