We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Cannot modulus at end of calculation or numbers will get too large obviously. But cant moduls from very beginning either while still needing to divide by a factorial. Start doing the modulus as soon as the factorial is completely divided out.
Sherlock and Permutations
You are viewing a single comment's thread. Return to all comments →
Cannot modulus at end of calculation or numbers will get too large obviously. But cant moduls from very beginning either while still needing to divide by a factorial. Start doing the modulus as soon as the factorial is completely divided out.