omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / thue-morse / oracle.py
| 1 | # Independent reference for "Thue-Morse" (Python 3, standard library only). |
| 2 | # expected.txt is this program's stdout; omc never produced it. |
| 3 | for k in range(7): |
| 4 | print("".join(str(bin(i).count("1") % 2) for i in range(2 ** k))) |