Repeated Sizes: Stacking

N dolls where several can share a size. Dolls of the same size are identical, and only the order of the sizes matters. Pieces nest, and smaller pieces can also stand on flat heads. Every arrangement for N = 1 to 4 is drawn below, grouped by size set.

The rules

The sequence

Further terms, N = 1…13:

2, 22, 415, 12160, 493998, 26174898, 1735381834, 139755623586, 13367574533502, 1492053442567399, 191592227514173127, 27972153968339834054, 4597659910322013131297

Not in the OEIS as of 2026-10-03. The size set with all sizes distinct gives the stacking sequence 2, 19, 312, 7643, …; a single shared size gives N + 1 (just how many dolls are closed). The terms come from Burnside's lemma: average, over the ways of permuting equal pieces, the number of arrangements each permutation leaves unchanged. Those counts reduce to the slot-counting recurrence of the distinct-size case. A brute-force enumeration of every arrangement agrees for N ≤ 4, and a Pólya multiset count agrees for N ≤ 6.