Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.3.22 (Find the set $\mathscr{G}$ if $m = 21$)
Exercise 3.3.22 (Find the set $\mathscr{G}$ if $m = 21$)
Find the set defined in Problem 21 when .
Answers
Proof. The Sage instructions
sage: m = 21 sage: inv = [Mod(a,m) for a in range(m) if gcd(a,m) == 1]; inv [1, 2, 4, 5, 8, 10, 11, 13, 16, 17, 19, 20] sage: [a for a in inv if a^((m-1) // 2) == Mod(kronecker(a,m),m)] [1, 20]
show that is the subgroup if . □
Note : For , the same instructions give a greater subgroup with order , which is a divisor of , as expected. Of course, if is prime, has order . Testing all odd composite numbers up to , we observe that the order of is at most , which is expected, since the index of satisfies for composite numbers, if we can prove that is always true (see Problem 23). This threshold is reached for , for which . Every element in the complement of give a proof that is not a prime, since . For instance, for , , but . So the witness shows that is composite, and the number of such witnesses is at least (and if is a non trivial divisor of ). This is the idea for the Solovay-Strassen test for prime numbers.