# logBinomialCoefficient

> **logBinomialCoefficient**(`n`, `k`): `number`

Defined in: [packages/combinatorics/src/binomial-coefficient.ts:41](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/combinatorics/src/binomial-coefficient.ts#L41)

Take the natural logarithm of the number of combinations of k from n items for any non-negative safe integer counts. Returns -Infinity for k > n.

O(1) time. Evaluates the logarithmic ratio without subtracting two large log-factorials.

## Parameters

### n

`number`

### k

`number`

## Returns

`number`

## Throws

With `INVALID_COUNT` for an invalid count.
