Combination ( binomial coefficient ) for large numbers n and k.

Assume that the value in mod P is good.

After taking the remainder, no ordinary division can be performed. Then calculate and multiply Inverse Element in mod P.


This page is auto-translated from [/nishio/mod P恧恮ēµ„ćæåˆć‚ć›](https://scrapbox.io/nishio/mod P恧恮ēµ„ćæåˆć‚ć›) using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. Iā€™m very happy to spread my thought to non-Japanese readers.