jbunniii said:
For one thing, it ensures that ##1/(ad - bc)## exists as long as ##ad - bc \neq 0##. This would not be true in general for ##Z_n## where ##n## is not prime. (For example, in ##Z_4##, the element ##2## has no inverse.) What is special about ##Z_p## for prime ##p##?
Z
p is a field if and only if p is prime.
Suppose p, prime, where P>=2. and Z
p = {0, 1,...p-1}
Z
p satisfies field axioms of closure, commutativity, and associativity by addition through integer properties. Additive identity also exists as in integers. Additive inverse also exists: For x in Zp, take -x(mod p). Then x + (-x) = 0 mod p.
Closure under multiplication also occurs since for x and y in Zp, xy mod p in Zp exists.
Commutativity, associativity, and identity of multiplication also exists by property of integers.
For x in Zp, the multiplicative inverse 1/x cannot occur in Zp. So ax + bp = 1
Then ax= 1 mod p
So, a is the multiplicative inverse of x.
If p is not prime, then Zp is not a field.
Since p is not prime, p= mn where m,n ≠0 and m,n≠1. If Zp is a field, then m would have a multiplicative inverse such that mm
-1= 1.
Then n*1 = n *(mm
-1) = (mn)m
-1 = pm
-1 = 0.
But n≠0, so proof by contradiction holds.
Zp cannot be a field if p is not prime.