1787 is the number of different arrangements (up to rotation and reflection) of 12 non-attacking queens on a 12x12 chessboard.