USAJMO 2026 (Problem 2)

There are mm foxes and nn rabbits sitting in m+nm+n seats around a circular table, where all animals are distinguishable. If a fox and a rabbit are sitting next to each other, they may swap positions with each other. For a fixed starting configuration, determine the number of configurations that can be reached by a sequence of swaps.

Note: Rotations and reflections of a configuration are considered distinct.