Analyzing the Setup
To find the rank of the word PUBLIC, we first determine the alphabetical order of its constituent letters: B, C, I, L, P, U.
This sorted sequence serves as our reference for all permutations. The total number of letters is 6, and all letters are distinct.
The First Leap
Bypassing the Early Sections
We aim to reach words starting with P. In a dictionary, all words starting with B, C, I, or L appear before those starting with P.
There are 4 such starting letters. For each, the remaining 5 positions can be filled in 5! ways.
We have now bypassed 480 words.
The P-Section
Precision Navigation
Now we are in the P section. Our target word is PU.... Before reaching PU, we must pass through all words starting with PB, PC, PI, and PL.
There are 4 such prefixes. For each, the remaining 4 positions can be filled in 4! ways.
Adding this to our previous tally, we get 480+96=576.
The Final Stretch
Locking in the Letters
We are now in the PU section. The third letter of our target is B. Since B is the first available letter in our remaining set {B,C,I,L}, we skip 0 words.
Next, we look at the fourth letter, L. In the remaining set {C,I,L}, the letters C and I precede L. We must skip words starting with PUBC and PUBI.
Each of these 2 prefixes has 2! arrangements:
Our running total is now 576+4=580.
Final Calculation
The fifth letter is I. In the remaining set {C,I}, the letter C comes before I. We must skip the word starting with PUBLC.
This accounts for 1×1!=1 word. Our count becomes 580+1=581.
Finally, the only remaining letter is C, which completes the word PUBLIC. Since this is the very next word in the sequence, we add 1 to our total.
The final rank of the word PUBLIC is 582.