今回は40の階乗と計算方法を紹介します。
40の階乗は815915283247897734345611269596115894272000000000になります。
この計算方法について説明します。
階乗とは何か?
まず、階乗とは何かを理解することから始めます。
階乗は、ある自然数nに対して、1からnまでの全ての数を掛け合わせたものを表します。
つまり、nの階乗は、$n!=n(n-1)(n-2)…3\times2\times1$です。
※参考記事
[数A]階乗|階乗とは、0の階乗が1になる理由も解説
40の階乗
では、本題に入りましょう。
nの階乗の式に40を代入して計算していきます。
$$n!=n(n-1)(n-2)…3\times2\times1$$
ここで$n=40$とすると、下記のように計算できます。
$$40!=40\times39\times38\times37\times36\times35\times34\times33\times32\times31\times30\times29\times28\times27\times26\times25\times24\times23\times22\times21\times20\times19\times18\times17\times16\times15\times14\times13\times12\times11\times10\times9\times8\times7\times6\times5\times4\times3\times2\times1=815915283247897734345611269596115894272000000000$$
掛け算ができれば計算できるので計算自体は難しくないですね。
nの値が大きい時は迷わず電卓やエクセルを使いましょう!
まとめ
ここまで読んでいただきありがとうございます。
40の階乗を計算してきました。
nの階乗は、$n!=n(n-1)(n-2)…3\times2\times1$なので、nに代入すれば掛け算だけでも解けますね!
コメント