Skip to content

Commit 59fa075

Browse files
authored
Add CRT general solution note about inverses
cp-algorithms#1008 (comment)
1 parent 0a38326 commit 59fa075

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/algebra/chinese-remainder-theorem.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ Then a solution to the system of congruences is
7676

7777
$$a = \sum_{i=1}^k a_i N_i M_i$$
7878

79+
Again as $N_i \equiv M_i^{-1} \pmod{m_i}$, the solution is equivalent to
80+
81+
$$a = \sum_{i=1}^k a_i M_i (M_i^{-1} \mod{m_i})$$
82+
7983
Observe $M_i$ is a multiple of $m_j$ for $i \neq j$, and
8084

8185
$$a \equiv a_i N_i M_i \equiv a_i (1 - n_i m_i) \equiv a_i \pmod{m_i}$$

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy