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