thirty-six officers problem — mathematical problem