/math-fun

simple math functionalities

Primary LanguagePython

Maths-fun

Order and subgroups

Given a multiplicative group $Z_{n}$ where n is a natural number n > 0, this script calculates the following:

  • For each elemet of $Z_{n}$

    • order element
    • subgroup generated by element
  • usage: python3 order-subgroup.py 5