Skip to content

Commit 747da03

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9d84bf4 commit 747da03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/modular_division.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def modular_division(a: int, b: int, n: int) -> int:
3434
raise ValueError("Divisor a must be a positive integer")
3535
if greatest_common_divisor(a, n) != 1:
3636
raise ValueError("a and n must be coprime (gcd(a, n) = 1)")
37-
37+
3838
(_d, _t, s) = extended_gcd(n, a) # Implemented below
3939
x = (b * s) % n
4040
return x

0 commit comments

Comments
 (0)