rank of AGAIN
1 2 1 3 4
A G A I N
1st numbers r given to the letters in dictionary order
then under each letter, write down the number of letters assigned with lesser number occuring towards the right of the letter under which v r writing.
1 2 1 3 4
A G A I N
0 1 0 0 0
now these numbers shud b divided with (number of repetitions)! occuring to the right of tht letter including tht letter!
[ ! -->represents factorial]
here A is repeated! it occurs twice
therefore divide 0 with 2! (which is anyways zero in this case)
the letter G occurs only once so... 1!
thn write down under the letter frm the right most letter starting with 0!,
the immediate next letter to the left is given 1!, the next to the left 2! n so on!!
1 2 1 3 4
A G A I N
0 1 0 0 0
2! 1! 1! 1! 1!
4! 3! 2! 1! 0!
now K = (0/2!).(4!) + (1/1!).(3!) + (0/1!).(2!) + (0/1!).(1!) + (0/1!).(0!)
so K= 0+6+0+0+0 = 6
n the rank of the letter is K+1
so rank of again is 7.
hopefully my answer is correct.
n aslo hope tht u understood!
coz i really didnt understand how to explain it !!!
i post another example!!!