Prelude
Kolam at the threshold
At daybreak, many thresholds in Tamil Nadu become temporary drawing surfaces. The ground is swept, sometimes dampened, and a kōlam is drawn with rice flour, rice paste, or mineral powder. Historically practised and transmitted largely by women, kōlam belongs to the meeting place between home and street: it may be a gesture of welcome, a sign of auspiciousness, a daily discipline, and a work of art intended to disappear beneath footsteps, wind, rain, and time before being made anew. Cultural sources ↓
Pulli means “dot”. In a pulli kōlam, a grid of dots provides the scaffold from which lines are joined or woven. In the sikku or chikku variety, one or more closed strands loop around the dots, producing patterns that invite questions about symmetry, continuity, topology, algorithms, and counting.
கோலம் · kōlam — A temporary drawing can carry a durable idea: local choices accumulating into global form.
Mathematics is only one way of seeing kōlam. The practice also carries aesthetic, social, ritual, ecological, and personal meanings. We will study one deliberately simplified square-tile model of a sikku kōlam, not a classification of the living tradition. The model keeps a small local grammar visible, turns every rule into an exact condition, and leads to a surprising count.
From six shapes to sixteen tiles
Take a square tile and mark its centre with a dot. Draw curve segments that surround the dot and meet the midpoint of any chosen subset of the four sides; if no side is chosen, draw a closed loop inside the tile. Up to rotation, this gives six shapes. Once orientation is fixed, they yield sixteen distinct tiles.






To turn the pictures into mathematical objects, record only one piece of information about each side: does the curve meet the midpoint of that side? Read the sides in the fixed order east, north, west, south, writing for “yes” and for “no”. Each tile therefore receives a binary string of length four. For example, has exits to the east, west, and south, but not to the north. The label is not an empty tile: its curve closes inside the square and meets no side.

Try the puzzle before reading on
Drag the sixteen tiles into the frame in the Square Kolam Tile Challenge. The labels are fixed: you may move a tile, but you may not rotate it. Try to make every neighbouring pair agree and keep the fifteen nonzero tiles in one network.
Hint 1: read the frame as a string of zeros
Every north bit in the top row, south bit in the bottom row, west bit in the left column, and east bit in the right column must be . Cross out every position at which one of a tile’s s would point out of the square.
Hint 2: use the most constrained positions
A corner has two outward-facing sides. At the top-left corner, both the north and west bits must be , so only , , , and can occur there. Conversely, cannot lie on the boundary and must occupy one of the four central cells.
Hint 3: build a compatible frontier
Once one row is placed, its four south bits must be exactly the four north bits of the next row. Build row by row, while tracing paths from : a nonzero loop cut off from the unfinished board can never be repaired later.
A precise model of the board
We now give names to the board, the tile inventory, and the act of placing a tile. Let
.
be the sixteen cells, with increasing eastwards and increasing southwards. Let be the set of sixteen words. For , write , ,, for its four bits. A placement is a function
,
where is the globally oriented tile placed in cell .
A successful board satisfies five precise conditions.
- Exact inventory. The map is a bijection: every cell receives one tile and every word in occurs exactly once.
- Horizontal matching. For and , .
- Vertical matching. For and , .
- Closed outer boundary. For every and , .
- Connectivity. Form a graph whose vertices are the sixteen cells, joining neighbours when their common matched bits are both . If , then the subgraph on must be connected.
Conditions define a locally valid exact-inventory board. The fifth says that has exactly two components: the compulsory component and one component containing all fifteen nonzero tiles.
A small invariant with a large consequence
In each of the four bit positions, exactly eight of the sixteen words contain a . The complete inventory therefore has exits. Because every exit is paired with exactly one neighbour, every locally valid board has precisely active connections.
After discarding the isolated vertex, every successful answer is a connected graph with vertices and edges. Its cyclomatic number is therefore .
From a puzzle to satisfiability
A completely unrestricted placement has possibilities. Every condition can be encoded using Boolean variables, while the local rules give us an efficient way to prune the search. For each cell and tile , introduce a variable
.
There are such variables. The puzzle is now a Boolean satisfiability problem, usually abbreviated to SAT. Bijection gives the “one tile per cell” and “one cell per tile” clauses; matching and boundary conditions forbid incompatible placements. Connectivity is global, so it can be checked afterwards by graph search or encoded with auxiliary reachability variables.
- One tile in every cell. Exactly one of the sixteen statements is true for each cell .
- Every tile used once. For each label , exactly one cell variable is true.
- Only compatible neighbours. Any pair of labels whose facing bits disagree is forbidden.
- No open boundary. A tile with an outward-facing is forbidden in that position.
- Reach all fifteen tiles. A breadth-first search from the unique tile must visit every nonzero tile.
A general SAT solver can enumerate the answers. For this square, a row-by-row search makes the three reported counts particularly transparent.
horizontally legal rows
Call a horizontally legal row when its four labels are distinct, its left and right outer bits are , and each pair of facing east–west bits agrees. Testing the ordered four-tuples gives exactly such rows.
There is also a compact count. Record the five horizontal boundary and interface bits. The two outer bits are fixed at , while the three inner bits are free, giving eight paths from back to . For each transition, the north and south bits are free; correcting for repeated transitions so that labels remain distinct gives .
locally valid boards
For each legal row, retain its four north bits, four south bits, and a sixteen-bit mask recording the labels it uses. Stack four rows only when adjacent north–south signatures match, the top and bottom boundary signatures are , and the four masks are disjoint and together contain all sixteen labels. Exactly boards pass those local matching, boundary, and inventory tests. The search is exhaustive because every board has one unique ordered decomposition into four rows.
connected nonzero networks
Finally, construct for each of the boards and run a breadth-first search from . Exactly searches reach all fifteen nonzero vertices. The other boards obey every local rule but split the nonzero tiles into two or more components.
When are two answers really the same?
Suppose you solve the puzzle and then turn the entire sheet through . The picture has changed its orientation, but not its essential arrangement. The same is true if you reflect the whole square in a mirror.
A square has eight rigid symmetries. Together they form the dihedral group : four rotations and four reflections.

The eight images of one board form its orbit. Counting “up to symmetry” means counting these orbits rather than individual labelled boards. But can we simply divide 408 by 8? Only if every orbit really has eight members. A highly symmetric board might have fewer, so we need a theorem that handles this possibility correctly.
Burnside’s lemma and the number 51
Let be the set of 408 accepted labelled boards. The eight symmetries of the square act on by moving a whole completed board. An orbit is the collection of boards obtainable from one another in this way, and our goal is to count these orbits.
Why not immediately divide 408 by 8? A board with its own symmetry could return to itself under more than the identity, making its orbit smaller than eight. Burnside’s lemma corrects for exactly this possibility. For a symmetry , let be the accepted boards that leaves unchanged. Then
The average comes from a double count. Count pairs for which fixes. Counting first by symmetry gives the sum above. If a board is fixed by symmetries, its orbit contains boards, and each is fixed by symmetries. Thus every orbit contributes pairs. Dividing the total by eight counts the orbits.
In our puzzle, the identity fixes all 408 boards. Both and are unchanged by every permutation of the compass directions. A symmetric board must therefore place both labels in cells fixed by the spatial symmetry. On an even grid, a nontrivial rotation or a horizontal or vertical reflection has no fixed cell, so none can fix an accepted board.
A diagonal reflection does have four fixed cells, so it needs a final finite check. Each diagonal fixes two locally valid boards, but their component sizes are 9, 3, 3, and 1. None satisfies our connectivity rule.
| Symmetry type | How many | Connected boards fixed | Comment |
|---|---|---|---|
| Identity | 1 | 408 | Every board |
| Quarter-turns | 2 | 0 each | and |
| Half-turn | 1 | 0 | |
| Axis reflections | 2 | 0 each | Horizontal and vertical |
| Diagonal reflections | 2 | 0 each | Fixed candidates are disconnected |
Appendix
Catalogue of the 51 kolams
The catalogue below contains one canonical representative from every square-symmetry class in the enumeration.

What does the enumeration do?
build the 1,448 legal four-tile rows
index rows by their north and south signatures
join compatible rows with disjoint tile masks
keep the 652 exact-inventory boards
test reachability from the 1111 tile
keep the 408 accepted boards
replace each D₄ orbit by its least representative
verify: 51 orbits × 8 boards = 408Notes and further reading
- For the threshold setting, materials, transmission, and cultural meanings of kōlam, see Sahapedia’s “Significance of Kolam in Tamil Culture” and the Indira Gandhi National Centre for the Arts archive note.
- For mathematical approaches, see Marcia Ascher’s “The Kolam Tradition”; Gift Siromoney, Rani Siromoney, and Kamala Krithivasan’s “Array Grammars and Kolam”; and Venkatraman Gopalan’s square-tile sikku kōlam enumeration.
- The exact-inventory puzzle is closely related to edge-matching or Wang-tile problems: local colour matching is replaced here by equality of 0–1 side data.
- Burnside’s lemma is sometimes called the orbit-counting lemma. Its power is that it remains correct even when different objects have orbits of different sizes.
The exhaustive enumeration certifies the count; the completed kolams remind us why the objects were worth counting.