Skip to content

GrayNext from BinaryWord ​

The next word in the Gray code: flip the first letter when the ones are even in number, else the letter after the first one.

BinaryWord → BinaryWordbijectioninverse

FindStat's Mp00272, a bijection. The last word of the code, with its only one last, goes to the zero word.

Called as CombinatorialMap(x, "GrayNext"). The head's page has its examples.

Live

Explore

Each element of BinaryWord at a size, and its image, applied in your browser; sizes past 6 are not offered.

Properties

Transport a statistic

Pick a statistic on BinaryWord. Its distribution over the images of BinaryWord at each size is computed, and compared with the 59 statistics on BinaryWord: those that share it are the ones the map sends it to, as far as the sizes computed show.

FindStat Mp00272

Gray next

Matched by value: our map agrees with FindStat's image on each of the 126 rows of size at most 6 we can read (0 unread; its table has 1200 rows).

BijectionGraded mapas FindStat records them, checked by FindStat's contributors.

The next element in the Gray code for binary words.
ObjectImage
01
10
0010
0100

Data from FindStat, the combinatorial statistic finder; the page at findstat.org/Mp00272 has the rest.