Thus, we define addition and multiplication modulo n , denoted +n and *n , as follows:
[a] n + n [b] n = [a + b] n (addition modulo n)
[a] n * n [b] n = [a *b] n (multiplicative modulo n)
Using this definition of addition modulo n , we define the additive group modulo n as ( Z n , + n ). The size of the additive group modulo n is | Z n | = n . Modular addition over the group ( Z 6 , + 6 ) is defined as follows:
Closure: If a ∈ Zn and b ∈ Zn then from the definition of addition modulo n a +n b = [a + b]n ∈ Z n .
Identity: 0 is the identity element of Zn
Inverse: Inverse of [a] n is [-a] n ≡ [n-a] n
Using this definition of multiplication modulo n , we define the multiplicative group modulo n as ( Z*n , *n ) where Z*n={[ a ] n ε Z n | gcd( a , n )=1} . For e.g. when n =15,
Z*15= {1, 2, 4, 7, 8, 11, 13, 14}. Modular multiplication over the group ( Z*15 , * 15 ) is defined as follows:
Identity: [1] n