Mathematics · Book 3 · Bachelor Year 1

University Mathematics — Year 1

University Mathematics — Year 1 · Bachelor Year 1

10Real Numbers

All of analysis rests on one property that distinguishes R\R from Q\Q: every nonempty set bounded from above has a least upper bound. This chapter states it precisely, derives its first consequences — the Archimedean property, the floor function, the density of the rationals and of the irrationals — and sets up the vocabulary (sup, inf, max, min) used constantly from Chapter 11 onward.

10.1 The upper bound property

Definition 10.1 (Bounds, sup and inf)

Let ARA \subseteq \R be nonempty. A real MM is an upper bound of AA when aMa \leq M for all aAa \in A; AA is bounded above when it has an upper bound (similarly below, with lower bounds; bounded means both). A maximum of AA is an upper bound belonging to AA.

The supremum supA\sup A is the least upper bound of AA, when it exists; the infimum infA\inf A is the greatest lower bound.

Theorem 10.2 (Completeness axiom of R\R)

R\R is an ordered field containing Q\Q in which every nonempty subset bounded above has a supremum.

Proof. Admitted at this level.

Remark 10.3

We take this as the defining axiom of R\R; constructing a model (by Dedekind cuts or by Cauchy sequences of rationals) and proving its uniqueness is honest but long, and is left for further study. Note that Q\Q fails the property: {xQ:x2<2}\{x \in \Q : x^2 < 2\} is bounded above but has no least upper bound in Q\Q — its candidate, 2\sqrt 2, is missing (Example 1.11). By passing to opposites (sup(A)=infA\sup(-A) = -\inf A), every nonempty set bounded below has an infimum.

Proposition 10.4 (The ε\varepsilon-characterization)

Let AA \neq \emptyset be bounded above and sRs \in \R. Then s=supAs = \sup A if and only if

  1. ss is an upper bound: aA\forall a \in A, asa \leq s; and
  2. nothing smaller is: ε>0\forall \varepsilon > 0, aA\exists a \in A, a>sεa > s - \varepsilon.

Proof. If s=supAs = \sup A: (1) holds by definition, and for (2), sε<ss - \varepsilon < s is not an upper bound, which is exactly the existence of a>sεa > s - \varepsilon. Conversely, (1) says ss is an upper bound; (2) says no t<st < s is an upper bound (take ε=st\varepsilon = s - t): ss is the least one.

Example 10.5

sup(0,1)=1\sup \intoo{0}{1} = 1, not attained (no maximum); sup[0,1]=1=max\sup \intcc{0}{1} = 1 = \max. For A={11n:nN}A = \{1 - \frac 1n : n \in \N^*\}: supA=1\sup A = 1, not attained; infA=minA=0\inf A = \min A = 0. A maximum, when it exists, is the supremum; the whole point of sup\sup is to have a substitute when the maximum does not exist.

The set A = \1 - 1n : n ∈ ℕ*\ on the number line: its points pile up toward 1 without reaching it. Every number ≥ 1 is an upper bound (the ray), and nothing smaller is, because an element of A enters each interval (1 - , 1): the two clauses of  in one picture. The supremum is the left endpoint of the ray of upper bounds — and the completeness axiom is precisely the guarantee that this ray always has a left endpoint.
The set A={11n:nN}A = \{1 - \frac1n : n \in \N^*\} on the number line: its points pile up toward 11 without reaching it. Every number 1\geq 1 is an upper bound (the ray), and nothing smaller is, because an element of AA enters each interval (1ε,1)\intoo{1 - \varepsilon}{1}: the two clauses of Proposition 10.4 in one picture. The supremum is the left endpoint of the ray of upper bounds — and the completeness axiom is precisely the guarantee that this ray always has a left endpoint.

Example 10.6 (Computing suprema in practice)

Two full workouts of Proposition 10.4.

The set A={x+1x:x>0}A = \{x + \frac1x : x > 0\}. For every x>0x > 0, x+1x2=(x1/x)210x + \frac1x - 2 = \frac{(\,\sqrt x - 1/\sqrt x\,)^2}{1} \geq 0, so 22 is a lower bound; and 2=1+11A2 = 1 + \frac11 \in A: therefore infA=minA=2\inf A = \min A = 2, attained at x=1x = 1. Above, AA is unbounded (x+1x>xx + \frac1x > x can exceed any MM by Theorem 10.10): supA\sup A does not exist in R\R (it is ++\infty in R\overline\R).

The set B={mm+n:m,nN}B = \bigl\{\frac{m}{m + n} : m, n \in \N^*\bigr\}. Every element lies in (0,1)\intoo{0}{1}, so 00 and 11 are bounds. Neither is attained: mm+n=1\frac{m}{m+n} = 1 would force n=0n = 0. For the supremum, freeze n=1n = 1 and let mm grow: mm+1=11m+1>1ε\frac{m}{m+1} = 1 - \frac{1}{m+1} > 1 - \varepsilon as soon as m+1>1εm + 1 > \frac1\varepsilon (Archimedes): supB=1\sup B = 1. Symmetrically (m=1m = 1, nn large), infB=0\inf B = 0. The closing insight: to pin a supremum, one well-chosen one-parameter path inside the set suffices — here the path n=1n = 1 — and the ε\varepsilon-characterization asks for nothing more.

Example 10.7 (The infimum mirror)

The infimum has its own ε\varepsilon-characterization, obtained from Proposition 10.4 through infA=sup(A)\inf A = -\sup(-A): i=infAi = \inf A iff ii bounds AA below and, for every ε>0\varepsilon > 0, some aAa \in A has a<i+εa < i + \varepsilon. A workout with both bounds at once: let

A={(1)n+1n:nN}={0, 32, 23, 54, 45, }.A = \Bigl\{(-1)^n + \frac1n : n \in \N^*\Bigr\} = \Bigl\{0,\ \tfrac32,\ -\tfrac23,\ \tfrac54,\ -\tfrac45,\ \dots\Bigr\} .

Even indices give 1+1n321 + \frac1n \leq \frac32, with equality at n=2n = 2: since also the odd-index values are 0<32\leq 0 < \frac32, we get supA=maxA=32\sup A = \max A = \frac32. Odd indices give 1+1n>1-1 + \frac1n > -1, decreasing toward 1-1: every element of AA is >1> -1, and 1+ε-1 + \varepsilon is beaten by 1+1n-1 + \frac1n for odd n>1εn > \frac1\varepsilon: infA=1\inf A = -1, not attained. One set, all four behaviors on display: a supremum that is a maximum, an infimum that is not a minimum.

Remark 10.8 (Common pitfalls with sup and inf)

Four errors account for most lost points. (i) Confusing sup\sup and max\max: supA\sup A need not belong to AA; write max\max only after exhibiting an element of AA that is an upper bound. (ii) Passing strict inequalities to the supremum: if a<ba < b for all aAa \in A, one may only conclude supAb\sup A \leq b — witness A=(0,1)A = \intoo{0}{1}, b=1b = 1. (iii) Writing supA\sup A before checking legality: the symbol requires AA nonempty and bounded above (Method 10.18); sup\sup \emptyset and supN\sup \N are undefined in R\R (the conventions of R\overline\R are a separate, explicit act). (iv) Set operations: sup(AB)=max(supA,supB)\sup(A \cup B) = \max(\sup A, \sup B) always, but nothing general holds for ABA \cap B — it may be empty, and even when it is not, sup(AB)\sup(A \cap B) can be far below min(supA,supB)\min(\sup A, \sup B): take A={0,2}A = \{0, 2\} and B={0,3}B = \{0, 3\}, where sup(AB)=0\sup(A \cap B) = 0.

Example 10.9 (Finite sets have maxima — a lemma used silently)

Every finite nonempty FRF \subseteq \R has a maximum (and a minimum). Induction on the number of elements: a singleton {a}\{a\} has max=a\max = a; if the claim holds for nn-element sets and FF has n+1n + 1 elements, pick any aFa \in F: the set F{a}F \setminus \{a\} has a maximum mm, and maxF\max F is mm if ama \leq m, else aa. No completeness is involved — this is pure order plus induction, valid already in Q\Q — yet the lemma deserves one honest statement because the coming proofs invoke it silently: the floor construction below (“a set of integers trapped in a finite range has a greatest element”), every max(u0,,uN1,)\max(\abs{u_0}, \dots, \abs{u_{N-1}}, \dots) bound in Chapter 11, every “take the largest of the finitely many δ\deltas” in Chapter 13. Infinite sets are where maxima die and suprema take over: this chapter exists for the infinite case.

Theorem 10.10 (Archimedean property)

For every xRx \in \R there is nNn \in \N with n>xn > x. Equivalently: for all ε>0\varepsilon > 0 and y>0y > 0, some multiple nεn\varepsilon exceeds yy.

Proof. Suppose not: some xx is an upper bound of N\N. Then s=supNs = \sup \N exists (Theorem 10.2). By Proposition 10.4 (2) with ε=1\varepsilon = 1, there is nNn \in \N with n>s1n > s - 1; but then n+1Nn + 1 \in \N and n+1>sn + 1 > s, contradicting that ss is an upper bound. For the second form, let ε>0\varepsilon > 0 and y>0y > 0: the first form applied to x=yεx = \frac{y}{\varepsilon} produces nNn \in \N with n>yεn > \frac{y}{\varepsilon}, and multiplying by ε>0\varepsilon > 0 (which preserves strict inequalities) gives nε>yn\varepsilon > y. Conversely, the second form with ε=1\varepsilon = 1 and y=xy = x recovers the first for x>0x > 0, and n=1n = 1 handles x0x \leq 0: the two statements are strictly equivalent.

Example 10.11 (Archimedes at work)

Three immediate uses, constantly needed later. (i) No positive real is below every 1n\frac1n: if 0<ε0 < \varepsilon, pick n>1εn > \frac1\varepsilon; then 1n<ε\frac1n < \varepsilon. In other words, R\R contains no infinitesimals — the informal “1n\frac1n becomes arbitrarily small” is exactly this theorem. (ii) Explicit thresholds: how large must nn be for 1n2106\frac{1}{n^2} \leq 10^{-6}? It suffices that n103n \geq 10^3 — Archimedes guarantees such nn exist, and the algebra locates them. (iii) Powers beat any bound: 2nn+12^n \geq n + 1 (induction), so for every MM some power of 22 exceeds MM: the geometric growth used for the dyadics in Exercise 10.8. The closing insight: the Archimedean property is the licence behind every phrase of the form “take nn large enough” — from now on we use that phrase freely, and this example is its one-time justification.

Theorem 10.12 (Floor function)

For every xRx \in \R there is exactly one integer, the floor x\lfloor x \rfloor, with

xx<x+1.\lfloor x \rfloor \leq x < \lfloor x \rfloor + 1 .

Proof. Existence. The set E={kZ:kx}E = \{k \in \Z : k \leq x\} is nonempty: by Theorem 10.10 there is mNm \in \N with m>xm > -x, and then m<x-m < x, so mE-m \in E. It is bounded above (by any integer n>xn > x, which exists for the same reason), so, being a set of integers trapped in the finite range [ ⁣[m,n] ⁣]\intint{-m}{n}, it has a greatest element k=maxEk = \max E. Then kxk \leq x, and k+1Ek + 1 \notin E means x<k+1x < k + 1.

Uniqueness. If kk and kk' both satisfy the inequalities, then kx<k+1k \leq x < k' + 1 gives kkk \leq k', and symmetrically kkk' \leq k.

Example 10.13 (Floors in practice)

3.7=3\lfloor 3.7 \rfloor = 3, 5=5\lfloor 5 \rfloor = 5, and 3.7=4\lfloor -3.7 \rfloor = -4: the floor goes down, not toward 00. Two consequences of uniqueness in Theorem 10.12 that we will use silently. First, for nZn \in \Z,

x+n=x+n,\lfloor x + n \rfloor = \lfloor x \rfloor + n ,

because x+n\lfloor x \rfloor + n is an integer satisfying the two defining inequalities for x+nx + n — and only one integer does. Second, \lfloor \, \cdot \, \rfloor is nondecreasing: if xyx \leq y then xxy<y+1\lfloor x \rfloor \leq x \leq y < \lfloor y \rfloor + 1, and an integer <y+1< \lfloor y \rfloor + 1 is y\leq \lfloor y \rfloor. Beware, however, that 2x2x\lfloor 2x \rfloor \neq 2\lfloor x \rfloor in general: x=0.6x = 0.6 gives 1.2=10=20.6\lfloor 1.2 \rfloor = 1 \neq 0 = 2\lfloor 0.6 \rfloor.

What is true is a worked identity worth keeping (Hermite’s, in its simplest case): for every real xx,

x+x+12=2x.\lfloor x \rfloor + \Bigl\lfloor x + \frac12 \Bigr\rfloor = \lfloor 2x \rfloor .

Write x=x+ux = \lfloor x\rfloor + u with u[0,1)u \in \intco{0}{1} and separate two cases. If u<12u < \frac12: the left side is x+x=2x\lfloor x\rfloor + \lfloor x\rfloor = 2\lfloor x\rfloor, and 2x=2x+2u2x = 2\lfloor x\rfloor + 2u with 2u[0,1)2u \in \intco{0}{1}, so the right side is 2x2\lfloor x\rfloor too. If u12u \geq \frac12: the left side is x+(x+1)\lfloor x\rfloor + (\lfloor x\rfloor + 1), and 2u[1,2)2u \in \intco{1}{2} makes the right side 2x+12\lfloor x\rfloor + 1. The closing insight: x+12\lfloor x + \frac12\rfloor is the rounding of xx to the nearest integer, so the identity says that floor plus rounding equals floor of the double — and the case split on the fractional part uu is the standard technique behind every floor identity (Exercises 10.2 and 10.3 run on it too).

Theorem 10.14 (Density of Q\Q and of RQ\R \setminus \Q)

Between any two reals x<yx < y there lie a rational and an irrational.

Proof. A rational. By Theorem 10.10, pick nNn \in \N^* with n>1yxn > \frac{1}{y - x}, so nynx>1ny - nx > 1. Let m=nx+1m = \lfloor nx \rfloor + 1. On one side, nx<nx+1=mnx < \lfloor nx \rfloor + 1 = m (Theorem 10.12); on the other, m=nx+1nx+1<nym = \lfloor nx \rfloor + 1 \leq nx + 1 < ny. Dividing by nn: x<mn<yx < \frac mn < y.

An irrational. Apply the previous point to the pair x2<y2x - \sqrt 2 < y - \sqrt 2: some rational qq lies between them, and then q+2(x,y)q + \sqrt 2 \in \intoo{x}{y} is irrational (if q+2q + \sqrt 2 were rational, so would be 2\sqrt 2).

Example 10.15 (Running the proof of density)

The proof is an algorithm; let us execute it on x=1.414x = 1.414 and y=2y = \sqrt 2. Since 1.41422=1.99996164<21.4142^2 = 1.99996164 < 2, we have 2>1.4142\sqrt 2 > 1.4142, so yx>0.0002y - x > 0.0002 and 1yx<5000\frac{1}{y - x} < 5000: the choice n=5000n = 5000 is legitimate. Then nx=7070nx = 7070, so m=7070+1=7071m = \lfloor 7070 \rfloor + 1 = 7071, and the rational produced is

mn=70715000=1.4142,1.414<1.4142<2.\frac{m}{n} = \frac{7071}{5000} = 1.4142, \qquad 1.414 < 1.4142 < \sqrt 2 .

The closing insight: the proof needs nn only slightly larger than 1yx\frac{1}{y-x}, and returns the first multiple of 1n\frac 1n beyond xx. Density is not an abstract miracle — it is long division in disguise, a theme developed at length in the weekend problem (Problem 10.1).

Remark 10.16 (Where completeness is used next)

Theorem 10.2 is the single non-algebraic axiom of this book, and every existence theorem of analysis is that axiom wearing different clothes: the monotone convergence theorem (Chapter 11), the Bolzano–Weierstrass theorem (Chapter 12), the intermediate value and extreme value theorems (Chapter 13), and the very definition of the integral as a supremum of lower sums (Chapter 15). The Year 3 volume builds measure theory and Hilbert spaces on the same single axiom. When a proof in the coming chapters produces a real number out of thin air, look for the hidden supremum.

Remark 10.17 (Between discreteness and density)

Z\Z and Q\Q sit at opposite extremes inside R\R: around each integer there is a gap of length 11 containing no other (discreteness — this is what makes the floor well defined), while between any two reals there are infinitely many rationals (density). Remarkably, for additive subgroups of R\R there is nothing in between: Exercise 10.9 proves that such a subgroup is either of the form αZ\alpha\Z (discrete) or dense — a dichotomy that powers the density of {sinn}\{\sin n\} in Chapter 11 and the constructive monster of Problem 13.1. General sets, of course, mix the behaviors freely: ZQ[0,1]\Z \cup \Q\cap\intcc{0}{1} is discrete far away and dense in the middle.

Method 10.18 (Proving equalities with sup and inf)

To prove supA=s\sup A = s: check that ss bounds AA above, then produce, for each ε>0\varepsilon > 0 (or for a sequence ε=1n\varepsilon = \frac 1n), an element of AA above sεs - \varepsilon. To compare suprema, use: AB    supAsupBA \subseteq B \implies \sup A \leq \sup B; and for all a,ba, b: sup(A+B)=supA+supB\sup(A + B) = \sup A + \sup B, where A+B={a+b}A + B = \{a + b\} (Exercise 10.5). Never write supA\sup A before knowing AA is nonempty and bounded above.

10.2 Intervals

Proposition 10.19 (Characterization of intervals)

A subset IRI \subseteq \R is an interval (one of the familiar types (a,b)\intoo{a}{b}, [a,b]\intcc{a}{b}, [a,b)\intco{a}{b}, (a,b]\intoc{a}{b}, half-lines, R\R, \emptyset, singletons) if and only if it is convex:

x,yI, zR,xzy    zI.\forall x, y \in I,\ \forall z \in \R, \quad x \leq z \leq y \implies z \in I .

Proof. Every listed type is clearly convex. Conversely, let II be convex and nonempty. Set a=infIa = \inf I if II is bounded below, else a=a = -\infty; likewise b=supIb = \sup I or ++\infty. We claim (a,b)I[a,b]\intoo{a}{b} \subseteq I \subseteq \intcc{a}{b} (with obvious conventions at ±\pm\infty). The second inclusion is the definition of bounds. For the first, let z(a,b)z \in \intoo{a}{b}: since z>az > a, zz is not a lower bound (or a=a = -\infty), so some xIx \in I has x<zx < z; similarly some yIy \in I has y>zy > z; convexity puts zIz \in I.

It remains to read off the type from the double inclusion (a,b)I[a,b]\intoo{a}{b} \subseteq I \subseteq \intcc{a}{b}: the sets squeezed between an open interval and its closure differ from (a,b)\intoo{a}{b} only by the presence or absence of the (finite) endpoints. Explicitly: if a,bRa, b \in \R, the four possibilities for (aI, bI)(a \in I,\ b \in I) give (a,b)\intoo{a}{b}, [a,b)\intco{a}{b}, (a,b]\intoc{a}{b}, [a,b]\intcc{a}{b} (including the degenerate cases a=ba = b: singleton if aIa \in I); if a=a = -\infty and bRb \in \R, one gets (,b)\intoo{-\infty}{b} or (,b]\intoc{-\infty}{b}; symmetrically for aRa \in \R, b=+b = +\infty; and a=a = -\infty, b=+b = +\infty gives I=RI = \R. Every case is on the list: done.

Remark 10.20 (Why convexity is the right test)

The proposition converts a geometric definition (a list of ten shapes) into a one-line logical test, and the test is what one actually uses: to prove that a set is an interval, never chase which of the ten shapes it is — verify convexity and let the proposition sort out the type. The intermediate value theorem of Chapter 13 will be stated exactly this way (“the continuous image of an interval is an interval”), and its proof produces the convexity, not the shape.

Remark 10.21 (Extended real line)

It is convenient to adjoin two symbols and work in R=R{,+}\overline\R = \R \cup \{-\infty, +\infty\}, with the conventions supA=+\sup A = +\infty when AA is not bounded above and sup=\sup \emptyset = -\infty. Then every subset of R\R has a supremum in R\overline\R — a notational comfort used freely for limits in Chapter 11.

Example 10.22 (Computing in R\overline\R)

With the conventions in force: supZ=+\sup \Z = +\infty, infZ=\inf \Z = -\infty; for A={n+(1)nn:nN}={0,4,0,8,}{0}A = \{n + (-1)^n n : n \in \N\} = \{0, 4, 0, 8, \dots\} \cup \{0\}, supA=+\sup A = +\infty (the even terms 2n2n are unbounded) and infA=minA=0\inf A = \min A = 0; and sup=inf=+\sup\emptyset = -\infty \leq \inf\emptyset = +\infty — the one set whose supremum is smaller than its infimum, a reminder that the conventions are chosen to make sup\sup increasing and inf\inf decreasing with respect to inclusion:

AB    supAsupBandinfAinfB,A \subseteq B \implies \sup A \leq \sup B \quad\text{and}\quad \inf A \geq \inf B ,

now valid with no nonemptiness caveat. What the conventions do not provide is arithmetic: ++()+\infty + (-\infty) and 0×(+)0 \times (+\infty) stay undefined, and every algebraic manipulation of suprema must first check it never forms these. The extended line is bookkeeping, not a number system.

Example 10.23 (The supremum that escaped Q\Q)

Return to the set of the opening remark, A={xQ:x2<2}A = \{x \in \Q : x^2 < 2\}, and compute its supremum in R\R. It is nonempty (1A1 \in A) and bounded above by 1.51.5 (if x>1.5x > 1.5 then x2>2.25>2x^2 > 2.25 > 2), so s=supAs = \sup A exists. We claim s=2s = \sqrt 2 (the real number built in Exercise 10.12). Upper bound: every aAa \in A satisfies a<2a < \sqrt2 — for a0a \leq 0 this is clear, and for a>0a > 0, a2a \geq \sqrt2 would give a22a^2 \geq 2. Nothing smaller works: given t<2t < \sqrt2, density (Theorem 10.14) provides a rational qq with max(1,t)<q<2\max(1, t) < q < \sqrt 2, and then q2<2q^2 < 2, so qAq \in A exceeds tt. By Proposition 10.4, s=2Qs = \sqrt2 \notin \Q. The closing insight: the supremum of a set of rationals need not be rational — completeness is precisely the promise that R\R, unlike Q\Q, never lets a supremum escape; this example is the opening remark of the chapter, now proved rather than pointed at.

Remark 10.24 (Perspectives inside this volume)

The chapter’s three tools have distinct careers ahead. The supremum runs the analysis half: monotone limits (Chapter 11), the integral’s very definition (Chapter 15), and, in the geometry of Chapter 23, the distance from a point to a subspace — an infimum that orthogonal projection turns into a minimum. The floor function returns wherever the discrete meets the continuous: digit expansions (this chapter’s weekend problem), Dirichlet’s pigeonhole approximation (Problem 14.1), integral comparisons of sums (Chapter 17). Density arguments upgrade into a method in Chapter 13: an identity of continuous functions needs checking only on Q\Q — half of Cauchy’s functional equation (Problem 13.1) is exactly that move. When in doubt about where a proof in this volume gets its existence statements, the answer is nearly always: this chapter.

10.3 Exercises

Exercise 10.1

Determine (with proofs) sup, inf, max, min — when they exist — of:

A={1n:nN},B={(1)nnn+1:nN},C={xR:x2<3}.A = \Bigl\{\frac{1}{n} : n \in \N^*\Bigr\}, \qquad B = \Bigl\{\frac{(-1)^n n}{n+1} : n \in \N\Bigr\}, \qquad C = \{x \in \R : x^2 < 3\}.
Solution

Solution of Exercise 10.1.

AA: every element is 1\leq 1 and 1A1 \in A: supA=maxA=1\sup A = \max A = 1. Lower bounds: 00 bounds below; for ε>0\varepsilon > 0, Archimedes provides nn with 1n<ε\frac 1n < \varepsilon, so no positive number bounds AA below: infA=0\inf A = 0, not attained (no min).

BB: terms 0,12,23,34,45,0, -\frac12, \frac23, -\frac34, \frac45, \dots The even terms nn+1\frac{n}{n+1} (nn even) increase to 11 without reaching it; the odd terms nn+1-\frac{n}{n+1} decrease to 1-1. So supB=1\sup B = 1 and infB=1\inf B = -1, neither attained: no max, no min. (Bounds: b<1\abs{b} < 1 for all bBb \in B; and nn+1=11n+1>1ε\frac{n}{n+1} = 1 - \frac{1}{n+1} > 1 - \varepsilon for nn large, similarly below.)

C=(3,3)C = \intoo{-\sqrt 3}{\sqrt 3}: supC=3\sup C = \sqrt 3, infC=3\inf C = -\sqrt 3, neither attained.

Exercise 10.2

Prove that for all x,yRx, y \in \R: x+yx+yx+y+1\lfloor x \rfloor + \lfloor y \rfloor \leq \lfloor x + y \rfloor \leq \lfloor x \rfloor + \lfloor y \rfloor + 1, and that both bounds are attained.

Solution

Solution of Exercise 10.2.

Write x=x+ux = \lfloor x \rfloor + u, y=y+vy = \lfloor y \rfloor + v with u,v[0,1)u, v \in \intco{0}{1}. Then x+y=x+y+(u+v)x + y = \lfloor x \rfloor + \lfloor y \rfloor + (u + v) with u+v[0,2)u + v \in \intco{0}{2}. If u+v<1u + v < 1, x+y=x+y\lfloor x + y\rfloor = \lfloor x\rfloor + \lfloor y \rfloor; if 1u+v<21 \leq u + v < 2, x+y=x+y+1\lfloor x+y \rfloor = \lfloor x \rfloor + \lfloor y \rfloor + 1. Both cases occur: (x,y)=(0.2,0.3)(x, y) = (0.2,\, 0.3) gives the left equality, (0.7,0.8)(0.7,\, 0.8) the right one.

Exercise 10.3

Prove that for every xRx \in \R and nNn \in \N^*: nxn=x\Bigl\lfloor \frac{\lfloor nx \rfloor}{n} \Bigr\rfloor = \lfloor x \rfloor.

Solution

Solution of Exercise 10.3.

Let k=xk = \lfloor x \rfloor, so kx<k+1k \leq x < k + 1. Multiplying by nn: nknx<nk+nnk \leq nx < nk + n, and taking floors (an increasing operation on integers’ side): nknxnk+n1nk \leq \lfloor nx \rfloor \leq nk + n - 1. Dividing by nn: knxn<k+1k \leq \frac{\lfloor nx \rfloor}{n} < k + 1, so the outer floor is kk.

Exercise 10.4

Let ABA \subseteq B be nonempty subsets of R\R, BB bounded. Prove infBinfAsupAsupB\inf B \leq \inf A \leq \sup A \leq \sup B.

Solution

Solution of Exercise 10.4.

Every element of AA is in BB, so supB\sup B bounds AA above: therefore supAsupB\sup A \leq \sup B (supA\sup A is the least upper bound). Symmetrically infBinfA\inf B \leq \inf A. Finally infAsupA\inf A \leq \sup A because AA is nonempty: any aAa \in A sits between them.

Exercise 10.5 ★★

For nonempty bounded A,BRA, B \subseteq \R, define A+B={a+b:aA, bB}A + B = \{a + b : a \in A,\ b \in B\} and A={a:aA}-A = \{-a : a \in A\}. Prove:

sup(A+B)=supA+supB,sup(A)=infA.\sup(A + B) = \sup A + \sup B, \qquad \sup(-A) = -\inf A .
Solution

Solution of Exercise 10.5.

Let s=supAs = \sup A, t=supBt = \sup B. Every a+bs+ta + b \leq s + t: upper bound. For ε>0\varepsilon > 0, choose a>sε2a > s - \frac\varepsilon2 and b>tε2b > t - \frac\varepsilon2 (Proposition 10.4): then a+b>s+tεa + b > s + t - \varepsilon. By the ε\varepsilon-characterization, sup(A+B)=s+t\sup(A+B) = s + t.

For A-A: mm bounds A-A above     \iff m-m bounds AA below; the least upper bound of A-A therefore corresponds to the greatest lower bound of AA: sup(A)=infA\sup(-A) = -\inf A.

Exercise 10.6 ★★

Let f,g ⁣:ERf, g \colon E \to \R be bounded functions. Prove

supxE(f(x)+g(x))supxEf(x)+supxEg(x),\sup_{x \in E}\, \bigl(f(x) + g(x)\bigr) \leq \sup_{x \in E} f(x) + \sup_{x \in E} g(x),

and give an example where the inequality is strict. Why does this not contradict Exercise 10.5?

Solution

Solution of Exercise 10.6.

For every xx: f(x)+g(x)supf+supgf(x) + g(x) \leq \sup f + \sup g; taking the sup of the left side gives the inequality. Strict example: E={0,1}E = \{0, 1\}, f=1{0}f = \mathbf{1}_{\{0\}} (value 11 at 00, else 00), g=1{1}g = \mathbf{1}_{\{1\}}: sup(f+g)=1<2=supf+supg\sup(f + g) = 1 < 2 = \sup f + \sup g.

No contradiction with Exercise 10.5: there, aAa \in A and bBb \in B vary independently; here the same xx feeds both ff and gg — the set {f(x)+g(x):xE}\{f(x) + g(x) : x \in E\} is smaller than the set {f(x)+g(y):x,yE}\{f(x) + g(y) : x, y \in E\}.

Exercise 10.7 ★★

Prove that 2+3\sqrt 2 + \sqrt 3 is irrational. (Square it and use the irrationality of 6\sqrt 6, to be proved via Exercise 6.7.)

Solution

Solution of Exercise 10.7.

6\sqrt 6 is irrational: 6=2×36 = 2 \times 3 is not a perfect square, and v2(6q2)=1+2v2(q)v_2(6q^2) = 1 + 2v_2(q) odd prevents 6q2=r26q^2 = r^2 (as in Exercise 6.7). Now suppose x=2+3Qx = \sqrt 2 + \sqrt 3 \in \Q. Then x2=5+26Qx^2 = 5 + 2\sqrt 6 \in \Q, so 6=x252Q\sqrt 6 = \frac{x^2 - 5}{2} \in \Q: contradiction. Hence 2+3Q\sqrt 2 + \sqrt 3 \notin \Q.

Exercise 10.8 ★★

Prove that the set D={m2n:mZ, nN}D = \bigl\{\frac{m}{2^n} : m \in \Z,\ n \in \N\bigr\} of dyadic rationals is dense in R\R: between any two reals lies a dyadic rational.

Solution

Solution of Exercise 10.8.

Let x<yx < y. Pick nNn \in \N with 2n>1yx2^n > \frac{1}{y - x} (Archimedes: 2nn+12^n \geq n + 1 by an easy induction, so some power of 22 exceeds any real). Then, as in the proof of Theorem 10.14 with 2n2^n in place of nn: m=2nx+1m = \lfloor 2^n x \rfloor + 1 satisfies x<m2n<yx < \frac{m}{2^n} < y. So DD is dense.

Exercise 10.9 ★★★

Let GG be a subgroup of (R,+)(\R, +) with G{0}G \neq \{0\}. Set α=inf(G(0,+))\alpha = \inf\,(G \cap \intoo{0}{+\infty}). Prove:

  1. if α>0\alpha > 0, then G=αZG = \alpha\Z;
  2. if α=0\alpha = 0, then GG is dense in R\R.

Deduce that Z+2Z\Z + \sqrt 2\,\Z is dense in R\R.

Solution

Solution of Exercise 10.9.

  1. Suppose α>0\alpha > 0. First, αG\alpha \in G. Suppose not: by the ε\varepsilon-characterization of the infimum with ε=α\varepsilon = \alpha, there is gGg \in G with α<g<2α\alpha < g < 2\alpha (strict on the left since αG\alpha \notin G); then, with ε=gα\varepsilon = g - \alpha, there is hGh \in G with α<h<g\alpha < h < g. Now ghGg - h \in G and 0<gh<gα<α0 < g - h < g - \alpha < \alpha: an element of G(0,+)G \cap \intoo{0}{+\infty} below its infimum, absurd. So αG\alpha \in G, and αZG\alpha\Z \subseteq G (GG is a group). Conversely, for xGx \in G, let k=x/αk = \lfloor x/\alpha \rfloor: then xkαGx - k\alpha \in G and 0xkα<α0 \leq x - k\alpha < \alpha, and the definition of α\alpha forces xkα=0x - k\alpha = 0. Hence G=αZG = \alpha\Z.
  2. Suppose α=0\alpha = 0, and let x<yx < y. There is gGg \in G with 0<g<yx0 < g < y - x. The multiple kgkg with k=x/g+1k = \lfloor x/g \rfloor + 1 satisfies x<kgx+g<yx < kg \leq x + g < y, and kgGkg \in G: density.

G=Z+2ZG = \Z + \sqrt 2\,\Z is a subgroup of (R,+)(\R, +). It is not of the form αZ\alpha\Z: otherwise 1=pα1 = p\alpha and 2=qα\sqrt 2 = q\alpha (p,qZp, q \in \Z) would give 2=qpQ\sqrt 2 = \frac qp \in \Q, contradiction. By the dichotomy, GG is dense in R\R.

Exercise 10.10 ★★★

For A,BA, B nonempty sets of positive reals, let AB={ab:aA,bB}AB = \{ab : a \in A, b \in B\}. Prove sup(AB)=supAsupB\sup(AB) = \sup A \cdot \sup B (bounded case), and show by example that positivity is essential.

Solution

Solution of Exercise 10.10.

Let s=supA>0s = \sup A > 0, t=supB>0t = \sup B > 0. For aAa \in A, bBb \in B: abstab \leq st (multiplying inequalities between positive numbers). For 0<ε<min(s,t)0 < \varepsilon < \min(s, t): choose a>sεa > s - \varepsilon and b>tεb > t - \varepsilon; then

ab>(sε)(tε)=stε(s+t)+ε2>stε(s+t),ab > (s - \varepsilon)(t - \varepsilon) = st - \varepsilon(s + t) + \varepsilon^2 > st - \varepsilon (s + t),

and ε(s+t)\varepsilon(s+t) can be made arbitrarily small: by the ε\varepsilon-characterization (in the form: no number <st< st bounds ABAB above), supAB=st\sup AB = st.

Positivity is essential: A=B={1,0}A = B = \{-1, 0\} gives AB={0,1}AB = \{0, 1\}, supAB=1\sup AB = 1, while supAsupB=0×0=0\sup A \cdot \sup B = 0 \times 0 = 0.

Exercise 10.11 ★★

For a nonempty bounded ARA \subseteq \R, define the diameter

diamA=sup{aa:a,aA}.\operatorname{diam} A = \sup\,\{\abs{a - a'} : a, a' \in A\} .

Prove that diamA=supAinfA\operatorname{diam} A = \sup A - \inf A, and that [infA,supA]\intcc{\inf A}{\sup A} is the smallest closed interval containing AA.

Solution

Solution of Exercise 10.11.

Write s=supAs = \sup A, i=infAi = \inf A. For a,aAa, a' \in A: asa \leq s and aia' \geq i give aasia - a' \leq s - i; by symmetry aasi\abs{a - a'} \leq s - i, so sis - i bounds the set of gaps above. For ε>0\varepsilon > 0, choose a>sε2a > s - \frac\varepsilon2 and a<i+ε2a' < i + \frac\varepsilon2 (Proposition 10.4 and its mirror for the infimum): then aaaa>siε\abs{a - a'} \geq a - a' > s - i - \varepsilon. By the ε\varepsilon-characterization, diamA=si\operatorname{diam} A = s - i.

Every aAa \in A satisfies iasi \leq a \leq s, so A[i,s]A \subseteq \intcc{i}{s}, a closed interval of length diamA\operatorname{diam} A. If a closed interval [u,v]\intcc{u}{v} contains AA, then vv is an upper bound and uu a lower bound of AA, so uiu \leq i and vsv \geq s: [i,s][u,v]\intcc{i}{s} \subseteq \intcc{u}{v}. Hence [i,s]\intcc{i}{s} is the smallest one.

Exercise 10.12 ★★★

Let y>0y > 0 and E={x0:x2y}E = \{x \geq 0 : x^2 \leq y\}. Prove that EE is nonempty and bounded above, and that s=supEs = \sup E satisfies s2=ys^2 = y (rule out s2<ys^2 < y and s2>ys^2 > y by exhibiting, in each case, a small h>0h > 0 contradicting the definition of the supremum). Deduce that every y>0y > 0 has a unique square root y>0\sqrt y > 0 and that yyy \mapsto \sqrt y is increasing on (0,+)\intoo{0}{+\infty}.

Solution

Solution of Exercise 10.12.

0E0 \in E, so EE \neq \emptyset. If x>max(1,y)x > \max(1, y) then x2>x>yx^2 > x > y, so EE is bounded above by max(1,y)\max(1, y): s=supEs = \sup E exists (Theorem 10.2), and smin(1,y)>0s \geq \min(1, y) > 0 because min(1,y)E\min(1, y) \in E: indeed if y1y \geq 1 then 12=1y1^2 = 1 \leq y, and if y<1y < 1 then y2<yy^2 < y.

s2<ys^2 < y is impossible. Choose 0<h<10 < h < 1 with h<ys22s+1h < \frac{y - s^2}{2s + 1}. Then

(s+h)2=s2+2sh+h2s2+(2s+1)h<y,(s + h)^2 = s^2 + 2sh + h^2 \leq s^2 + (2s + 1)h < y ,

so s+hEs + h \in E, contradicting that ss bounds EE above.

s2>ys^2 > y is impossible. Choose 0<h<s0 < h < s with h<s2y2sh < \frac{s^2 - y}{2s}. Then (sh)2=s22sh+h2>s22sh>y(s - h)^2 = s^2 - 2sh + h^2 > s^2 - 2sh > y; every xEx \in E satisfies x2y<(sh)2x^2 \leq y < (s - h)^2, hence x<shx < s - h (both are 0\geq 0): shs - h is an upper bound of EE smaller than ss, contradicting leastness.

Therefore s2=ys^2 = y. Uniqueness: if 0<s<s0 < s < s' then s2<s2s^2 < s'^2, so two distinct positive roots cannot both square to yy. Monotonicity: if 0<y<y0 < y < y', then yy\sqrt y \neq \sqrt{y'}, and y>y\sqrt y > \sqrt{y'} would give y>yy > y' by squaring: so y<y\sqrt y < \sqrt{y'}.

10.4 Problem: Digit expansions and the rhythm of the rationals

Problem 10.1

Weekend problem — bb-adic expansions: existence, uniqueness, and periodicity characterizes Q\Q

Every real in [0,1)\intco{0}{1} has a digit expansion in every base b2b \geq 2; the expansion is unique once trailing strings of the digit b1b - 1 are outlawed; and it is eventually periodic exactly when the number is rational. This problem proves all three facts from the completeness axiom alone — no sequences, no series: only the supremum, the Archimedean property and the floor function — and closes with Cantor’s diagonal argument in digit form. Throughout, b2b \geq 2 is a fixed integer (the base), a digit is an element of [ ⁣[0,b1] ⁣]\intint{0}{b-1}, and a digit string (dn)n1(d_n)_{n \geq 1} is proper when it is not eventually equal to b1b - 1 (that is: for every NN there is n>Nn > N with dnb2d_n \leq b - 2).

Part I — Digits by hand. Long division of pp by qq in base bb: multiply the current remainder by bb, divide by qq, record the quotient as the next digit, keep the remainder.

  1. In base 1010, run the algorithm on 18\frac 18 and on 17\frac 17, recording at each step the digit and the remainder. Check that the remainders for 17\frac 17 cycle through 1,3,2,6,4,51, 3, 2, 6, 4, 5 and that the digits 142857142857 then repeat forever.
  2. Compute the base-22 expansions of 13\frac 13 and of 516\frac{5}{16}, and the base-33 expansion of 12\frac 12. Observe: one number terminates, the two others repeat — and 12\frac 12, so tame in base 1010, repeats forever in base 33.
  3. For x=pq[0,1)x = \frac pq \in \intco{0}{1} in lowest terms, show that the digits produced by the algorithm are eventually all 00 if and only if the remainder bNpmodqb^N p \bmod q vanishes for some NN, if and only if qq divides some power bNb^N, if and only if every prime factor of qq divides bb. Check: 120\frac{1}{20} terminates in base 1010, not in base 33.
  4. Define the truncation sn=bnx/bns_n = \lfloor b^n x \rfloor / b^n. For x=2x = \sqrt 2 and b=10b = 10, compute s0,,s4s_0, \dots, s_4 by verifying at each step that two consecutive squares straddle 22 (for instance 1.41422=1.99996164<2<2.00024449=1.414321.4142^2 = 1.99996164 < 2 < 2.00024449 = 1.4143^2), and check sn2<sn+10ns_n \leq \sqrt 2 < s_n + 10^{-n} each time.

Part II — Existence, from the supremum. Fix x[0,1)x \in \intco{0}{1} and set An=bnxA_n = \lfloor b^n x \rfloor and dn=AnbAn1d_n = A_n - b\,A_{n-1} for n1n \geq 1.

  1. Show A0=0A_0 = 0 and bAn1AnbAn1+b1b\,A_{n-1} \leq A_n \leq b\,A_{n-1} + b - 1; conclude that each dnd_n is a digit.
  2. Show that sn:=Anbns_n := A_n b^{-n} satisfies

    sn=k=1ndkbkandsnx<sn+bn.s_n = \sum_{k=1}^{n} d_k\,b^{-k} \qquad\text{and}\qquad s_n \leq x < s_n + b^{-n} .
  3. Prove bnn+1b^n \geq n + 1 by induction, then show that (sn)(s_n) is nondecreasing and that x=supnsnx = \sup_n s_n (use Proposition 10.4 and Theorem 10.10).
  4. Show that the string (dn)(d_n) is proper: if dk=b1d_k = b - 1 for all k>Nk > N, compute sns_n for n>Nn > N by a finite geometric sum and contradict question 6.
  5. Conversely, let (en)n1(e_n)_{n \geq 1} be any proper digit string and tn=k=1nekbkt_n = \sum_{k=1}^n e_k b^{-k}. Show that y=supntny = \sup_n t_n exists, lies in [0,1)\intco{0}{1}, and satisfies tny<tn+bnt_n \leq y < t_n + b^{-n} for every nn (for the strict inequality, use a digit emb2e_m \leq b - 2 with m>nm > n). Deduce bny=bntn\lfloor b^n y \rfloor = b^n t_n, then that the digits of yy, in the sense of question 5, are exactly the ene_n.

Part III — Uniqueness, order, shift.

  1. Assemble questions 5–9 into the bb-adic expansion theorem: the maps x(dn)x \mapsto (d_n) and (en)supntn(e_n) \mapsto \sup_n t_n are mutually inverse bijections between [0,1)\intco{0}{1} and the set of proper digit strings. In particular no two distinct proper strings have the same value.
  2. Now allow improper strings. Show that a string with en=b1e_n = b - 1 for all n>Mn > M (with M0M \geq 0 minimal) has value tM+bMt_M + b^{-M}; conclude that 0.999=10.999\dots = 1 in base 1010, and that the reals with two digit representations are exactly the bb-adic fractions m/bN(0,1)m/b^N \in \intoo{0}{1} — every other real has just one, even among improper strings.
  3. Prove that the bijection of question 10 is order-preserving for the lexicographic order: if the proper strings of xx and yy first differ at index mm, then x<yx < y if and only if dm<emd_m < e_m.
  4. (Shift lemma) Let x[0,1)x \in \intco{0}{1} have digits (dn)(d_n). Show that the fractional part of bxbx has digits (dn+1)n1(d_{n+1})_{n \geq 1} (compute bn(bxA1)\lfloor b^n(bx - A_1)\rfloor using uK=uK\lfloor u - K \rfloor = \lfloor u \rfloor - K for integer KK), and deduce by induction that the fractional part of bmxb^m x has digits (dn+m)n1(d_{n+m})_{n \geq 1}.

Part IV — Rationality is periodicity. Let x=pq[0,1)x = \frac pq \in \intco{0}{1} be in lowest terms and rn=bnpmodqr_n = b^n p \bmod q the remainder of the Euclidean division of bnpb^n p by qq.

  1. Show An=bnprnqA_n = \dfrac{b^n p - r_n}{q} and rn=(brn1)modqr_n = (b\,r_{n-1}) \bmod q.
  2. Show dn=brn1qd_n = \Bigl\lfloor \dfrac{b\,r_{n-1}}{q} \Bigr\rfloor: each digit is a function of the previous remainder alone. This is exactly the long division of Part I.
  3. Apply the pigeonhole principle (Corollary 2.3) to r0,,rqr_0, \dots, r_q and conclude: the expansion of every rational is eventually periodic, with preperiod and period at most qq.
  4. Conversely, suppose the digits of y[0,1)y \in \intco{0}{1} are purely periodic: dn+T=dnd_{n+T} = d_n for all n1n \geq 1. Using the shift lemma and the uniqueness of question 10, show that the fractional part of bTyb^T y equals yy, and deduce (bT1)yN(b^T - 1)\,y \in \N: thus yy is rational with denominator dividing bT1b^T - 1. Verify the mechanism on 0.(142857)0.(142857): 142857×7=999999142857 \times 7 = 999999.
  5. Treat the eventually periodic case by shifting, and state the periodicity criterion: x[0,1)x \in \intco{0}{1} is rational if and only if its proper bb-adic expansion is eventually periodic — in one base if and only if in all.
  6. For x=1qx = \frac 1q with gcd(q,b)=1\gcd(q, b) = 1, show that the expansion is purely periodic and that its least period is the least T1T \geq 1 with bT1(modq)b^T \equiv 1 \pmod q (the multiplicative order of bb modulo qq). Check that for q=7q = 7, b=10b = 10 the powers of 1010 modulo 77 run through 3,2,6,4,5,13, 2, 6, 4, 5, 1: order 66, matching question 1.

Part V — Dividends and the diagonal.

  1. Let xx^* be the real of [0,1)\intco{0}{1} whose base-1010 digits are 11 at the triangular positions j(j+1)2\frac{j(j + 1)}{2} (j1j \geq 1) and 00 elsewhere: x=0.101001000100001x^* = 0.101001000100001\dots Show that its digit string is proper but not eventually periodic (a period TT would force ones at gaps at most TT, but the gaps grow), and conclude that xx^* is irrational: a number proved irrational by pure rhythm.
  2. Show that for every base bb the set {m/bn:mZ,nN}\{m/b^n : m \in \Z, n \in \N\} is dense in R\R (generalizing Exercise 10.8), and that every rational pq(0,1)\frac pq \in \intoo{0}{1} has a terminating expansion in base qq. Moral: terminating is a property of the pair (number, base); periodicity — rationality — is intrinsic.
  3. (Cantor’s diagonal) Let kxkk \mapsto x_k be any map from N\N^* to [0,1)\intco{0}{1}. Define the digit string ek=1e_k = 1 if the kk-th digit of xkx_k differs from 11, and ek=2e_k = 2 otherwise. Show that (ek)(e_k) is proper, that its value yy lies in [0,1)\intco{0}{1}, and that yxky \neq x_k for every kk. Conclude: no map N[0,1)\N^* \to \intco{0}{1} is surjective. (The vocabulary of countability, and this theorem’s proper home, is Chapter 12.)
  4. Show that if the proper expansions of xx and yy agree up to index nn then xy<bn\abs{x - y} < b^{-n}, and disprove the converse with x=0.1x = 0.1, y=0.0999y = 0.0999 in base 1010: closeness of numbers does not force agreement of digits. Which reals are to blame?
  5. Run Part IV on x=110x = \frac{1}{10} in base b=2b = 2: compute remainders and digits until they cycle, and conclude 110=(0.00011)2\frac{1}{10} = (0.0\overline{0011})_2, with preperiod 11 and period 44. Explain via question 3 why no finite binary string will ever equal 110\frac{1}{10} — the reason a computer’s floating-point 0.1+0.20.1 + 0.2 is not exactly 0.30.3.
  6. Synthesis. In one sentence each: where did the proof use (i) completeness, (ii) the Archimedean property, (iii) the uniqueness clause of the floor, (iv) the pigeonhole principle? And the moral: [0,1)\intco{0}{1} is faithfully coded by proper digit strings, rationality reads off as periodicity — yet analysis prefers the supremum to the digits. Why? (Think about adding two digit strings.)
Solution

Solution of Problem 10.1.

1. For 18\frac 18: 10=81+210 = 8 \cdot 1 + 2, 20=82+420 = 8 \cdot 2 + 4, 40=85+040 = 8 \cdot 5 + 0; digits 1,2,51, 2, 5, remainder 00, then only zeros: 18=0.125\frac 18 = 0.125. For 17\frac 17: 10=71+310 = 7 \cdot 1 + 3, 30=74+230 = 7 \cdot 4 + 2, 20=72+620 = 7 \cdot 2 + 6, 60=78+460 = 7 \cdot 8 + 4, 40=75+540 = 7 \cdot 5 + 5, 50=77+150 = 7 \cdot 7 + 1: digits 1,4,2,8,5,71, 4, 2, 8, 5, 7, remainders 3,2,6,4,5,13, 2, 6, 4, 5, 1. The remainder has returned to r=1r = 1, so the six steps repeat verbatim forever: 17=0.(142857)\frac 17 = 0.(142857), remainders cycling through 1,3,2,6,4,51, 3, 2, 6, 4, 5.

2. 13\frac 13 in base 22 (r0=1r_0 = 1): 2=30+22 = 3 \cdot 0 + 2, 4=31+14 = 3 \cdot 1 + 1, and r=1r = 1 recurs: 13=(0.01)2\frac 13 = (0.\overline{01})_2. 516\frac{5}{16} in base 22: 10=160+1010 = 16 \cdot 0 + 10, 20=161+420 = 16 \cdot 1 + 4, 8=160+88 = 16 \cdot 0 + 8, 16=161+016 = 16 \cdot 1 + 0: 516=(0.0101)2\frac{5}{16} = (0.0101)_2, terminating. 12\frac 12 in base 33: 3=21+13 = 2 \cdot 1 + 1, and r=1r = 1 recurs at once: 12=(0.1)3\frac 12 = (0.\overline{1})_3.

3. The algorithm’s remainder after NN steps is rN=bNpmodqr_N = b^N p \bmod q (proved formally in question 14; here it is the observation that each step multiplies the remainder by bb and reduces mod qq). All later digits are 00 if and only if some rN=0r_N = 0, i.e. qbNpq \mid b^N p; since gcd(p,q)=1\gcd(p, q) = 1, Gauss’s lemma gives qbNq \mid b^N. If qbNq \mid b^N, every prime factor of qq divides bNb^N, hence divides bb (primality). Conversely, if every prime of q=p1a1prarq = p_1^{a_1} \cdots p_r^{a_r} divides bb, then with A=maxiaiA = \max_i a_i each piaip_i^{a_i} divides bAb^A, and the piaip_i^{a_i} are pairwise coprime, so qbAq \mid b^A. For q=20=225q = 20 = 2^2 \cdot 5: both primes divide 1010 (120=0.05\frac{1}{20} = 0.05), but 232 \nmid 3, so 120\frac{1}{20} repeats forever in base 33.

4. 12=1<2<4=221^2 = 1 < 2 < 4 = 2^2 gives s0=1s_0 = 1. Then 1.42=1.96<2<2.25=1.521.4^2 = 1.96 < 2 < 2.25 = 1.5^2: 102=14\lfloor 10\sqrt 2 \rfloor = 14, s1=1.4s_1 = 1.4. Next 1.412=1.9881<2<2.0164=1.4221.41^2 = 1.9881 < 2 < 2.0164 = 1.42^2: s2=1.41s_2 = 1.41; 1.4142=1.999396<2<2.002225=1.41521.414^2 = 1.999396 < 2 < 2.002225 = 1.415^2: s3=1.414s_3 = 1.414; 1.41422=1.99996164<2<2.00024449=1.414321.4142^2 = 1.99996164 < 2 < 2.00024449 = 1.4143^2: s4=1.4142s_4 = 1.4142. In each case the displayed inequalities say exactly sn2<sn+10ns_n \leq \sqrt 2 < s_n + 10^{-n}, which is the definition of the floor of 10n210^n \sqrt 2.

5. A0=x=0A_0 = \lfloor x \rfloor = 0 since 0x<10 \leq x < 1. From An1bn1x<An1+1A_{n-1} \leq b^{n-1} x < A_{n-1} + 1, multiply by bb:

bAn1bnx<bAn1+b.b\,A_{n-1} \leq b^n x < b\,A_{n-1} + b .

The integer bAn1b\,A_{n-1} is bnx\leq b^n x, so bAn1Anb\,A_{n-1} \leq A_n; and bnx<bAn1+bb^n x < b\,A_{n-1} + b with bAn1+bb\,A_{n-1} + b an integer forces AnbAn1+b1A_n \leq b\,A_{n-1} + b - 1. Hence 0dn=AnbAn1b10 \leq d_n = A_n - b\,A_{n-1} \leq b - 1: a digit.

6. Telescoping: dkbk=AkbkAk1b(k1)d_k b^{-k} = A_k b^{-k} - A_{k-1} b^{-(k-1)}, so

k=1ndkbk=AnbnA0=sn.\sum_{k=1}^n d_k b^{-k} = A_n b^{-n} - A_0 = s_n .

Dividing Anbnx<An+1A_n \leq b^n x < A_n + 1 by bnb^n gives snx<sn+bns_n \leq x < s_n + b^{-n}.

7. Induction: b0=11b^0 = 1 \geq 1, and bn+1=bbn2(n+1)n+2b^{n+1} = b \cdot b^n \geq 2(n + 1) \geq n + 2. Monotonicity: snsn1=dnbn0s_n - s_{n-1} = d_n b^{-n} \geq 0. Each snxs_n \leq x (question 6): xx is an upper bound of {sn}\{s_n\}. For ε>0\varepsilon > 0, the Archimedean property provides nn with n+1>1εn + 1 > \frac1\varepsilon, hence bn<εb^{-n} < \varepsilon, and then sn>xbn>xεs_n > x - b^{-n} > x - \varepsilon by question 6. By Proposition 10.4, x=supnsnx = \sup_n s_n.

8. Suppose dk=b1d_k = b - 1 for all k>Nk > N. For n>Nn > N, the finite geometric sum gives

sn=sN+(b1)k=N+1nbk=sN+bNbn.s_n = s_N + (b - 1)\sum_{k=N+1}^{n} b^{-k} = s_N + b^{-N} - b^{-n} .

So xsn=sN+bNbnx \geq s_n = s_N + b^{-N} - b^{-n} for every nn; letting the last term shrink below any ε\varepsilon (question 7), xsN+bNx \geq s_N + b^{-N}. But question 6 at rank NN says x<sN+bNx < s_N + b^{-N}: contradiction. The string (dn)(d_n) is proper.

9. Bounded: tn(b1)k=1nbk=1bn<1t_n \leq (b-1)\sum_{k=1}^n b^{-k} = 1 - b^{-n} < 1, and (tn)(t_n) is nondecreasing, so y=suptny = \sup t_n exists with 0y10 \leq y \leq 1. Fix nn. For the two-sided estimate: tnyt_n \leq y is clear. By properness pick m>nm > n with emb2e_m \leq b - 2. For pmp \geq m:

tptn=k=n+1pekbk(bnbp)bm<bnbm,t_p - t_n = \sum_{k=n+1}^{p} e_k b^{-k} \leq (b^{-n} - b^{-p}) - b^{-m} < b^{-n} - b^{-m},

the middle sum losing at least bmb^{-m} against the all-(b1)(b-1) maximum; for pmp \leq m, tptmtn+bnbmt_p \leq t_m \leq t_n + b^{-n} - b^{-m} as well (monotonicity plus the case p=mp = m). Hence every tptn+bnbmt_p \leq t_n + b^{-n} - b^{-m}, so ytn+bnbm<tn+bny \leq t_n + b^{-n} - b^{-m} < t_n + b^{-n}. (With n=0n = 0: y<1y < 1, so y[0,1)y \in \intco{0}{1}.) Now bntn=knekbnkb^n t_n = \sum_{k \leq n} e_k b^{n-k} is an integer, and bntnbny<bntn+1b^n t_n \leq b^n y < b^n t_n + 1: so bny=bntn\lfloor b^n y \rfloor = b^n t_n. Finally the digits of yy: dn(y)=bntnbbn1tn1=bn(tntn1)=end_n(y) = b^n t_n - b \cdot b^{n-1} t_{n-1} = b^n(t_n - t_{n-1}) = e_n.

10. Question 9 says: (value of string) has digits (the string); questions 5–8 say: (digits of xx) form a proper string whose truncations have supremum xx (question 7). So the two maps compose to the identity in both orders: they are mutually inverse bijections between [0,1)\intco{0}{1} and the proper strings. If two proper strings had equal value, applying the digit map would make them equal: uniqueness. This is the bb-adic expansion theorem.

11. Let en=b1e_n = b - 1 for n>Mn > M, M0M \geq 0 minimal. As in question 8, tn=tM+bMbnt_n = t_M + b^{-M} - b^{-n} for nMn \geq M, so the value is suptn=tM+bM\sup t_n = t_M + b^{-M}. If M=0M = 0 the value is 0+1=10 + 1 = 1: in base 1010, 0.999=10.999\dots = 1 exactly — not approximately. If M1M \geq 1, minimality gives eMb2e_M \leq b - 2, and the value is

tM+bM=bMtM+1bM(0,1),t_M + b^{-M} = \frac{b^M t_M + 1}{b^M} \in \intoo{0}{1},

a bb-adic fraction, whose proper expansion is e1eM1(eM+1)000e_1 \dots e_{M-1}\,(e_M + 1)\,000\dots (a terminating string is proper, and its value is the same number). Conversely a real with two representations must have one improper (properness pins down the representation, question 10), hence be of this form. And each m/bN(0,1)m/b^N \in \intoo{0}{1}, written with last nonzero digit dNd_N, does have the improper twin d1dN1(dN1)(b1)(b1)d_1 \dots d_{N-1}(d_N - 1)(b-1)(b-1)\dots: exactly the bb-adic fractions carry two names, all other reals one.

12. Say the strings agree up to m1m - 1, with common truncation P=sm1P = s_{m-1}, and dm<emd_m < e_m. By question 9 (strict upper estimate at rank mm), x<P+dmbm+bm=P+(dm+1)bmP+embmyx < P + d_m b^{-m} + b^{-m} = P + (d_m + 1)b^{-m} \leq P + e_m b^{-m} \leq y, the last step because P+embmP + e_m b^{-m} is yy’s truncation tmyt_m \leq y. So dm<em    x<yd_m < e_m \implies x < y; exchanging roles, em<dm    y<xe_m < d_m \implies y < x; and since the strings differ at mm, one of the two holds. Both directions follow.

13. Let z=bxA1[0,1)z = bx - A_1 \in \intco{0}{1} (indeed A1bx<A1+1A_1 \leq bx < A_1 + 1). For n0n \geq 0: bnz=bn+1xbnA1b^n z = b^{n+1} x - b^n A_1 with bnA1Zb^n A_1 \in \Z, so by uK=uK\lfloor u - K \rfloor = \lfloor u \rfloor - K (KK integer),

An(z)=An+1(x)bnA1(x).A_n(z) = A_{n+1}(x) - b^n A_1(x) .

Hence dn(z)=An(z)bAn1(z)=An+1bnA1bAn+bnA1=dn+1(x)d_n(z) = A_n(z) - b\,A_{n-1}(z) = A_{n+1} - b^n A_1 - b\,A_n + b^n A_1 = d_{n+1}(x). So the fractional part of bxbx carries the shifted digits; iterating mm times, the fractional part of bmxb^m x has digits (dn+m)n1(d_{n+m})_{n \geq 1}.

14. Euclidean division: bnp=qQn+rnb^n p = q\,Q_n + r_n with 0rn<q0 \leq r_n < q. Divide by qq: bnx=Qn+rnqb^n x = Q_n + \frac{r_n}{q} with 0rnq<10 \leq \frac{r_n}{q} < 1, so Qn=bnx=AnQ_n = \lfloor b^n x \rfloor = A_n, giving An=bnprnqA_n = \frac{b^n p - r_n}{q}. For the recurrence: bnp=b(qAn1+rn1)=q(bAn1)+brn1b^n p = b(q\,A_{n-1} + r_{n-1}) = q\,(b\,A_{n-1}) + b\,r_{n-1}, so bnpb^n p and brn1b\,r_{n-1} differ by a multiple of qq: rn=(brn1)modqr_n = (b\,r_{n-1}) \bmod q.

15. Divide brn1b\,r_{n-1} by qq: brn1=qc+rnb\,r_{n-1} = q\,c + r_n with c=brn1/qc = \lfloor b\,r_{n-1}/q \rfloor. Substituting into the display of question 14: bnp=q(bAn1+c)+rnb^n p = q(b\,A_{n-1} + c) + r_n, and uniqueness of Euclidean division identifies An=bAn1+cA_n = b\,A_{n-1} + c, that is dn=c=brn1/qd_n = c = \lfloor b\,r_{n-1}/q \rfloor. Digit nn depends only on rn1r_{n-1} — the long division loop of Part I, now certified.

16. The q+1q + 1 remainders r0,,rqr_0, \dots, r_q take values in the qq-element set [ ⁣[0,q1] ⁣]\intint{0}{q-1}: by the pigeonhole principle (Corollary 2.3) two coincide, say rN=rN+Tr_N = r_{N+T} with 0N<N+Tq0 \leq N < N + T \leq q. Since rnr_n determines rn+1r_{n+1} (question 14), induction gives rn+T=rnr_{n+T} = r_n for all nNn \geq N; since rn1r_{n-1} determines dnd_n (question 15), dn+T=dnd_{n+T} = d_n for all nN+1n \geq N + 1. Every rational’s expansion is eventually periodic, with preperiod q\leq q and period q\leq q.

17. The digits of the fractional part of bTyb^T y are (dn+T)=(dn)(d_{n+T}) = (d_n) (shift lemma, then pure periodicity): the same proper string as yy. By question 10 the values are equal: bTybTy=yb^T y - \lfloor b^T y \rfloor = y, so (bT1)y=bTy=ATN(b^T - 1)\,y = \lfloor b^T y \rfloor = A_T \in \N and

y=ATbT1,y = \frac{A_T}{b^T - 1} ,

rational with denominator dividing bT1b^T - 1; the numerator ATA_T is the integer whose base-bb digits are d1dTd_1 \dots d_T. Check: 0.(142857)=1428579999990.(142857) = \frac{142857}{999999}, and 142857×7=999999142857 \times 7 = 999999, so this is 17\frac 17.

18. If dn+T=dnd_{n+T} = d_n for n>Nn > N, the fractional part zz of bNxb^N x has digits (dN+n)n1(d_{N+n})_{n\geq1} (shift lemma), which are purely periodic; by question 17, zQz \in \Q. Then bNx=AN+zb^N x = A_N + z gives x=(AN+z)/bNQx = (A_N + z)/b^N \in \Q. With question 16: xx rational     \iff expansion eventually periodic. The right side mentions the base, the left does not: periodicity in one base is equivalent to rationality, hence to periodicity in every base.

19. For x=1qx = \frac 1q, rn=bnmodqr_n = b^n \bmod q. If gcd(b,q)=1\gcd(b, q) = 1, then rT=r0=1r_T = r_0 = 1 if and only if bT1(modq)b^T \equiv 1 \pmod q; such TT exists (pigeonhole gives bibjb^i \equiv b^j, i<ji < j, and bb is invertible modulo qq, so bji1b^{j-i} \equiv 1), and the least one — the multiplicative order — makes the remainders, hence the digits, purely periodic of period TT. No smaller period is possible: a period TT' would give (bT1)1qN(b^{T'} - 1)\frac1q \in \N (question 17), i.e. qbT1q \mid b^{T'} - 1. For q=7q = 7, b=10b = 10: 10310 \equiv 3, 102210^2 \equiv 2, 103610^3 \equiv 6, 104410^4 \equiv 4, 105510^5 \equiv 5, 1061(mod7)10^6 \equiv 1 \pmod 7: order 66, and indeed 17\frac 17 has period six.

20. The string has infinitely many 00s (xx^*’s digits are mostly zero), so it is proper, and xx^* is well defined (question 9). Suppose the digits eventually periodic with period TT beyond NN. Infinitely many digits equal 11 (one per triangular number), so some 11 sits at a position j>Nj > N; then periodicity puts a 11 at every position j+kTj + kT: from jj onward, gaps between consecutive 11s are at most TT. But the 11s sit exactly at the triangular numbers, whose consecutive gaps (j+1)(j+2)2j(j+1)2=j+1\frac{(j+1)(j+2)}{2} - \frac{j(j+1)}{2} = j + 1 exceed TT eventually: contradiction. Not eventually periodic, so by question 18, xQx^* \notin \Q — irrationality read off the rhythm of the digits alone.

21. Given x<yx < y, question 7 provides nn with bn<yxb^{-n} < y - x; set m=bnx+1m = \lfloor b^n x \rfloor + 1. Then bnx<mbnx+1<bnyb^n x < m \leq b^n x + 1 < b^n y, so x<mbn<yx < \frac{m}{b^n} < y: density, for every base at once (b=2b = 2 recovers Exercise 10.8). For pq(0,1)\frac pq \in \intoo{0}{1} in base b=qb = q: the first digit is qpq=p\lfloor q \cdot \frac pq \rfloor = p and the fractional part of qpq=pq \cdot \frac pq = p is 00: all later digits vanish, a terminating expansion pq=(0.p)q\frac pq = (0.p)_q. Terminating depends on the base; periodicity — rationality — does not (question 18).

22. Each ek{1,2}e_k \in \{1, 2\} is a digit of base 1010, and the string never ends in all 99s: proper. Its value yy lies in [0,1)\intco{0}{1} and has digits exactly (ek)(e_k) (question 9). Fix kk: the kk-th digit of yy is eke_k, chosen \neq the kk-th digit of xkx_k, so the proper strings of yy and xkx_k differ, so yxky \neq x_k (question 10: the coding is injective). Thus yy is in no list: no map N[0,1)\N^* \to \intco{0}{1} is surjective. The reals, unlike the rationals, cannot be enumerated — uncountability, whose theory Chapter 12 develops.

23. If the expansions agree up to nn, then xx and yy have the same truncation sns_n, and question 6 puts both in [sn,sn+bn)\intco{s_n}{s_n + b^{-n}}, an interval of length bnb^{-n}: xy<bn\abs{x - y} < b^{-n}. Converse: x=0.1x = 0.1 and y=0.0999y = 0.0999 (terminating, hence proper) satisfy xy=104<103\abs{x - y} = 10^{-4} < 10^{-3}, yet their expansions differ at the very first digit. The culprits are the bb-adic fractions of question 11: near them, a tiny move flips every displayed digit (0.09990.10000.0999 \to 0.1000), because they are precisely the reals where the improper twin lurks.

24. p=1p = 1, q=10q = 10, b=2b = 2, r0=1r_0 = 1: 2=100+22 = 10 \cdot 0 + 2, 4=100+44 = 10 \cdot 0 + 4, 8=100+88 = 10 \cdot 0 + 8, 16=101+616 = 10 \cdot 1 + 6, 12=101+212 = 10 \cdot 1 + 2 — and r5=2=r1r_5 = 2 = r_1: the remainders cycle (2,4,8,6)(2, 4, 8, 6) from index 11. Digits: d1=0d_1 = 0, then the repeating block d2d3d4d5=0,0,1,1d_2 d_3 d_4 d_5 = 0, 0, 1, 1:

110=(0.00011)2,\tfrac{1}{10} = (0.0\overline{0011})_2 ,

preperiod 11, period 44. By question 3, a terminating base-22 expansion would need every prime of 1010 to divide 22; the prime 55 refuses. So 0.10.1 is not representable by any finite binary string — a computer storing finitely many bits keeps only a truncation, and the accumulated truncation errors are why floating-point 0.1+0.20.1 + 0.2 differs from 0.30.3 in the last bits.

25. (i) Completeness produced the values: x=supsnx = \sup s_n and y=suptny = \sup t_n (questions 7 and 9) — over Q\Q alone, the proper string of 2\sqrt 2 would name nothing. (ii) The Archimedean property made bnb^{-n} eventually smaller than any ε\varepsilon, forcing the truncations to close in on their supremum (questions 7, 21). (iii) The uniqueness clause of the floor identified Qn=AnQ_n = A_n in question 14 and legitimized every digit extraction uK=uK\lfloor u - K \rfloor = \lfloor u \rfloor - K (question 13). (iv) The pigeonhole principle, applied to finitely many remainders, is the sole engine of periodicity (question 16). Moral: proper strings code [0,1)\intco{0}{1} faithfully and turn rationality into a visible rhythm; but addition of digit strings requires carries propagating from infinitely far right, so no finite-stage rule computes even the first digit of a sum — whereas the supremum interface of Theorem 10.2 handles all of analysis with one axiom. Digits are a magnificent picture of R\R; the supremum is its engine.