A square piece of paper with integer dimensions $N×N$ is placed with a corner at the origin and two of its sides along the $x$- and $y$-axes. Then, we cut it up respecting the following rules:
Counting any reflections or rotations as distinct, we call $C(N)$ the number of ways to cut an $N×N$ square. For example, $C(1) = 2$ and $C(2) = 30$ (shown below).
<imgclass="img-responsive center-block"alt="ways to cut 2x2 square, counting reflections and rotations as distinct"src="https://cdn.freecodecamp.org/curriculum/project-euler/cutting-squares.gif"style="background-color: white; padding: 10px;">