Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# Infinite queens
# Prints the lex-minimal infinite nonattacking queen placement
# in the first quadrant - amazingly, they form two lines with slopes
# phi and 1/phi
import sys
N = int(sys.argv[1])