### Source: A Maze of Twisty Little Cubicles^{1}

Part 1:Generate a procedurally generated maze using the following equation:

- x^2 + 3x + 2xy + y + y^2 + c

`x`

and`y`

are the coordinates of a point and`c`

is a constant.

Count the number of bits for each point. Even is open spaces, odd is walls.

What is the shortest route from

`(0, 0)`

to`(31, 39)`

?