The letters of the word COCHIN are permutated and all permutations are arranged in an alphabetical order as in an English dictionary.
What is the number of words that appear before the word COCHIN?
Clarification: The words formed don't actually have to make sense, CCOHNI is an example.
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.
In alphabetical order, the letters are CCHINO.
COCHIN is the first possible permutation beginning CO. As such, the permutations that come before COCHIN are exactly those matching these patterns C C ( H I N O ) C H ( C I N O ) C I ( C H N O ) C N ( C H I O ) where unbracketed portions are constant, and bracketed portions denote arbitrary permutations of the letters contained.
Each bracketed portion contains four letters, all distinct, the number of permutations of which is 4 ! = 2 4 . Since there are four disjoint patterns to match, each of this form, the total number of matching permutations is 4 × 4 ! = 9 6 .