Let's say we have a $3×3$ square where $3$ of the cells are labeled $a$, $b$, $c$ and the rest are blank. Two such squares are considered "equivalent" if one square can be obtained from another square by 1) rotation on 90, 180, and 270 degrees, 2) reflection (through the horizontal, vertical, or either diagonal axis).
I need to find equivalence classes of squares (maybe groups or patterns?).
My attempt is: 1) put the $a$, $b$ and $c$ in the 1-st row: $A=\left(% \begin{array}{ccc} a & b & c \\ .. & .. & .. \\ .. & .. & .. \\ \end{array} \right)$, then we can rotate the square $A$ on 90, 180 and 270 degrees: $A_{90}=\left(% \begin{array}{ccc} .. & .. & a \\ .. & .. & b\\ .. & .. & c \\ \end{array} \right)$, $A_{180}=\left(% \begin{array}{ccc} .. & .. & .. \\ .. & .. & ..\\ c & b & a \\ \end{array} \right)$, $A_{270}=\left(% \begin{array}{ccc} c & .. & .. \\ b & .. & ..\\ a & .. & .. \\ \end{array}. \right)$.
Four square $A$, $A_{90}$, $A_{180}$ and $A_{270}$ are equvalent. This is the first equivalence class.
2) put the $a$, $b$ and $c$ in the main diagonal: $$A=\left(% \begin{array}{ccc} a & .. & .. \\ .. & b & .. \\ .. & .. & c \\ \end{array}% \right) $$ and rotate on 90 degree $$A_{90}=\left(% \begin{array}{ccc} .. & .. & a \\ .. & b & .. \\ c & .. & .. \\ \end{array}% \right) $$ Two square $A$ and $A_{90}$ are equvalent. This is the second equivalence class.
Edit 2. Here I have found the 16 patterns.
Question. How many equivalence classes for three elements in a square are there?