Subgroups of $\mathbb{Z}^*_n$

asked 2024-08-09 11:03:33 +0200

sagelearner gravatar image

updated 2024-08-09 11:04:20 +0200

I am trying to write a code using SAGE to find all subgroups of $\mathbb{Z}^*_n$ where the elements of subgroups are elements of $\mathbb{Z}_n$.

To elaborate, when I am using the command .subgroups(), it returns the subgroups in generator-relator form and not as integers. Is there anyway to do it?

edit retag flag offensive close merge delete

Comments

Looks like duplicate of https://ask.sagemath.org/question/57703/ See answer there.

Max Alekseyev gravatar imageMax Alekseyev ( 2024-08-09 12:10:11 +0200 )edit