Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: primitive root error
Replies: 5   Last Post: Sep 21, 2012 4:21 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dan Dubin

Posts: 13
Registered: 3/26/09
primitive root error
Posted: Sep 14, 2012 12:15 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

The number theoretic function PrimitiveRoot[n] is supposed to give the
smallest generator for the multiplicative group of integers module n
relatively prime to n. However, Mathematica 8 says that
PrimitiveRoot[18] equals 11. This is incorrect. While this is a
generator, it is not the smallest generator of the group. The correct
answer is 5:

In[1]:= Table[Mod[5^n, 18], {n, 0, 6}]

Out[1]= {1, 5, 7, 17, 13, 11, 1}




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.