# 伯努利数与伯努利多项式（Bernoulli numbers and polynomials，bernoulli_b）

第 n 个伯努利数。

## 怎么写

### bernoulli_b(n)

**n**

一个整数。接受一个整数。

## 示例

- $\displaystyle \operatorname{bernoulli\_b}(4) = -\frac{1}{30}$

  `bernoulli_b(4)`

  在求解器中，`bernoulli_b(4)` 的结果是 `-1/30`。

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

## 相关函数

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

  Carmichael 函数：使每个与 n 互质的数模 n 都变成 1 的最小幂次。
- [bell_b](https://zh.hilberon.com/library/bell_b)

  第 n 个贝尔数：把 n 个物品分成若干组的方法数。
- [catalan_number](https://zh.hilberon.com/library/catalan_number)

  第 n 个 Catalan 数。
- [totient](https://zh.hilberon.com/library/totient)

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

  除以给定模数后余数为给定余数的那个数。
- [subfactorial](https://zh.hilberon.com/library/subfactorial)

  错排数：重排 n 个元素使无一留在原位的方案数。

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