Circular Permutation Calculator

Compute the number of circular permutations of n items as (n-1)!.

📐 计算公式
圆排列:环形排列数 = (n−1)!(固定一元素消去旋转等价);对照全排列 n!;项链/手镯排列数(翻转亦等价)= n≥3 ? (n−1)! ÷ 2 : (n≥1 ? 1 : 0)。校验:n 封顶 1000、<1 提示报错;结果按对数空间计算并自动转科学计数,超大 n 不再溢出。判据:无固定分级,可翻转时在圆排列基础上再除以 2。

输入元素个数 n,求圆排列数。

Formula & Standard References

Item Formula / Note Source / Standard
Circular permutations The number of circular arrangements of n distinct objects is (n - 1)!, rotations identified Brualdi RA, Introductory Combinatorics (5th ed.), Pearson
Reflection also identified If reflections are identified too (e.g. necklaces), the count is (n - 1)!/2 for n >= 3 Brualdi RA, Introductory Combinatorics (5th ed.)
Relation to linear permutations Linear permutations are n!; identifying rotations divides by n, giving n!/n = (n-1)! Brualdi RA, Introductory Combinatorics (5th ed.)
Convention With 0! = 1, a single element has exactly one circular arrangement ISO 80000-2:2019, Mathematics - General mathematical symbols
📌 计算说明
  • 环形排列比线性少一个自由度。
  • n=5 → 4! = 24。