You have 5 squares to put in a pattern with the following 2 rules:
at least 1 complete side of a square must be in contact with 1 complete side of another square.
no rotations or mirror images allowed.
how many patterns can be formed?
no trick questions here. no hidden answers. actually, i’m gonna give you the answer, because answering the top problem isn’t the big concern. the answer is 12.
what i want to know, is given number of squares n, what is the formula that tells you the number of distinct patterns that can be formed?
These shapes are called polyominos (see here). (With 5 squares, they’re called pentominos, etc.) There’s no simple expression known for the number of polyominos.