Suppose we have N identical 1x1 tiles to place on an MxM chess board:
Example:
N = 5, M = 4
.X..
X...
..X.
.XX.
We call this a configuration. (Clearly there are $M^2$ choose $N$ configurations.)
We say two configurations, A and B, are similar if by rotating and/or translating all the tiles of A together they can be placed in B configuration.
For example the following three configurations are similar:
....
.XXX
..X.
..X.
XXX.
.X..
.X..
....
....
X...
XXX.
X...
A configuration class is a maximal set of configurations that are similar to each other. (Clearly the configuration class of any configuration is simply the closure under rotation and translation. Further each configration class is obviously disjoint from every other.)
How many configuration classes are there in terms of N and M?
Any ideas for how to approach this?
(Background: I'm looking at the Game Of Life, and thinking about how to eliminate searching starting configurations that result in similar progressions)
My solution to the problem requires some basic group theory; the group $D_4$ of symmetries of the square, group action, and Burnside's lemma. If you are not familiar with these, I recommend you take an introduction to group theory, or at least look up Burnside's lemma.
Let $X$ denote the set of all configurations of $N$ tiles on an $M\times M$ grid, so that $|X|=\binom{M^2}{N}$. Then $D_4$ acts naturally on $X$, and your configuration classes are what then called orbits under this action. We denote the elements of $D_4$ as follows: $$D_4=\{\operatorname{id},\rho,\rho^2,\rho^3,\sigma,\sigma\rho,\sigma\rho^2,\sigma\rho^3\},$$ where $\rho$ denotes the rotation over $\tfrac{\pi}{2}$ radians, and $\sigma$ the reflection in whichever diagonal you prefer. Then $\rho^2$ and $\rho^3$ are the rotations over $\pi$ and $-\tfrac{\pi}{2}$ radians, respectively, $\sigma\rho^2$ is the reflection in the other diagonal. The remaining two reflections are $\sigma\rho$ and $\sigma\rho^3$, and $\operatorname{id}$ is the identity, i.e. "doing nothing". We can count the number of configuration classes or orbits (denoted by $|X/D_4|$) with Burnside's lemma, which tells us that $$|X/D_4|=\frac{1}{|D_4|}\sum_{x\in D_4}|X^x|,$$ where $X^x$ denotes the set of fixed points of $x$. That is, $|X^x|$ is the number of configurations that is invariant under $x$. Note that $|D_4|=8$.
Every configuration is invariant under $\operatorname{id}$, so $|X^{\operatorname{id}}|=\binom{M^2}{N}$. Computing $|X^x|$ for the other $x\in D_4$ is more work:
First, let's compute $|X^{\rho}|$. If $M$ is even, then the $M\times M$ grid can be divided into four $\tfrac{M}{2}\times\tfrac{M}{2}$ squares. If a configuration is invariant under $\rho$, then the configuration in the top-right $\tfrac{M}{2}\times\tfrac{M}{2}$ square determines the entire configuration. Conversely, any configuration of the top-right $\tfrac{M}{2}\times\tfrac{M}{2}$ square determines a unique configuration that is invariant under $\rho$, and in particular the number of tiles must be a multiple of $4$, i.e. we must have $N\equiv0\pmod4$. We conclude that $$|X^{\rho}|=\left\{\begin{array}{cc}\tbinom{M^2/4}{N/4}&\text{ if }N\equiv0\pmod4\\0&\text{ otherwise}\end{array}\right.,$$ if $M$ is even. If $M$ is odd, then the $M\times M$ grid can be divided into four $\tfrac{M-1}{2}\times\frac{M+1}{2}$ rectangles, leavin a single tile in the center. Again, any configuration is invariant under $\rho$ is determined by the configuration of the top-right rectangle, and any configuration of the top-right rectangle determines a configuration invariant under $\rho$. In particular either $N\equiv0\pmod4$ or $N\equiv1\pmod4$, depending on whether the center tile is used or not. We conclude that $$|X^{\rho}|=\left\{\begin{array}{cc}\tbinom{(M^2-1)/4}{N/4}&\text{ if }N\equiv0\pmod4\\\tbinom{(M^2-1)/4}{(N-1)/4}&\text{ if }N\equiv1\pmod4\\0&\text{ otherwise}\end{array}\right.,$$ if $M$ is odd. I will leave the values of $|X^x|$ for the other $x\in D_4$ as an exercise, but here are some expressions for them in case $M$ is even: \begin{eqnarray*} |X^{\rho^2}|&=&\left\{\begin{array}{cl}\tbinom{M^2/2}{N/2}&\text{ if }N\equiv0\pmod2\\0&\text{ otherwise}\end{array}\right.,\\ |X^{\rho^3}|=|X^{\rho}|&=&\left\{\begin{array}{cl}\tbinom{M^2/4}{N/4}&\text{ if }N\equiv0\pmod4\\0&\text{ otherwise}\end{array}\right.,\\ |X^{\sigma\rho}|=|X^{\sigma\rho^3}|&=&\left\{\begin{array}{cl}\tbinom{M^2/2}{N/2}&\text{ if }N\equiv0\pmod2\\0&\text{ otherwise}\end{array}\right., \end{eqnarray*} The expressions for the number of fixed points of $\sigma$ and $\sigma\rho^2$, the reflections in the diagonals, are not as pretty. Let $l=\min\{m,n,m-n\}/2$. Then $$|X^{\sigma}|=|X^{\sigma\rho^2}|=\left\{\begin{array}{cl}\sum_{K=0}^l\binom{M}{2K}\cdot\binom{M(M-1)/2}{N/2-K}&\text{ if }N\equiv0\pmod2\\\sum_{K=0}^{l-1}\binom{M}{2K+1}\cdot\binom{M(M-1)/2}{(N-1)/2-K} &\text{ if }N\equiv1\pmod2\end{array}\right.,$$ still assuming that $M$ is even. For $M$ odd the remaining values give slightly more elaborate expressions, which I will leave as an exercise, as the length of this answer is already making it difficult to continue typing.
As an example, for $M=N=4$ as in your example, we find that \begin{eqnarray*} |X/D_4|&=&\frac{1}{|D_4|}\left(|X^{\operatorname{id}}|+|X^{\rho}|+|X^{\rho^2}|+|X^{\rho^3}|+|X^{\sigma}|+|X^{\sigma\rho}|+|X^{\sigma\rho^2}|+|X^{\sigma\rho^3}|\right)\\ &=&\frac{1}{8}\left(|X^{\operatorname{id}}|+2|X^{\rho}|+3|X^{\rho^2}|+2|X^{\sigma}|\right)\\ &=&\frac{1}{8}\left(\binom{4^2}{4}+2\binom{4^2/4}{4/4}+3\binom{4^2/2}{4/2}+2\sum_{k=0}^2\binom{4}{2k}\binom{4(4-1)/2}{2-k}\right)\\ &=&\frac{1}{8}\left(1820+2\cdot4+3\cdot28+2\cdot(15+36+1)\right)=252 \end{eqnarray*}
EDIT: I just noticed that your example takes $M=4$, $N=5$, in which case the expressions simplify significantly. As before we find $$|X/D_4|=\frac{1}{8}\left(\binom{16}{5}+2\left(\binom{4}{1}\binom{6}{2}+\binom{4}{3}\binom{6}{1}\right)\right)=567.$$