How can I calculate the amount of deranged anagrams for specific word. For example, the word: Anona. I know that there are $\frac{5!}{2!2!1!} = 30$ anagrams. How can I calculate the amount of derangements: $$ oanan\ noaan\ nanao\ naaon $$ Is there any general formula in order to deal with more sophisticated cases?
Thanks!