Solutions to the n-queens problem of placing n queens on an n-by-n chessboard