total no of words formed by letters of word COMPANY = 5040
ordered sequence A, C, M, N, O, P, Y
so rank
= (5040/7)*1+(720/6)*3+(120/5)*1+(24/4)*2+(6/3)*0+(2/2)*0+1
= 720+360+24+12+1
= 1117
Language is remarkable, except under the extreme constraints of mathematics and logic, it never can talk only about what it's supposed to talk about but is always spreading around.