Write a number from 1 to N into each cell so that every number appears in the grid once. There must be a path using just adjacent cells to travel between consecutive numbers from 1 to N. Also, the number in the upper-left corner of each bold cage indicates the value of a mathematical operation (addition, subtraction, multiplication, division) applied successively to all numbers in the cage, starting with the largest number for subtraction and division (e.g. 1,2,4 with subtraction is a 1- clue as 4-2-1 = 1). The operation may or may not be given in the cage, but at least one of the four operations must apply.

For automatic solution checking, the numbers must be entered in green, blue, or red.