A363381 a(n) is the number of distinct n-cell patterns that tile an n X n square.
1, 2, 1, 60, 1, 102, 1, 62714
Offset: 1
Examples
For n = 1, there is one 1-cell pattern because there is only one unit square to paint. For n = 2, there are two 2-cell patterns: +---+---+ +---+---+ +---+ | 1 | 2 | | 1 | 2 | | 1 | +---+---+ +---+---+ and +---+---+ | 3 | 4 | | 4 | +---+---+ +---+ For n = 3, there is one 3-cell pattern: +---+---+---+ | 1 | 2 | 3 | +---+---+---+ | 4 | 5 | 6 | It is +---+---+---+ +---+---+---+ | 1 | 2 | 3 | | 7 | 8 | 9 | +---+---+---+ +---+---+---+ For n = 4, there are sixty 4-cell patterns: +---+---+---+---+ | 1 | 2 | 3 | 4 | One is +---+---+---+---+ +---+---+---+---+ | 1 | 2 | 3 | 4 | | 5 | 6 | 7 | 8 | +---+---+---+---+ +---+---+---+---+ | 9 |10 |11 |12 | which is equivalent to: +---+---+---+---+ +---+ |13 |14 |15 |16 | | 1 | +---+---+---+---+ +---+ | 5 | +---+ and therefore these two are not | 9 | counted as distinct patterns. +---+ |13 | +---+ Another 4-cell pattern for a 4 X 4 square +---+---+---+---+ | x | x | y | y | +---+---+---+---+ is | z | y | x | a | +---+---+ +---+---+---+---+ | x | x | | y | z | a | x | +---+---+---+ +---+---+---+---+ | x | | a | a | z | z | +---+---+ +---+---+---+---+ | x | +---+ +---+---+ | x | x | +---+---+---+ is equivalent to | x | +---+---+ | x | +---+ +---+---+ +---+ +---+ | y | y | | z | | a | +---+---+---+ +---+---+ +---+---+ | y | | z | | a | +---+---+ +---+---+---+ +---+---+---+ | y | | z | z | | a | a | +---+ +---+---+ +---+---+ because the shapes can be created through reflection, rotation, or translation. Therefore, they are counted as one pattern. For n = 5, there is one 5-cell pattern.
Links
- Thomas Young, The 60 4-cell patterns for a 4 X 4 square.
- Thomas Young, A Java program to calculate the number of 4-cell pattern for a 4 X 4 square.
- Thomas Young, The 102 6-cell patterns for a 6 X 6 square.
Formula
a(n) >= 2 if n is composite.
For n > 1, a(n) = 1 iff n is an odd prime (conjectured: cf comments).
Extensions
a(7)-a(8) from Andrew Howroyd, Jun 04 2023
Minor edits by M. F. Hasler, Jun 15 2025
Comments