If the different permutations of the word PRODIGIOUS are listed as in a dictionary, then what is the rank of the word PRODIGIOUS?
609902
Correct order of the letters: D, G, I, I, O, O, P, R, S, U
Word begin withNumber of wordsD9!2!2!G9!2!2!I9!2!O9!2!PD8!2!2!PG8!2!2!PI8!2!PO8!2!PRD7!2!2!PRG7!2!2!PRI7!2!PRODG5!2!
Now the next two words are PRODIGIOSU and PRODIGIOUS
Hence the rank of the word PROFIGIOUS
=2(9!2!2!)+2(9!2!)+2(8!2!2!)+2(8!2!)+2(7!2!2!)+7!2!+5!2!+2=3(9!2!)+3(8!2!)+7!+(5!2!)+2=544320+60480+5040+60+2=609902