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。