It's rather difficult to give exact rules (and prove they're right) for when it's impossible to tile a defective square without knowing the answer to begin with. Instead it's much easier to come up with (and prove) a rule that shows that certain squares are impossible to tile, but not necessarily show that all the other ones can be tiled.
One such rule is actually pretty simple. If you're going
to tile a defective square with trominos, that means that you're
going to cover all the unit squares with the trominos except
one. This gives the rule that
n2 = 3k +1 or that
This equation can be simplified slightly
Note that this doesn't prove that if
then you can tile it, just that if
then
you definetly can't. In other words we've only proven,
formula 1 is a necessary condition, but we haven't
shown it's a sufficient condition.
To show it's a sufficient condition (and prove that we've found the exact rule), it's possible to tackle the problem from the other direction: i.e. prove that whenever formula 1 holds that it's possible to tile the system.
To do this, I'm going to show how to extend a smaller
solution into a more complex solution, and thus give an
algorithm for tiling a defective square of size n
whenever
.
Specifically I'm going to
show how to extend the tiling of a defective square of
size n with the hole in the corner to a
tiling of a defective square of size n+3 with a hole
in the corner.
First, notice that it's easy to tile a 2x3 square so that there are no spaces left open:
+--+--+ | | | +--+ | | | +--+ | | | +-----+
This is important because I'm going to extend the smaller squares by adding a border that's three wide around the edges of the existing defective square in such a way that the hole remains in the corner. There are two cases: