第 392 题:(2025 AIME II, 11)
Let $S$ be the set of vertices of a regular $24$-gon. Find the number of ways to draw $12$ segments of equal lengths so that each vertex in $S$ is an endpoint of exactly one of the $12$ segments.
- If all segments join vertices $k$ apart ($1\le k\le12$), the chords of that length split the vertices into $d=\gcd(k,24)$ cycles of length $\frac{24}d$ (for $k=12$, into $12$ pairs).
- An even cycle has $2$ perfect matchings, an odd one none. So $k=1,5,7,11$ give $2$ each; $k=2,10$ give $4$; $k=3,9$ give $8$; $k=4$ gives $16$; $k=6$ gives $64$; $k=8$ gives $0$; $k=12$ gives $1$.
- $8+8+16+16+64+0+1=113$. The answer is $\boxed{113}$.
Let $S$ be the set of vertices of a regular $36$-gon. Find the number of ways to draw $18$ segments of equal lengths so that each vertex in $S$ is an endpoint of exactly one of the $18$ segments.