olymmath

ILL 1977 Problem 14

    There are 2n2^n words of length nn over the alphabet {0,1}\{0, 1\}. Prove that the following algorithm generates the sequence w0,w1,…,w2n−1w_0, w_1, \ldots, w_{2^n-1} of all these words such that any two consecutive words differ in exactly one digit.

    (1) w0=00…0w_0 = 00 \ldots 0 (nn zeros).

    (2) Suppose wm−1=a1a2…an,ai∈{0,1}w_{m-1} = a_1a_2 \ldots a_n, a_i \in \{0, 1\}. Let e(m)e(m) be the exponent of 22 in the representation of nn as a product of primes, and let j=1+e(m)j = 1 + e(m). Replace the digit aja_j in the word wm−1w_{m-1} by 1−aj1 - a_j. The obtained word is wmw_m.

    Dataset text AoPS wiki problems. Quoted with source.

    Solutions

    No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

    Add a solution

    Similar problems

    These problems have the most words in common with this statement.

    Locator ill/1977/p14 · Tag HF1BS5REK3 · Edit this page on GitHub · Keys: j next, k previous