diff options
| author | pjungeblut <paul.jungeblut@gmail.com> | 2014-11-19 11:03:40 +0100 |
|---|---|---|
| committer | pjungeblut <paul.jungeblut@gmail.com> | 2014-11-19 11:03:40 +0100 |
| commit | 50503a5884f005680a28274825bf4c15b53fb0b9 (patch) | |
| tree | 4821428e1f2674f2516b3e6030d4ea5c61fff2a6 /math | |
| parent | 1d7b4ee73eae28b9c0c2d6f865e5bf9470d2ad60 (diff) | |
| parent | fee5322fe37cb270a93c1693e2668e53138f192d (diff) | |
modulares Inverses
Diffstat (limited to 'math')
| -rw-r--r-- | math/math.tex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/math/math.tex b/math/math.tex index 0b66163..f82ab65 100644 --- a/math/math.tex +++ b/math/math.tex @@ -4,5 +4,17 @@ \lstinputlisting{math/gcd-lcm.cpp} \lstinputlisting{math/extendedEuclid.cpp} +\subsubsection{Multiplikatives Inverses von $x$ in $\mathbb{Z}/n\mathbb{Z}$} +Sei $0 \leq x < n$. Definiere $d := gcd(x, n)$. +\begin{description} + \item[Falls $d = 1$:] ~ + \begin{itemize}[nosep] + \item Erweiterter euklidischer Algorithmus liefert $\alpha$ und $\beta$ mit $\alpha x + \beta n = 1$ + \item Nach Kongruenz gilt $\alpha x + \beta n \equiv \alpha x \equiv 1 \mod n$ + \item $x^{-1} :\equiv \alpha \mod n$ + \end{itemize} + \item[Falls $d \neq 1$:] es existiert kein $x^{-1}$ +\end{description} + \subsection{Binomialkoeffizienten} \lstinputlisting{math/binomial.cpp}
\ No newline at end of file |
