Source for operator vs. equivalence relation notation:
http://www.math.wm.edu/~vinroot/307ModNote.pdf
http://www.math.wm.edu/~vinroot/307ModNote.pdf
Example in Operator Notation:
Let be a fixed positive integer greater than 1. If and , prove that and .
Let
n
amodn=a'
bmodn=b'
(a+b)modn=(a'+b')modn
(ab)modn=(a'b')modn
Example in Equivalence Relation Notation
(as in Disquisitiones Arithmeticae, Gauss 1801):
Let be a fixed positive integer greater than 1. If and , prove that and .
(as in Disquisitiones Arithmeticae, Gauss 1801):
Let
n
a≡a'(modn)
b≡b'(modn)
(a+b)≡(a'+b')(modn)
(ab)≡(a'b')(modn)
In the first version, the symbol acts like an operation, where means that if one applies the division algorithm to divided by , then is the unique non-negative remainder less than . In the second version, acts as an equivalence relation, where means that divides .
modn
amodn=a'
a
n
a'
n
≡...(modn)
a≡a'(modn)
n
a-a'
This is the operator notation (infix):
In[]:=
TraditionalForm[b≡Mod[a+c,m]]
Out[]//TraditionalForm=
b≡(a+c)modm
Here is a mimic of the equivalence relation notation:
In[]:=
Format[mod[a_,m_]]:=Row[{Infix[mod[a,m],"(mod"],")"}]
In[]:=
Framed[Column[{Row[{"The ",Style["Congruence relation",Bold]," is an equivalence relation:"}],Row[{Style["Reflexivity: ",Bold],TraditionalForm[a≡mod[a,m]]}],Row[{Style["Symmetry: ",Bold],TraditionalForm[a≡mod[b,m]]," if ",TraditionalForm[b≡mod[a,m]]}],Row[{Style["Transivity: ",Bold],TraditionalForm[a≡mod[b,m]]," and ",TraditionalForm[b≡mod[c,m]]," than ",TraditionalForm[a≡mod[c,m]]}]}],RoundingRadius5,BackgroundLightBlue]
Out[]=
some more examples:
In[]:=
Column[TraditionalForm/@{Mod[7,2]≡mod[7,2],HoldForm[]≡mod[HoldForm[],m],PrecedenceForm[ab,100]≡mod[a'b',n],PrecedenceForm[a+b,100]≡mod[a'+b',n]}]
2
(ab)
2
(a'b')
Out[]=
1≡7(mod2) |
2 (ab) 2 ( ′ a ′ b |
(ab)≡( ′ a ′ b |
(a+b)≡( ′ a ′ b |