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.

148 NUMBER THEORY<br />

40 If the radix p representation of n is (a,,, . . . al ao)v, prove that<br />

41<br />

42<br />

Wp epCn!) E (-l)“P(n!‘a,!. . . a,! ao! (mod p)<br />

(The left side is simply n! with all p factors removed. When n = p this<br />

reduces to Wilson’s theorem.)<br />

a Show that if p mod. 4 = 3, there is no integer n such that p divides<br />

n* + 1. Hint: Use :Fermat’s theorem.<br />

b But show that if p mod 4 = 1, there is such an integer. Hint: Write<br />

(P - I)! as (II,=, ‘p~‘i’2 k(p - k)) and think about Wilson’s theorem.<br />

Consider two fractions m/n and m//n’ in lowest terms. Prove that when<br />

the sum m/n+m’/n’ is reduced to lowest terms, the denominator will be<br />

nn’ if and only if n I n’. (In other words, (mn’+m’n)/nn’ will already<br />

be in lowest terms if and only if n and n’ have no common factor.)<br />

43 There are 2k nodes at level k of the Stern-Brocot tree, corresponding to<br />

the matrices Lk Lkp’ R ..I Rk. Show that this sequence can be obtained<br />

by starting with Lk and’then multiplying successively by<br />

0 -1<br />

1 2p(n) + 1 ><br />

<strong>for</strong> 1 6 n < 2k, where p(n) is the ruler function.<br />

44 Prove that a baseball player whose batting average is .316 must have<br />

batted at least 19 times. (If he has m hits in n times at bat, then<br />

m/n E [.3155, .3165).)<br />

45 The number 9376 has the peculiar self-reproducing property that<br />

9376* = 87909376<br />

How many 4-digit numbers x satisfy the equation x2 mod 10000 = x?<br />

How many n-digit numbers x satisfy the equation x2 mod 10n = x?<br />

46 a Prove that if nj = l and nk = 1 (mod m), then nscd(jtk) = 1.<br />

b Show that 2” f 1 (mod n), if n > 1. Hint: Consider the least prime<br />

factor of n.<br />

47<br />

48<br />

Show that if nmp’ E 1 (mod m) and if n(“-‘)/p $ 1 (mod m) <strong>for</strong> all<br />

primes such that p\(m - l), then m is prime. Hint: Show that if this<br />

condition holds, the numbers nk mod m are distinct, <strong>for</strong> 1 6 k < m.<br />

Generalize Wilson’s theorem (4.49) by ascertaining the value of the expression<br />

u-I1

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

Saved successfully!

Ooh no, something went wrong!