# stirling_s1 函数

带符号的第一类 Stirling 数。

## 怎么写

### stirling_s1(n, k)

**n**

整数。接受一个整数。

**k**

整数。接受一个整数。

## 示例

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

  `stirling_s1(4, 2)`

  在求解器中，`stirling_s1(4, 2)` 的结果是 `11`。

  [在求解器中打开](https://zh.hilberon.com/?q=stirling_s1%284%2C%202%29)

## 相关函数

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

  第二类 Stirling 数：把 n 个元素分成 k 组的方案数。
- [squares_r](https://zh.hilberon.com/library/squares_r)

  一个整数表示为给定个数平方和的方案数，计入顺序和符号。
- [subfactorial](https://zh.hilberon.com/library/subfactorial)

  错排数：重排 n 个元素使无一留在原位的方案数。
- [solve_congruence](https://zh.hilberon.com/library/solve_congruence)

  对变量求解同余式。
- [totient](https://zh.hilberon.com/library/totient)

  欧拉函数：不超过 n 且与 n 互素的整数有多少个。
- [primitive_root](https://zh.hilberon.com/library/primitive_root)

  质数的原根：其幂覆盖所有非零剩余的数。

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