数式で独楽する

数式を使って楽しむブログです

[tex: ]

合同式

2つの整数 x,yについて、

  •  x pで割った余りと y pで割った余りが等しい

ことを

\begin{equation}
x \equiv y \mod p
\end{equation}

で表します。これを「合同式」といいます。
「法 pに関して x, yは合同である」などといいます。


合同式には、次の性質があります。
\begin{eqnarray}
a & \equiv & c \mod p \\
b & \equiv & d \mod p
\end{eqnarray}の場合、以下の関係が成り立ちます。

\begin{equation}
a +b \equiv c +d \mod p
\end{equation}
合同式の和 - 数式で独楽する

\begin{equation}
a -b \equiv c -d \mod p
\end{equation}
合同式の差 - 数式で独楽する

\begin{equation}
ab \equiv cd \mod p
\end{equation}
合同式の積 - 数式で独楽する

冪乗

\begin{equation}
a^k \equiv c^k \mod p
\end{equation}
合同式のべき乗 - 数式で独楽する

定数倍

\begin{equation}
ka \equiv kc \mod p
\end{equation}
 k,pが互いに素でない場合、
\begin{equation}
ka \equiv 0 \mod p
\end{equation}となる場合があります。
合同式の定数倍 - 数式で独楽する

定数による除算

 k,pが互いに素の場合、
\begin{equation}
ka \equiv kc \mod p
\end{equation}ならば
\begin{equation}
a \equiv c \mod p
\end{equation}
合同式の定数による除算 - 数式で独楽する