20CS5153  Network Security  Spring 2017 

Z*n 
Instructions:
Select a number from the menu, call it n. The set of all
numbers that are prime relative to n appears in a row that is
labeled Z*n. Click on a button in the Z*n row.
Call the number displayed on that button m.
The number m will be multiplied by all numbers in the set
Z*n, modulo n. The results appear directly below
each element of Z*n in the row labeled res:.
For example, if n is 19 and 9 is clicked, 9*9 mod 19 is 5
which is directly below the 9; if 5 is clicked, 5*14 mod 19 is 13
which appears below the 14 in the Z*n row.
Observe:
Below: Select a number from the menu, call it n. The set of all numbers that are prime relative to n appears in a row that is labeled Z*n. Select one of the numbers, call it a. Compute a^{n1} by clicking on the Multiply button until the count n1 is reached. The answer in the result field should be 1. Observe:

Below:
Select a number from the menu, call it n. The set of
all numbers that are prime relative to n appears in a row
that is labeled Z*n. Compute the product of all numbers in
Z*n by clicking the Multiply button repeatedly until
no more changes take place.
Observe:
