← All problems

Books Between Bookends

Combinatorics · Purple Comet 2025 HS 1583
Four books (B), four bookends (E), and three vases (V) are aligned on a bookshelf in random order. The alignment is stable if every adjacent set of one or more books has a bookend at each end, as in VVEBBEBBBEVE or EBBBEVVEBEV. If the books, bookends, and vases are aligned on the bookshelf in random order, the probability that the resulting alignment is stable is $\dfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m+n$.