Bulgarian solitaire one card from every pile

Split n cards into piles. A move takes one card from every pile and puts those cards down as a new pile. Nothing is random, so every start eventually repeats. Brandt (1982) showed where it ends up: write n = 1 + 2 + … + k + r; the repeating positions are the staircase k, k−1, …, 1, 0 with r extra cards on different steps, and each move rotates the extra cards one step. When n is triangular (r = 0) every start ends on the staircase itself, within k² − k moves (Igusa 1985, Etienne 1991).

Click a pile, then another pile (or the empty space on the right) to move one card. Puzzle: build the start that takes the longest to settle — the solver knows the record for every n up to 100.

table

state graph

every partition of n, an arrow to where one move takes it; cycles in the middle, distance to the cycle as radius. Click a dot to play it.

longest road to the cycle — every partition of every n ≤

checks

triangular n — Igusa / Etienne bound k² − k

Garden of Eden — starts nothing moves to