第 526 题:(2024 AIME I, 11)
Each vertex of a regular octagon is independently colored either red or blue with equal probability. The probability that the octagon can then be rotated so that all of the blue vertices end up at positions where there had been red vertices is $\tfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m+n$.
- We need a rotation $k$ with $(B+k)\cap B=\emptyset$ for the blue set $B$. This is automatic for $|B|\le3$ ($1+8+28+56=93$ sets) and impossible for $|B|\ge5$.
- For $|B|=4$, $B+k$ must be the complement: $k=4$ ($B$ has one of each antipodal pair: $16$ sets), $k=2,6$ ($B=\{a,a+1,a+4,a+5\}$, giving $4$ sets), $k$ odd ($B$ = evens or odds: $2$ sets): $22$.
- $\frac{115}{256}$, so $m+n=371$. The answer is $\boxed{371}$.
Each vertex of a regular decagon is independently colored either red or blue with equal probability. The probability that the decagon can then be rotated so that all of the blue vertices end up at positions where there had been red vertices is $\tfrac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m+n$.