Olok said:
The Annual Interplanetary Mathematics Examination (AIME) is written by a committee of five Martians, five Venusians, and five Earthlings. At meetings, committee members sit at a round table with chairs numbered from $1$ to $15$ in clockwise order. Committee rules state that a Martian must occupy chair $1$ and an Earthling must occupy chair $15$, Furthermore, no Earthling can sit immediately to the left of a Martian, no Martian can sit immediately to the left of a Venusian, and no Venusian can sit immediately to the left of an Earthling. The number of possible seating arrangements for the committee is $N(5!)^3$. Find $N$.
johng's answer spurs me to have another go at this problem, but I get a different result from his.
Edit. After doing this, I see that johng has amended his answer, which now agrees with mine!
The first difficulty is to understand what the problem tells us about the seating arrangement. The places around the table are numbered from $1$ to $15$ clockwise, with an $M$ in place $1$ and an $E$ in place $15$, like this:
Notice that the $M$ in place $1$ has an $E$ to his/her/its right, but is not allowed to have an $E$ on the left. So if we list the occupants of places $1$ to $15$ in order, in the form $M\ldots E$, the consecutive pair $ME$ must not occur. In the same way, the pairs $VM$ and $EV$ are forbidden.
To list the possible seating arrangements, start by thinking about how the $M$s are distributed. One possibility is that they all sit together in places $1$ to $5$. For the remaining places, we can never have an $E$ followed by a $V$, so all the $V$s must come first, leading to the unique arrangement $MMMMMVVVVVEEEEE$.
At the other extreme, suppose all the $M$s are separated: $M\ldots M\ldots M\ldots M\ldots M\ldots E$. Each of the gaps must start with a $V$ and end with an $E$. This again leads to a unique arrangement $MVEMVEMVEMVEMVE$.
To list other arrangements, we have to consider all the possible partitions of the five $M$s. The partitions of $5$ are $(1\,1\,1\,1\,1)$, $(2\,1\,1\,1)$, $(2\,2\,1)$, $(3\,1\,1)$, $(3\,2)$, $(4\,1)$ and $(5)$. The first and last of these are covered in the previous two paragraphs.
Next comes the partition $MM\ldots M\ldots M\ldots M\ldots E$. In this arrangement, each group of $M$s must be followed by at least one $V$ and preceded by at least one $E$. So the arrangement looks like $MMV\_\,EMV\_\,EMV\_\,EMV\_\,E$, where each of the underscored spaces consists of $0$ or more $V$s followed by $0$ or more $E$s. There are $4^3=64$ such arrangements ($4$ ways of choosing where the double $M$ comes, $4$ places where the fifth $V$ can be inserted and $4$ places where the fifth $E$ can be inserted).
For the partition $MM\ldots MM\ldots M\ldots E$, the arrangement looks like $MMV\_\,EMMV\_\,EMV\_\,E$, with $3$ ways to distribute the $M$s, $6$ ways to distribute the $V$s into the gaps, and also $6$ ways to distribute the $E$s. That gives a total of $108$ arrangements.
Similarly, for distributions of the form $MMMV\_\,EMV\_\,EMV\_\,E$ there are again $3\times 6\times 6 = 108$ arrangements. For distributions of the form $MMMV\_\,EMMV\_\,E$ there are $2\times 4\times 4 = 32$ arrangements, and for those of the form $MMMMV\_\,EMV\_\,E$ there are again $2\times 4\times 4 = 32$ arrangements.
Adding all those, I make the total number $1+1+108+108+64+32 +32= 346$ arrangements.