# MULTINOMIAL

**The function MULTINOMIAL takes a List of Numbers in the form (\[n\_1, n\_2, n\_3,...n\_m]) and returns ({(\Sigma\_{i=1}^m n\_i)! \over \Pi\_{i=1}^m (n\_i!)}).**

This function takes a [List](../../variable-data-types/the-list-data-type) of [Numbers](../../variable-data-types/the-number-variable-data-type) as input. It returns another Number: the factorial of the sum of every Number in the given List divided by the product of the factorial of every Number in the given List.

#### Declaration

```javascript
MULTINOMIAL(list_of_numbers) -> number
```

&#x20;

#### Parameters

**list\_of\_numbers** (required, type: _List_) A List of Numbers. There is no upper limit to the number of items that can occupy this List.

#### Return Values

**number** (required, type: _Number_) The factorial of the sum of every Number in the given List divided by the product of the factorial of every number in the given List. If the List of Numbers is in the form (\[n\_1, n\_2, n\_3,...n\_m]), then **number** can be written as: $${(\Sigma_{i=1}^m n_i)! \over \Pi_{i=1}^m (n_i!)}.$$

#### Examples

The following example takes the List \[1, 2, 3] and returns ({(1 + 2 + 3)! \over 1!2!3!} ):

```javascript
MULTINOMIAL([1, 2, 3]) -> 60
```
