組み合わせ・順列計算機
組み合わせ (nCr) と順列 (nPr) を計算します。
入力
結果
例組み合わせ (nCr)
10
計算方法
[Is Valid] ? [Factorial N] ÷ ([Factorial R] × [Factorial N R]) : [Null]
nCr = n! / (r! × (n-r)!)
順列 (nPr)
60
計算方法
[Is Valid] ? [Factorial N] ÷ [Factorial N R] : [Null]
nPr = n! / (n-r)!
n!(nの階乗)
120
計算方法
(() => { [If] ([N] <= 1) [Return] 1; [Let] [Result] = 1; [For] ([Let] [I] = 2; [I] <= [N]; [I] + +) [Result] × = [I]; [Return] [Result]; })()
r!(rの階乗)
6
計算方法
(() => { [If] ([R] <= 1) [Return] 1; [Let] [Result] = 1; [For] ([Let] [I] = 2; [I] <= [R]; [I] + +) [Result] × = [I]; [Return] [Result]; })()
その他
この結果は役に立ちましたか?