1. [00] What is the smallest positive rational number?
There is no smallest positive rational number. To see why, let be this smallest number, in which case, clearly, , a contradiction. Hence, there is no smallest positive rational number.
2. [00] Is a decimal expansion?
The expression is not a valid decimal expansion, at least according to the definition given in the text on page 21, as it violates the requirement that the sequence of digits doesn’t end with infinitely many s.
3. [02] What is ?
We can simplify the expression using the rules (4) on page 22, and simple arithmetic.
And so, .
4. [05] What is ?
We can simplify the expression using the rules (4) and (6) on page 22, and simple arithmetic.
And so, .
5. [05] We defined real numbers in terms of a decimal expansion. Discuss how we could have defined them in terms of a binary expansion instead, and give a definition to replace Eq. (2).
We could have defined real numbers in terms of a binary expansion by simply using the base two number system instead of base ten.
6. [10] Let and be real numbers. Give a rule for determining whether , , or , based on the decimal representation.
Given and be real numbers, we can define the following relations.
. is equivalent to if and for all .
. is less than if either or ( and) or ( and) for all and .
. is greater than if either or ( and) or ( and) for all and .
7. [M23] Given that and are integers, prove the laws of exponents, starting from the definition given by Eq. (4).
Given integers , ; a positive real number ; and Eq. (4) on page 22, we may prove Eq. (5).
Proposition. for any positive real number and integers , .
Proof. Assume an arbitrary positive real and , integers. We must show that . If , then clearly:
Then, for the inductive step, we consider two cases, and .
Case 1. [.] Assuming for , we must show that . But:
as we needed to show in this case.
Case 2. [.] Assuming for , we must show that . But:
as we needed to show in this case.
Therefore, for any positive real number and integers , as we needed to show. □
Proposition. for any positive real number and integers , .
Proof. Assume an arbitrary positive real and , integers. We must show that . If , then clearly:
Then, for the inductive step, we consider two cases, and .
Case 1. [.] Assuming for , we must show that . But from the previous proposition:
as we needed to show in this case.
Case 2. [.] Assuming for , we must show that . But from the previous proposition:
as we needed to show in this case.
Therefore, for any positive real number and integers , as we needed to show. □
8. [25] Let be a positive integer. Prove that every positive real number has a unique positive th root, by giving a method to construct successively the values in the decimal expansion of the root.
Given a positive real number and positive integer , we may present a method to construct , and in so doing, prove that exists uniquely.
First, determine by evaluating for which integer
and let .
Then, for , we successively determine for which integers ,
for as great as we please.
9. [M23] Given that and are rational, prove the laws of exponents under the assumption that the laws hold when and are integers.
We may prove the laws of exponents for rational exponents, assuming the laws for integer exponents.
Proposition. for any positive real number and rationals , .
Proof. Assume an arbitrary positive real and , rationals. We must show that . But:
Proposition. for any positive real number and rationals , .
Proof. Assume an arbitrary positive real and , rationals. We must show that . But:
10. [18] Prove that is not a rational number.
We may prove that is not a rational number.
Proposition. is irrational.
Proof. Assume that it is not. That is, assume for some positive integers , . That is, assume or equivalently, . But no such positive integers exist. Hence, is irrational. □
11. [10] If and , to how many decimal places of accuracy will we need to know the value of in order to determine the first three decimal places of the decimal expansion of ? [Note: You may use the result of exercise 10 in your discussion.]
As a result of the proof from exercise 10, since is irrational, for and (that is, an irrational power of ), we may never know enough decimal places of in order to determine the first three decimal places of the decimal expansion of .
12. [02] Explain why Eq. (10) follows from Eqs. (8).
Eq. (10) claims that
and by the definition of Eq. (7) and results of Eqs. (8) we have that
Taking logarithms yields
and so by definition of decimal expansion, .
13. [M23] (a) Given that is a positive real number and is a positive integer, prove the inequality . (b) Use this fact to justify the remarks following (7).
First, we must prove a relation.
Proposition. for any positive real numbers and all positive integers .
Proof. Let
by an arbitrary positive real number so that .
We must show that
for all integers ,
or equivalently, that
for .
For , clearly . Then, assuming for , we must show that . But:
For and , this fact tells us that
Since , we have
for the difference , which justifies the remarks following Eq. (7).
14. [15] Prove Eq. (12).
We may prove Eq. (12).
Proposition. if .
Proof. Let . We must show that . By the laws of exponents:
Taking logarithms yields:
As we need to show. □
15. [10] Prove or disprove:
We are able to prove the proposition.
Proposition. if .
Proof. Let . We must show that . But by Eqs. (11) and (12):
As we needed to show. □
16. [00] How can be expressed in terms of and ?
By Eq. (14)
17. [05] What is ? ? ? ? ?
Since ,
Since ,
Since ,
By the law of exponents, that , we have
but since for all positive real numbers and integers ,
is undefined.
18. [10] Prove or disprove: .
We are able to disprove the proposition, by way of counterexample. Consider . .
19. [20] If is an integer whose decimal representation is 14 digits long, will the value of fit in a computer word with a capacity of 47 bits and a sign bit?
If is an integer whose decimal representation is 14 digits long, then we have that , or equivalently that . We can convert this to the binary case by converting logarithms.
Note that , so that . That is, the binary representation of an integer whose decimal representation is 14 digits long will fit within 47 bits (and a sign bit).
20. [10] Is there any simple relation between and ?
and are reciprocals of each other. That is, and .
21. [15] (Logs of logs.) Express in terms of , , and .
We can express in terms of , , and as follows:
22. [20] (R. W. Hamming.) Prove that
with less than 1% error! (Thus a table of natural logarithms and of common logarithms can be used to get approximate values of binary logarithms as well.)
We are able to prove that with less than 1% error.
Proposition. with less than 1% error.
Proof. Let be an arbitrary positive real number. We must show that with less than 1% error; that is, we must show that . But:
as we needed to show. □
23. [M25] Give a geometric proof that based on Fig. 6.
We know from the integral calculus that since by definition and
We can see this geometrically by observing first the areas for
and separately.
We then transform the area for in such a way as to preserve its area, by dividing its height by while multiplying its width by , which yields an equivalent area, but shifted to the right.
These two areas can in fact be arranged continguously, giving us exactly the area for .
24. [15] Explain how the method used for calculating logarithms to the base 10 at the end of this section can be modified to produce logarithms to base 2.
We will show how to calculate and to express the answer in the binary system, as
First we shift the decimal point of to the left or to the right so that we have ; this determines the integer part, . To obtain , we now set and, for ,
The validity of this procedure follows from the fact that
for .
25. [22] Suppose that we have a binary computer and a number , . Show that the following algorithm, which uses only shifting, addition, and subtraction operations proportional to the number of places of accuracy desired, may be used to calculate an approximation to :
[Notes: This method is very similar to the method used for division in computer hardware. The idea goes back in essence to Henry Briggs, who used it (in decimal rather than binary form) to compute logarithm tables, published in 1624. We need an auxiliary table of the constants , , , etc., to as many values as the precision of the computer. The algorithm involves intentional computational errors, as numbers are shifted to the right, so that eventually will be reduced to and the algorithm will terminate. The purpose of this exercise is to explain why it will terminate and why it computes an approximation to .]
The algorithm relies on the identity
and the fact that
so that for initial , .
To see this is the case, note that after L1, since and , we have . At L2, if , , and so we stop with . Otherwise, we continue with . Through L3, we maintain the invariant , until finally , , , and . After L4, is transformed by assignments into , which is equivalent to , the same assertion as previously held before L2, with approaching as approaches , ultimately terminating when .
26. [M27] Find a rigorous upper bound on the error made by the algorithm in the previous exercise, based on the precision used in the arithmetic operations.
We want to determine an upper bound on the error made by the algorithm in the previous exercise, based on the precision , the number of fractional digits. That is, the relative error such that
for initial , .
According to Brigg’s method, we have with . In our approximation, however, we add at most terms, and each is truncated by the limited precision , giving us the following sum:
with all , the worst possible truncation. And according to the method, the above sum is an approximation of a factorization, giving us the following logarithm:
And so, the upper bound on the error based on the precision is precisely:
For example, for and , .
27. [M25] Consider the method for calculating discussed in the text. Let denote the computed approximation to , determined as follows: ; and in the determination of by Eqs. (18), the quantity is used in place of , where and . Here and are small constants that reflect the upper and lower errors due to rounding or trunctation. If denotes the result of the calculations, show that after steps we have
We may prove the bounds of the approximation.
Proposition. after steps.
Proof. We must show that
holds after steps. It is sufficient to show that
since, by taking logarithms and given that :
It also given that
and that
First, we must show that the relation holds for . But this case is given, as:
Then, assuming the relation holds for arbitrary :
we must show it holds for :
We may take squares of the induction hypothesis:
and evalate each part in turn.
For the lower bound, since , we have:
For the upper bound, since , we have:
And for the middle approximation, since , we have:
That is
as we needed to show. □
28. [HM30] (R. Feynman.) Develop a method for computing when , using only shifting, addition, and subtraction (similar to the algorithm in exercise 25), and analyze its accuracy.
The method below computes an approximation to for , using only shifting, addition, and subtraction, similar to the algorithm in exercise 25 in that it uses the same auxiliary table of constants.
Algorithm M (Digit-by-digit exponentiation.). Given a number , , calculate an approximation given machine precision .
While decreasing by , we increase by , so that remains approximately constant.
The upper bound on the error made by the algorithm, based on the precision , the number of fractional digits, can be represented by the relative error such that
for initial , .
According to the digit-by-digit method, we have with . In our approximation, however, we multiply at most factors, and each is truncated by the limited precision , giving us the following product:
with all , the worst possible truncation. And according to the method, the above product is an approximation of a factorization, giving us the following logarithm:
And so, the upper bound on the error based on the precision is precisely:
For example, for
and ,
.
________________________________________________________________________________
Note: Similar algorithms can be given for trigonometric functions; see J. E. Meggitt, IBM J. Res. and Dev. 6 (1962), 210-226; 7 (1963), 237-245. See also T. C. Chen, IBM J. Res. and Dev. 16 (1972), 380-388; V. S. Linsky, Vychisl. Mat. 2 (1957), 90-119; D. E. Knuth, Metafont: The Program (Reading, Mass.: Addison-Wesley, 1986), §120-§147.
29. [HM20] Let be a real number greater than . (a) For what real number is a minimum? (b) For what integer is it a minimum? (c) For what integer is a minimum?
30. [12] Simplify the expression , assuming that and .
We may simplify the expression, assuming and by noting that
or equivalently that