In a city with 6 monuments, you wish to construct one-way roads such that each monument has exactly one road coming in and one road leaving. In how many ways can you do this?
Details and Assumptions
Not all 6 monuments need to be inter-connected
A monument can be connected to itself
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.
Let the 6 monuments be A , B , C , D , (E), and F . Since each monument has exactly 1 road going in and 1 road going out. A number of interconnected monuments can be regarded as a circular string. For example, for 6 Interconnected monuments, A B D C F E and B D C F E A are the same strings, and we have to count the amount of strings there are. To do this, we find the number of permutations there are and then divide by the number of monuments which is also the number of possible starting points of the string. This is n n ! = ( n − 1 ) !
There are a number of ways the monuments can be connected:
Case 1: 1 String only -
6 monuments all interconnected: 5 ! = 1 2 0 combinations
Case 2: 2 strings -
2.1: 1 monument connected to itself, 5 interconnected: C 1 6 0 ! 4 ! = 1 4 4 Combinations
2.2: 2 monuments interconnected, 4 monuments interconnected: C 2 6 1 ! 3 ! = 9 0 $ Combinations
2.3 3 monuments interconnected, 3 monuments interconnected: 2 ! C 3 6 2 ! 2 ! = 4 0 Combinations
(The Expression above had to be divided by 2 ! because the two groups of 3 monuments can be reordered)
Total combinations for Case 2: 1 4 4 + 9 0 + 4 0 = 2 7 4 Combinations
Case 3: 3 Strings -
3.1: 2 monuments interconnected, 2 monuments interconected, 2 monuments interconnected: 3 ! C 2 6 C 2 4 1 ! 1 ! 1 ! = 1 5 Combinations
3.2: 1 monument connected to itself, 2 interconnected, 3 interconnected: C 1 6 C 2 5 0 ! 1 ! 2 ! = 1 2 0 $ Combinations
3.3: 1 monument connected to itself, 1 monument connected to itself, 4 monuments interconnected: 2 ! C 1 6 C 1 5 0 ! 0 ! 3 ! = 9 0 Combinations
Total combinations for Case 3: 1 5 + 1 2 0 + 9 0 = 2 2 5 Combinations
Case 4: 4 Strings
4.1: 1 monument connected to itself, 1 monument connected to itself, 1 monument connected to itself, 3 interconnected: 3 ! C 1 6 C 1 5 C 1 4 0 ! 0 ! 0 ! 2 ! = 4 0 Combinations
4.2: 1 monument connected to itself, 1 monument connected to itself, 2 interconnected, 2 interconnected: 2 ! 2 ! C 2 6 C 2 4 C 1 2 0 ! 0 ! 1 ! 1 ! = 4 5 Combinations
Total combinations for Case 4: 4 0 + 4 5 = 8 5 Combinations
Case 5: 5 Strings
The Only possible combination of 5 strings to to have 2 monuments interconnected, and the rest are connected to itself. The Number of Combinations for Case 5 would be: 4 ! C 1 6 C 1 5 C 1 4 C 1 3 0 ! 0 ! 0 ! 0 ! 1 ! = 1 5 Combinations
Case 6: 6 strings
There is only 1 possible combination for case 6 and that is that each monument is connected to itself
In total there are: 1 2 0 + 2 7 4 + 2 2 5 + 8 5 + 1 5 + 1 = 7 2 0 Combinations