How many ways are there to make different words (not necessarily meaningful) by changing order of letters in the word $b_1b_1...b_1b_2b_2...b_2...b_mb_m...b_m$, where $b_1$ appears $k_1$ times, $b_2$ appears $k_2$ times, ... , $b_m$ appears $k_m$ times.
My answer is $$\sum_{k_1+k_2+...+k_m = n \\ 0\leq k_i \leq n}\quad\Large\frac{n!}{k_1!k_2!...k_m!}b_1^{k_1}b_2^{k_2}...b_m^{k_m}$$
Is this correct?