If someone is writing the 5040 arrangements of the letters in ORANGES in alphabetical order like: AEGNORS, AEGNOSR, AEGNROS, ... How would I find the 2014th rearrangement of this word?
Honestly this is a problem for my homework but I honestly don't know where to start with this problem. I know that there is a more logical way to go about this rather than writing out 2014 rearrangements of the word ORANGES.This community always helps me more than any TA or Professor ever will so this is why I am seeking help with this problem.
Hope you guys can help! Thanks
Lets work this out one letter at a time. Each letter gets a turn at being at the front of the word so $ \frac{1}{7} $ th of the words are going to start with each letter (or in another way $6!$). So first 720 words in the list are going to start with 'A'. The next 720 with 'E'.
$\frac{2014}{6!}$ gives us 2 with 574 as a remainder. So the first letter is 'G'.
You next take the remainder and continue the process with the remaining letters.