diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-07-25 15:40:04 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-07-25 15:41:03 +0200 |
| commit | 243a542dce0f8da6fc3ac43d5e5fcb144559b507 (patch) | |
| tree | 21eab6bd613affc7ea4ec1a5a4ef04d4c67fc82c /doc | |
| parent | Add exercise: [30] Powers of the golden ratio (diff) | |
| download | libzahl-243a542dce0f8da6fc3ac43d5e5fcb144559b507.tar.gz libzahl-243a542dce0f8da6fc3ac43d5e5fcb144559b507.tar.bz2 libzahl-243a542dce0f8da6fc3ac43d5e5fcb144559b507.tar.xz | |
Manual: how to calculate the legendre symbol
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | doc/not-implemented.tex | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/doc/not-implemented.tex b/doc/not-implemented.tex index 586c2a8..27a03d5 100644 --- a/doc/not-implemented.tex +++ b/doc/not-implemented.tex @@ -136,7 +136,23 @@ TODO \subsection{Legendre symbol} \label{sec:Legendre symbol} -TODO +\( \displaystyle{ + \left ( \frac{a}{p} \right ) \equiv a^{\frac{p - 1}{2}} ~(\text{Mod}~p),~ + \left ( \frac{a}{p} \right ) \in \{-1,~0,~1\},~ + p \in \textbf{P},~ p > 2 +}\) + +\noindent +That is, unless $\displaystyle{a^{\frac{p - 1}{2}} ~\text{Mod}~ p \le 1}$, +$\displaystyle{a^{\frac{p - 1}{2}} ~\text{Mod}~ p = p - 1}$, so +$\displaystyle{\left ( \frac{a}{p} \right ) = -1}$. + +It should be noted that +\( \displaystyle{ + \left ( \frac{a}{p} \right ) = + \left ( \frac{a ~\text{Mod}~ p}{p} \right ), +}\) +so a compressed lookup table can be used for small $p$. \subsection{Jacobi symbol} |
