# stirling_s1 function

Stirling number of the first kind, with sign.

## How to write it

### stirling_s1(n, k)

**n**

A whole number. Takes a whole number.

**k**

A whole number. Takes a whole number.

## Examples

- $\displaystyle \operatorname{stirling\_s1}(4, 2) = 11$

  `stirling_s1(4, 2)`

  In the solver, `stirling_s1(4, 2)` gives `11`.

  [Open in the solver](https://hilberon.com/?q=stirling_s1%284%2C%202%29)

## Related functions

- [stirling_s2](https://hilberon.com/library/stirling_s2)

  Stirling number of the second kind: the ways to split n items into k groups.
- [squares_r](https://hilberon.com/library/squares_r)

  How many ways a whole number is a sum of a given count of squares, counting order and signs.
- [subfactorial](https://hilberon.com/library/subfactorial)

  Subfactorial: how many ways to reorder n items so none stays in place.
- [solve_congruence](https://hilberon.com/library/solve_congruence)

  Solve a congruence for a variable.
- [totient](https://hilberon.com/library/totient)

  Euler's totient: how many whole numbers up to n are coprime to n.
- [primitive_root](https://hilberon.com/library/primitive_root)

  A primitive root of a prime: a number whose powers cover all the nonzero residues.

---
Source: https://hilberon.com/library/stirling_s1
