Here is how the number of candidate solutions is figured.

Step one. Install the square tiles. 4:0, 4:1 and 4:2 have four different rotations, but 4:3, 4:4 and 4:5 have only two.

Thus there are 20 × 16 × 6 × 4 × 2 = 15,360 arrangements of the square tiles.

Step two. Install the hexagonal tiles. The 14 tiles labeled 6:0 through 6:D have 6 rotations (call them 6Rs), but 6:E and 6:F have only 3 rotations (3Rs). This leads to three cases:

The total number of hexagonal configurations is 203,369,517,711,360 + 232,422,305,955,840 + 50,842,379,427,840 = 486,634,203,095,040.

Step three. Multiply the number of square configurations by the number of hexagonal configuations: 15,360 × 486,634,203,095,040 = 7,474,701,359,539,814,400.

Home.