Skip to content / Đến nội dung
ThichHocToan.com

MathNet 2018-part-05 — 181 problems (EN–VI) Question 178

Math Olympiad Vault · MathNet 2018-part-05 — 181 problems (EN–VI)

Question 178

Let $n$ be a natural number. We call a sequence consisting of $3 n$ letters Romanian if the letters $I, M$ and $O$ each occur exactly $n$ times. A swap is an exchange of two adjacent letters. Show that for every Romanian sequence $X$ there exists a Romanian sequence $Y$ such that at least $\frac{3 n^{2}}{2}$ swaps are needed to obtain the sequence $Y$ from the sequence $X$.