Twelve (
) knights sit around a round table. Every knight hates the two (
) knights sitting next to him, but none of the other nine (
) knights. A task group of five (
) knights is to be sent to save a princess in trouble. No two (
) knights who hate each other can be included in the group. In how many ways can the group be selected?
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.
We solve the more general problem when there are n knights and a group of k compatible knights has to be selected for the task. Recall first that by a well-known formula in elementary combinatorics, the number of ways of selecting k objects from a row of n distinct objects so that no two of the selected objects could be adjacent, is given by the binomial coeffcient:
( k n − k + 1 )
Consider one particular knight, say, Sir Calvin. Then the group to be selected either includes him or excludes him.
If Calvin is chosen, then his two neighbours cannot be chosen and hence, we must choose k − 1 more knights from the remaining n − 3 knights in such a way that no two adjacent knights are selected. By the formula quoted above, this can be done in: ( k − 1 n − 3 − ( k − 1 ) + 1 ) ways.
If Calvin is not chosen, then we must select all k knights from the n − 1 remaining knights subject to the same constraint. This can be done in ( k n − 1 − k + 1 ) ways.
Therefore the total number of number teams is
f ( n , k ) = ( k − 1 n − 3 − ( k − 1 ) + 1 ) + ( k n − 1 − k + 1 )
= ( k − 1 n − k − 1 ) + ( k n − k )
= ( k − 1 n − k − 1 ) + k n − k ( k − 1 n − k − 1 )
= k n ( k − 1 n − k − 1 )
Note that f ( n , k ) ≥ 0 if and only if k ≤ ⌊ 2 n ⌋ .
For the given problem, we have n = 1 2 , k = 5 and thus the number of ways is f ( 1 2 , 5 ) = 5 1 2 ( 4 6 ) = 3 6 .