pub fn multinomial<T>(k: &[T]) -> Twhere for<'a> T: Add<&'a T, Output = T> + Integer + Clone,
Calculate the multinomial coefficient.