09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

142 NUMBER THEORY<br />

n is odd, n4 and n2 are each congruent to 1, and 2n is congruent to 2; hence<br />

the left side is congruent to I + 1 +2 and thus to 0 modulo 4, and we’re done.<br />

Next, let’s be a bit daring and try m = 12. This value of m ought to<br />

be interesting because it has lots of factors, including the square of a prime,<br />

yet it is fairly small. (Also there’s a good chance we’ll be able to generalize a<br />

proof <strong>for</strong> 12 to a proof <strong>for</strong> general m.) The congruence we must prove is<br />

n”+n6+2n4+2n3+2n2+4n E 0 (mod 12).<br />

Now what? By (4.42) this congruence holds if and only if it also holds modulo<br />

3 and modulo 4. So let’s prove that it holds modulo 3. Our congruence<br />

(4.64) holds <strong>for</strong> primes, so we have n3 + 2n = 0 (mod 3). Careful<br />

scrutiny reveals that we can use this fact to group terms of the larger sum:<br />

n’2+n6+2n4+2n3+2n2+4n<br />

= (n12 +2n4) + In6 +2n2) +2(n3 +2n)<br />

e 0+0+2*0 5 0 (mod 3).<br />

So it works modulo 3.<br />

We’re half done. To prove congruence modulo 4 we use the same trick.<br />

We’ve proved that n4 +n2 +2n = 0 (mod 4), so we use this pattern to group:<br />

n”+n6+2n4+2n3+2n2+4n<br />

= (n12 + n6 + 2n3) + 2(n4 + n2 + 2n)<br />

E 0+2.0 E 0 (mod 4).<br />

QED <strong>for</strong> the case m = 12. QED: Quite Easily<br />

So far we’ve proved our congruence <strong>for</strong> prime m, <strong>for</strong> m = 4, and <strong>for</strong> m = Done.<br />

12. Now let’s try to prove it <strong>for</strong> prime powers. For concreteness we may<br />

suppose that m = p3 <strong>for</strong> some prime p. Then the left side of (4.64) is<br />

np3 + cp(p)nP2 + q(p2)nP + cp(p3)n<br />

= np3 + (p - 1 )np2 + (p2 - p)nP + (p3 - p2)n<br />

= (np3 - npz) + p(np2 - nP) + p2(nP -n) +p3n.<br />

We can show that this is congruent to 0 modulo p3 if we can prove that<br />

n’J3 - nP2 is divisible by p3, that nP2 - n P is divisible by p2, and that n” - n<br />

is divisible by p, because the whole thing will then be divisible by p3. By the<br />

alternative <strong>for</strong>m of Fermat’s theorem we have np E n (mod p), so p divides<br />

np - n; hence there is an integer q such that<br />

np = nfpq

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!