answered 9 years ago
You can find the answer on this ask question.
updated 9 years ago
You This group can find be found in the .unit_group() method of your ring of integers mod n, see the answer on this ask question.
.unit_group()