This short video serves as proof for the following mathematical statement:
1999F - Expected Median urged me to study modular arithmetic, specifically modular division. However, no document or video I found contained this proof so I tried to prove it myself. It's not hard so maybe that's why I couldn't find it, or maybe I didn't search well enough.
Anyway, often we are tasked with calculating a huge number modulo $$$10^9 + 7$$$. For this, we need to perform some modular arithmetic tricks, but things get complicated when trying to do division, like in the case of the binomial coefficient $$$\binom{n}{p}$$$. The reason for that is when applying modulo to integers $$$a$$$ and $$$b$$$ such that $$$a \mid b$$$ , there is no guarantee that $$$(a \mod m) \mid (b \mod m)$$$.