Gapplet

We consider the group G of the invertible elements of the multiplicative monoid Z/mZ. If you input a sequence of invertible elements, we compute the order of the subgroup they generate, and compare it to |G|.

Input the modulus m, e.g., 26 
Input a sequence of elements elements of G, e.g., 
  3, 17 when m = 26.
 
Determine the order of the subgroup H of G generated by the sequence of elements.