Fill a grid divided into sections so each section contains the numbers 1 through its length without repeats.