#5250: But in multiplicative_generator function for Z/NZ
---------------------------+------------------------------------------------
Reporter: was | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.4.1
Component: number theory | Keywords:
---------------------------+------------------------------------------------
Notice that (ZZ/162ZZ)^* *is* cyclic:
{{{
sage: R = Integers(162)
sage: R(5).multiplicative_order()
54
sage: euler_phi(162)
54
}}}
However, Sage gets this totally wrong:
{{{
sage: R.multiplicative_generator()
Traceback (most recent call last):
...
ValueError: multiplicative group of this ring is not cyclic
}}}
This bug came up for me today while doing some research. I'm glad I
didn't believe Sage :-).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5250>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---