Saluton! * Brian Candler; 2003-07-19, 11:38 UTC: > The characteristic of this sequence is that each number differs > from the previous one by exactly one bit. > > 0000 > 0001 > 0011 > 0010 > 0110 > 0111 > 0101 > 0100 > 1100 > > It has important practical applications: e.g. devices which detect > the rotational position of a shaft. I think it is worth to complete the series: 1101 1111 1110 1010 1011 1001 1000 .... 0000 0001 This shows that the representation of 15 and that of 0 only differ in one digit as well - this explains why a Gray code is especially useful for periodic movements like rotations. Gis, Josef 'Jupp' Schugt -- N'attribuez jamais la malice ce que l'incompñÕence explique ! -- NapolñÐn