Let a and n be relatively prime positive integers. The smallest positive integer k so that ak ≡ 1 (mod n) is called the order of a modulo n. The order of a modulo n is usually denoted by ordna. If it happens that ordna = f(n), where f is the Euler phi function, then a is said to be a primitive root modulo n.
It is well known which integers have primitive roots. It is also known that if the positive integer n has a primitive root, then it has a total of f(f(n)) incongruent primitive roots. The purpose of this lab is to attempt to discover which integers have primitive roots.
|