I want to find all possible colorings for a given number of colors $C$ on a board with cells $M \cdot N$ (both are even numbers). The board has periodic boundry conditions, so shifting the pattern to the left, right, up and down is considered to be the same pattern.
example patern with all posible shifts
I found out, that Polyas enumeration theorem can tell you the total number of colorings. I just found examples, where they calculate the unique permutations for roational and mirros symetries.
- Could you please help me to find the answer for the total number of unique patterns?
- Is there a function which can generate all possible unique patterns?
Extra
I found out that the squared Fourier transform can tell whether two (shifted) patterns are the same.
Application
The patterns are used as inputs for a simulation program. The simulation gives the same result for all shifted representation of a pattern. The computation time could be greatly reduced by eliminiating all the redundant patterns.
Thank you very much for helping me out :)