跳转到内容

This page is also in English.

Read it in English

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

第二类斯特林数(Stirling numbers of the second kind,stirling_s2)

第二类 Stirling 数:把 n 个元素分成 k 组的方案数。

怎么写

stirling_s2(n, k)

n
整数。接受一个整数。
k
整数。接受一个整数。

示例

  • stirling_s2⁡(4,2)=7\displaystyle \operatorname{stirling\_s2}(4, 2) = 7
    stirling_s2(4, 2)

    在求解器中,stirling_s2(4, 2) 的结果是 7。

    在求解器中打开
  • stirling_s1

    带符号的第一类 Stirling 数。

  • subfactorial

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

  • totient

    欧拉函数:不超过 n 且与 n 互素的整数有多少个。

  • squares_r

    一个整数表示为给定个数平方和的方案数,计入顺序和符号。

  • bell_b

    第 n 个贝尔数:把 n 个物品分成若干组的方法数。

  • solve_congruence

    对变量求解同余式。