Factorial-of-Numbers · Combinatorics Toolkit

Counting, perfected.

Permutations, combinations, derangements, Stirling and Bell numbers, multinomials and exact big-integer factorials — computed live in your browser. Full Python library with benchmarks in the repo.

nPr · Permutations

—

Ordered arrangements of r items from n.

nCr · Combinations

—

Poker hands from a 52-card deck: C(52,5).

Factorial

—

Exact big-integer factorial.

Derangements !n

—

Permutations where nothing stays in place (hat-check problem → 1/e).

Stirling · First kind s(n,k)

—

Signed: coefficients of the falling factorial. Unsigned: permutations of n with exactly k cycles.

Stirling · Second kind S(n,k)

—

Ways to partition n labelled objects into k non-empty unlabelled subsets.

Bell number B(n)

—

Total partitions of n labelled objects: the row sum of S(n,k).

Multinomial

—

n! / (g₁!·g₂!·…) where n is the sum of the group sizes.

Your calculation history

Stored only in this browser (localStorage) — nothing is sent anywhere. Only calculations you run are listed.

Growth chart · live

Same three series as growth_chart.py (n!, central binomial C(n,⌊n/2⌋), Bell B(n)), recomputed here with BigInt and plotted on a log₁₀ scale for n = 1…30.