Fill each block with numbers 1 to the block size. Each number exactly once, and horizontally/vertically adjacent cells may never be equal.