Hello, Obsidantion!

I was forced to list the cases . . . I found ten.

Place the first square in a corner.

Code:

*---*---*---*
| X | 1 | 2 |
|---*---*---*
| 3 | 4 | 5 |
|---*---*---*
| - | 6 | 7 |
*---*---*---*

There are 7 positions for the second square.

Place the first square on an edge.

Code:

*---*---*---*
| - | X | - |
|---*---*---*
| 1 | 2 | - |
|---*---*---*
| - | 3 | - |
*---*---*---*

There are 3 positions for the second square.

Can we generalize this for an $\displaystyle n \times n$ square?

Sorry . . . I have no idea!