{"type":"rich","height":"190","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/m/mirucacule/20191012/20191012191247.jpg","version":"1.0","width":"100%","author_url":"https://blog.hatena.ne.jp/mirucacule/","author_name":"mirucacule","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmirucacule.hatenablog.com%2Fentry%2F2019%2F10%2F12%2F191357\" title=\"C++\u3067\u4e8c\u9805\u4fc2\u6570\u3092\u8981\u7d20\u306b\u6301\u3064\u914d\u5217\u3092\u5b9a\u7fa9\u3059\u308b\u30e1\u30e2 - \u51b7\u3081\u305f\u30b3\u30fc\u30d2\u30fc\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://mirucacule.hatenablog.com/","categories":["C++"],"blog_title":"\u51b7\u3081\u305f\u30b3\u30fc\u30d2\u30fc","title":"C++\u3067\u4e8c\u9805\u4fc2\u6570\u3092\u8981\u7d20\u306b\u6301\u3064\u914d\u5217\u3092\u5b9a\u7fa9\u3059\u308b\u30e1\u30e2","description":"\u3084\u308a\u305f\u3044\u3053\u3068 \u4e8c\u9805\u4fc2\u6570\u3092\u8981\u7d20\u306b\u6301\u3064\u4e00\u6b21\u5143\u914d\u5217\u3092\u5b9a\u7fa9\u3057\u305f\u3044\uff0e\u3059\u306a\u308f\u3061\uff1a $$ \\begin{align} {}_n C_k = \\binom{n}{k} = \\frac{n!}{k!(n-k)!} \\tag{1} \\end{align} $$ \u3092\u8981\u7d20\u306b\u6301\u3064\u3088\u3046\u306a $n+1$ \u6b21\u5143\u914d\u5217\u3092\u5b9a\u7fa9\u3057\u305f\u3044\uff0e Python \u306b\u3088\u308b\u5b9f\u88c5 Python \u3067\u306f\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u6240\u671b\u306e\u914d\u5217\u3092\u751f\u6210\u3067\u304d\u308b\uff0e\u5185\u5305\u8a18\u6cd5\u306f\u4fbf\u5229\uff0e import math def binominal(n): return [int(math.factorial(n)/(math.factorial(i)*math.fact\u2026","published":"2019-10-12 19:13:57","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","url":"https://mirucacule.hatenablog.com/entry/2019/10/12/191357"}