Some Solutions For Burton's Elementary Number Theory: 2 Divisibility Theory in The Integers
Some Solutions For Burton's Elementary Number Theory: 2 Divisibility Theory in The Integers
Some Solutions For Burton's Elementary Number Theory: 2 Divisibility Theory in The Integers
1
(
p2 if p - n
gcd(a3 , b2 ) = p2 gcd(pm3 , n2 ) = .
p3 if p | n
6 Number-theoretic functions
6.1 The sum and number of divisors
7(b) σ(n) is an odd integer if and only if n is a perfect square or twice a perfect square. [Hint: If p is an odd prime,
then 1 + p + · · · + pk is odd only when k is even.]
Solution:
Now we can prove both directions of the problem using this lemma and the fact that when n = 2k pk11 · · · pkr r where pi
are distinct odd primes (note that k may be 0), we have σ(n) = (1+2+· · ·+2k )(1+p1 +· · ·+pk11 ) · · · (1+pr +· · ·+pkr r ).
Assume σ(n) is odd. Then each (1 + pi + · · · + pki i ) is odd, and so all ki = 2li are even by the lemma. If k = 2l
is even then n = (2l pl11 · · · plrr )2 is a perfect square. If k = 2l + 1 is odd then n = 2(2l pl11 · · · plrr )2 is twice a perfect
square.
Assume n is a perfect square or twice a perfect square. Then n = 2k pk11 · · · pkr r where the pi are distinct odd primes
and the ki are even, so by the lemma σ(n) = (1 + 2 + · · · + 2k )(1 + p1 + · · · + pk11 ) · · · (1 + pr + · · · + pkr r ) is odd.
2
8 Primitive roots and indices
8.1 The order of an integer modulo n
4 Assume that the order of a modulo n is h and the order of b modulo n is k. Show that the order of ab modulo n
divides hk; in particular if gcd(h, k) = 1, then ab has order hk.
Solution: Let m be the order of ab modulo n. We have(ab)hk ≡ ahk bhk ≡ 1(mod n) and so by Theorem 8.1, m | hk.
Now assume gcd(h, k) = 1. Then 1 ≡ (ab)mh ≡ amh bmh ≡ bmh and so k | mh. Since gcd(h, k) = 1 we know k | m.
Similarly, h | m. But gcd(h, k) = 1 implies that hk | m. We already knew that m | hk and so we get m = hk.