Skip to content

Commit da65f55

Browse files
committed
Improve formatting of mathematical expressions in fast-gcd.md
1 parent ba54ae6 commit da65f55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/_posts/fast-gcd.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ tags:
3434

3535
`$x=abc$`,则:
3636

37-
$$(x,y)=(a,y)\times(b,\dfrac{y}{(a,y)})\times(c,\dfrac{y}{(ab,y)})$$
37+
$$
38+
(x,y)=(a,y)\times\left(b,\dfrac{y}{(a,y)}\right)\times\left(c,\dfrac{y}{(ab,y)}\right)
39+
$$
3840

3941
`$a\in\mathbf{P}$`,只需判断 `$a$` 是否整除 `$y$`,否则 `$(a,y)=(y\bmod a,a)$`,因为 `$a\le\sqrt{n}$`,可以查表。
4042

0 commit comments

Comments
 (0)