a. 2k−4=7q, so q is even. Thus k=2+7x for some integer x; that is k≡2 (mod 7).
c 2k≡0 (mod 9), so 2k=9q. Thus 2 q, so k=9x for some integer x; that is k≡0 (mod 9).
3.
a. 10≡0 (mod k), so k 10: k=2, 5, 10.
c.k2−3=qk, so k 3. Thus k=1, 3 so, (as k≥2 by assumption) k=3.
5.
a.a≡b (mod 0) means a−b=q·0 for some q, that is a=b.
6.
a.a≡a for all a because n (a−a). Hence if n (a−b), then n (b−a). Hence if a−b=xn and b−c=yn, , then a−c=(x+y)n.
7. If n=pm and a≡b(mod n), then a−b=qn=qpm. Thus a≡b(modm).
8.
a. In , so , . Since 515=6·85+5 we get . Hence 10515≡5(mod7).
9.
a. In , so . Since 1027=4·256+3, we get . The unit decimal is 7.
11. in . If then 2 p; if , then 3 p. So or .
12.
a. in , so respectively.
13. in . Taking each case separately:
15. One of a, a+1 must be even so 2 a(a+1)(a+2); similarly, one of a, a+1, a+2 is a multiple of 3 [in fact a≡0 means 3 a, a≡1 means 3 a+2, and a≡2 means 3 a+1]. Hence 3 a(a+1)(a+2). But 2 and 3 are relatively prime so 2·3=6 also divides a(a+1)(a+2). Hence
17. Since in , we examine every case.
Hence in all cases.
18.
a. Since in , it suffices to show each of these is a cube in . Look at the cubes in , , , and Thus every residue is a cube in .
19.
a. Since in , we get respectively. Clearly does not occur in .
21. We have n=d0+10d1+102d2++10kdk.
a.
22.
a. By the euclidean algorithm,
Hence (−8)·13≡1(mod35), so is the inverse of in . Then gives .
c. Euclidean algorithm:
Hence the inverse of is so gives .
23.
a. Let be the inverse of in , so in , then multiply by to get , that is , that is .
24.
a. If and are the inverses of and respectively in , then and . Multiplying, we find , that is . Hence is the inverse of in .
25.
a. Multiply equation 2 by to get . Subtract this from equation 1: . But in , so . Then equation 2 gives .
c. Multiply equation 2 by to get . Comparing this with the first equation gives an impossibility. So there is no solution to these equations in (Compare with (a)).
e. Multiply equation 2 by to get , which is just equation 1. Hence, we need only solve equation 2. If is arbitrary in (so , then . Thus the solutions are:
27. If an expression x2+ax is given where a is a number, we can complete the square by adding . Then . The same thing works in except is replaced by the inverse of if it exists.
a. means in . The inverse of is in , so the square is completed by adding to both sides. The result is
The only members of which square to are and . (See Exercise 26.) Hence or ; that is or .
c. gives in . The inverse of is in so add to both sides
But is not a square in so there is no solution.
e. Since n is odd, gcd(2, n)=1, so has an inverse in ; call it . Now in means . Complete the square by adding to both sides. The result is
Thus, there is a solution if and only if is a square in .
29.
a. Let in . If gcd(a, n)=1, then a has an inverse in , say . Then .
31. (1) ⇒ (2). Assume (1) holds but n is not a power of a prime. Then n=pka where p is a prime, k≥1, and a>1 has p / a. Then gcd(n, a)=a>1, so has no inverse in . But too. In fact means nan whence pan. By Euclid's lemma, this implies pa, contrary to choice.
33. In , . Thus , , and finally . Similarly, in ,
34.
a. If ax≡b has a solution x in , then b−ax=qn, q an integer, so b=ax+qn. It follows that d=gcd(a, n) divides b. Conversely, if db write b=qd, q an integer. Now d=ra+sn for integers r and s (Theorem 3 §1.2), so b=qd=(qr)a+(qs)n. Thus, (qr)a≡b(modn) and we have our solution.
35. Working modulo p, means . Thus in so or by Theorem 7.
37.
a. If n=p2m and a=pm, then a6≡0(modn) and a2≡0(modn). Hence an6≡a.