MiddleAgedMan wrote:
It would seem to be simpler to analyze the behaviour without subgrids first, although this is admittedly a different problem.
I've been trying to figure out how many different n x n "grids without subgrids" are possible, and I came across something that seemed quite counter-intuitive to me.
I'd assumed that to find, for instance, the number of possible 6x6 grids, you'd start with the number of possible permutations for the first row ( 6! = 720 ). Then you'd choose an arbitrary permutation for the first row, and work out how many possibilities that left for the second row (it seems to be 265). Then you'd arbitrarily choose on of those permutations for the second row and then move on to the third row, and so on. Finally, to find the number of possible 6x6 grids, you'd multiply together the numbers for each row ( 720 x 265 x ... etc).
But it seems that the results can be different depending on which choices you make. For example, if you have the following arrangement for the first four rows:
1 2 3 4 5 6
2 3 4 5 6 1
3 4 5 6 1 2
4 5 6 1 2 3
This leaves only two possibilities for the fifth row, namely:
5 6 1 2 3 4 ... or ...
6 1 2 3 4 5
But if you instead have the following arrangement for the first four rows:
1 2 3 4 5 6
2 1 4 3 6 5
3 4 5 6 1 2
4 3 6 5 2 1
You now have eight possibilities for the fifth row:
5 6 1 2 3 4 ... or ...
5 6 1 2 4 3 ... or ...
5 6 2 1 3 4 ... or ...
5 6 2 1 4 3 ... or ...
6 5 1 2 3 4 ... or ...
6 5 1 2 4 3 ... or ...
6 5 2 1 3 4 ... or ...
6 5 2 1 4 3
Maybe it's just me, but this was kind of unexpected, although it makes some sort of sense when I compare the two arrangements.
So does anyone know how many 6x6 grids of this type are actually possible?
(And I used a computer program to help me with this!)