Crystaltech web hosting - 4.1 ANSWERS TO EXERCISES 567 are moved toward
Thursday, October 18th, 20074.1 ANSWERS TO EXERCISES 567 are moved toward this interval. In this range 3 + -1 + -2 + 6 + 8 -+ 2 + 7 + 0 and4 -+ 1 + 5 + 6. Thus 1 = 7~2 -13~21+7~22-13~23-13~25-13~2g+7~210. Note: The choice do, dl, d2, = 5, -3, 3, 5, -3, 3, . . also yields a binary basis. For further details see Math. Comp. 18 (1964), 537-546; A. D. Sands, Acts Mathematics, Acad. Sci. Hung., 8 (1957), 65-86. 31. (See also the related exercises 3.2.2-11, 4.3.2-13, 4.6.2-22.) (a) By multiplying numerator and denominator by suitable powers of 2, we may assume that u = ( . . . U~U~UO)~ and v = ( . . v22112r0)2 are 2-adic integers, where vo = 1. The following computational method now determines w, using the notation ucn) to stand for the integer (zL~-~ . ..u0)2 = umod2 when n > 0: Let wo = uo and w(l) = WO. For n = 1, 2, , assume that we have found an integer wCn) = (~~-1.. WO)~ such that 2~~~) E wCn)wCn) (modulo 2 ). Then we have u(~+ ) E v(~+ )wJ(~) (modulo 2 ), hence wn = 0 or 1 according as the quantity (p+l) _ v(n+l)w(n) )mod2 n+l is 0 or 2n. (b) Find the smallest integer k such that 2k E 1 (modulo 2n $1). Then we have 1/(2n + 1) = m/(2k -1) for some integer m, 1 5 m < 2k-1. Let cx be the k-bit binary representation of m; then (O.acucu . )2 times 2n + 1 is (0.111.. . )2 = 1 in the binary system, and (. (YCYCY)~times 2n + 1 is (. . . 111)~ = -1 in the 2-adic system. (c) If u is rational, say u = m/(2%) where n is odd and positive, the 2-adic representation of u is periodic, because the set of numbers with periodic expansions includes -l/n and is closed under the operations of negation, division by 2, and addition. Conversely, if UN+X = UN for all N 2 p, the 2-adic number (2 -1)2-P u is an integer. (d) The square of any number of the form ( . . . uzul1)2 has the form ( . . .001)2, hence the condition is necessary. To show the sufficiency, we can use the following procedure to compute v = fi when nmod8 = 1: Hl. [Initialize.] Set m + (n -1)/8, k + 2, ~0 + 1, u1 + 0, v + 1. (During this algorithm we will have u = (vk-, . . . v~v,J)~ and v2 = n -2k+ m.) H2. [Transform.] If m is even, set vk t 0, m t m/2. Otherwise set uk +-1, m +- (m -v -2k- )/2, v + v + 2k. H3. [Advance k.] Increase k by 1 and return to H2. 1 32. A generalization appears in Math. Comp. 29 (1975), 84-86. 33. Let K, be the set of all such n-digit numbers, so that k, = llKnll. If S and T are any finite sets of integers, we shall say S -T if S = T + x for some integer 2, and we shall write k,(S) = IjK,JS)ll, w here &(S) is the family of all subsets of K, that are -S. When n = 0, we have k,(S) = 0 unless llSl 5 1, since zero is the only O-digit number. When n 2 1 and S = (~1, . , sr}, we have L(S)= u u {{hb+al,…,t,b+a,} 1 J13