# Permutation of identical elements

If we have n object and n1,n2,..nk are identical element. And we take r at a time i.e r < n. Is there a general formulae for the permutation of the above. Or how it is solved? Thanks.