How many ways can you arrange all letters in the word “ m a n a g e m e n t ” so that at least one “ m ” is adjacent to one “ a ”?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The overall idea is to All outcomes when no restrictions - All outcomes when no " m " and " a " is adjacent
Six ways to arrange m m a a which there is always at least one pair of m and a together: - a a m m , m m a a [One adjacent pair] - m a a m , a m m a [Two adjacent pair] - m a m a , a m a m [Three adjacent pair]
Insert words gap symbols as placeholders to put numbers later. - a a _ _ m m [two 5-letter 1 gap-words] - m _ _ a a _ _ m [two 6-letter 2 gap-words] - m _ _ a _ _ m _ _ a [two 7-letter 3 gap-words]
Using combinations to calculate the ways to put the rest of vacant spaces into the word as we take out the space reserved for the gap which we will put back to separate a m later: - 1 2 6 = 9 C 4 [All the cases where one fixed space can separate a and m . Ex: ... aa _ mm ...] - 7 0 = 8 C 4 [All the cases where two fixed space can separate a and m . Ex: ... a _ mm _ a ...] - 3 5 = 7 C 4 [All the cases where three fixed space can separate a and m . Ex: ... a _ m _ a _ m ...]
Now we only need to fill the letters (eegnnt) into the predetermine vacant spaces: 1 8 0 = 2 ! ⋅ 2 ! 6 !
. 2 ! ⋅ 2 ! ⋅ 2 ⋅ 2 1 0 ! = 2 2 6 8 0 0 2 2 6 8 0 0 − ( 2 ⋅ 1 2 6 + 2 ⋅ 7 0 + 2 ⋅ 3 5 ) ⋅ 1 8 0 = 1 4 3 6 4 0
All Credit goes to k . s t m for providing a brilliant solution. * k.stm's original solution * Thanks to Mark Hennings for kindly pointing out the mistakes on my previous version
Problem Loading...
Note Loading...
Set Loading...
Let us count the number of ways of placing the letters M,A,A,M in the 10 possible places, so that no A is next to an M. There are a number of cases, depending on where the M,M go:
Thus there are 2 ( 2 7 ) + 1 0 ( 2 6 ) + 1 8 ( 2 5 ) + 1 5 ( 2 4 ) = 4 6 2 ways of placing the letters M,M,A,A so that no M is next to an A.
Here is a different argument for obtaining the 4 6 2 ways of arranging the M,M,A,A. This tidies up Kevin's description of my argument. The letters M,M,A,A can occur in one of six orders: AAMM, MMAA, MAAM, AMMA, AMAM, MAMA.
Thus there are, in total 2 ( 1 2 6 + 7 0 + 3 5 ) = 4 6 2 ways of placing the As and Ms and allowing spaces for the other letters.
For each of these 4 6 2 choices, there are 2 × 2 6 ! = 1 8 0 ways of placing the N,N,E,E,G,T in the remaining six places. Thus there are 4 6 2 × 1 8 0 = 8 3 1 6 0 ways of arranging all ten letters so that no M is next to an A.
Thus there are 2 × 2 × 2 × 2 1 0 ! − 8 3 1 6 0 = 1 4 3 6 4 0 ways of arranging the letters so that at least one M is next to an A.