We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>>> binomial(5, 3) 10 >>> [binomial(5,3)%i for i in range(9,18)] [1, 0, 10, 10, 10, 10, 10, 10, 10] >>> [binomial(5, 3, evaluate=False) % i for i in range(9,18)] [3, 0, 10, 6, 10, 2, 0, 14, 10] >>> list(range(9,18)) [9, 10, 11, 12, 13, 14, 15, 16, 17]
It appears to only be correct when the binomial value equals the modulus or when the modulus is prime.
The text was updated successfully, but these errors were encountered:
This can be fixed by making sure that min(k, n - k) is selected when n > 0 and k > 0 and n - k > 0. I will add this to #18960.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
It appears to only be correct when the binomial value equals the modulus or when the modulus is prime.
The text was updated successfully, but these errors were encountered: