math.circle_perm
code:Lua
y = textmodule.math.circle_perm(n)
モジュール
math
引数
table:_
変数 型 概要
1 n number 処理する数値
返り値
table:_r
変数 型 概要
1 y userdara 計算結果(
1024bit数値型
)
概要
異なる
n
個のものを円形に並べる順列の総数を求める。
$ y = \frac{n!}{n} = (n-1)!