The Gaps in the Rationals

Is there a rational number whose square is exactly 22? A carpenter measuring the diagonal of a unit square might expect the answer to be yes. A student solving x2=2x^2 = 2 might think so too. After all, the rationals contain every fraction imaginable. They are densely packed along the number line. The startling fact, known already to the ancient Greeks, is that no fraction works. 2\sqrt{2} simply does not live among the rationals. This is not a failure of imagination or notation. It is a theorem. This discovery matters far beyond a single missing number. It reveals that the rational numbers have literal holes in them. This is true despite Q\mathbb{Q} being an ordered field with rich algebraic structure. These holes are points that "should" exist by geometric or algebraic reasoning. Yet they do not. The set of rationals whose square is less than 22 has no least upper bound inside Q\mathbb{Q}. This single observation is the crack. It eventually forces the construction of the real numbers. The big picture is this: Q\mathbb{Q} is algebraically well-behaved but topologically incomplete. Sequences of rationals can bunch together, getting arbitrarily close to each other. Yet they need not converge to any rational limit. The gap at 2\sqrt{2} is the simplest, most concrete witness to this phenomenon. Understanding it precisely is the natural doorway to the The Completeness Axiom that defines R\mathbb{R}. This article delivers a complete, rigorous proof that no rational number squares to 22. It explores the geometric and order-theoretic meaning of that fact. It shows exactly how this motivates the search for a larger, "gap-free" number system. This sets up the ideas of Bounds of a Set and least upper bounds that complete the story.

Key takeaways
  • The equation x2=2x^2 = 2 has no solution x∈Qx \in \mathbb{Q}; this is proved by a classical infinite-descent argument on parity.
  • The proof only uses that Q\mathbb{Q} is an ordered field with unique factorization in Z\mathbb{Z} — no calculus is needed.
  • The set A={q∈Q:q>0, q2<2}A = \{q \in \mathbb{Q} : q > 0,\ q^2 < 2\} has upper bounds in Q\mathbb{Q} but no least one.
  • This shows Q\mathbb{Q} is an ordered field that is not order-complete: bounded sets can fail to have a least upper bound.
  • The same descent argument generalizes to show n\sqrt{n} is irrational whenever nn is a positive integer that is not a perfect square.
  • Key idea: the rationals have "holes" at exactly the points where reasonable bounded sets fail to have a supremum, and 2\sqrt2 is the simplest example.

Where this lives today

The irrationality of 2\sqrt2 is the prototype for an entire branch of number theory studying which numbers are rational, irrational, or transcendental — questions central to Diophantine approximation and to modern results like the proofs that π\pi and ee are irrational (and transcendental). The Pell equation p2−2q2=±1p^2 - 2q^2 = \pm1 that appeared in the second worked example reappears in algorithms for computing square roots efficiently, in continued-fraction based cryptographic attacks (e.g. on RSA via continued fraction factorization methods), and in the theory of quadratic number fields Q(2)\mathbb{Q}(\sqrt2) used throughout algebraic number theory. More broadly, the structural lesson — that an ordered field can fail to have the least-upper-bound property — is the entire reason real analysis exists as a distinct subject from algebra. Every theorem that depends on completeness (the Intermediate Value Theorem, the Extreme Value Theorem, the convergence of Cauchy sequences, the existence of limits of bounded monotonic sequences) ultimately traces back to filling exactly the kind of gap exhibited by A={q∈Q:q2<2}A = \{q \in \mathbb{Q}: q^2 <2\}. In computer science and numerical analysis, floating-point arithmetic is itself an approximation scheme reminiscent of the rational approximations bnb_n in Example 1 — finite-precision surrogates chasing a real target they can never exactly reach, a discretized echo of the ancient gap in Q\mathbb{Q}.

Ask the tutor: How does the least-upper-bound property, once assumed as an axiom for R\mathbb{R}, actually guarantee that 2\sqrt2 exists as a real number?

DefinitionRational number, and the property of being a square root

A number xx is rational if x=p/qx = p/q for integers p,qp, q with q≠0q \neq 0; the set of all rationals is denoted Q\mathbb{Q}. We may always write a nonzero rational p/qp/q in lowest terms, meaning gcd⁡(p,q)=1\gcd(p,q) = 1 (no common integer factor greater than 11). A real number xx is said to be a square root of 22 if x2=2x^2 = 2, i.e. x⋅x=2x \cdot x = 2. We are asking whether such an xx can be found inside Q\mathbb{Q}. We also record the set that will be central to the completeness discussion:

A={ q∈Q:q>0 and q2<2 }.A = \{\, q \in \mathbb{Q} : q > 0 \text{ and } q^2 < 2 \,\}.

A rational number bb is an upper bound for AA if q≤bq \le b for every q∈Aq \in A. The least upper bound (or supremum) of AA, if it exists, is an upper bound ss such that s≤bs \le b for every upper bound bb.

Intuition

Picture the rational numbers as points marked on a number line — not just the integers, but every fraction 1/2,22/7,−5/31/2, 22/7, -5/3, and so on. There are infinitely many rationals between any two others: the rationals are dense. It is tempting to think that a line made of infinitely many densely packed points has no room left for gaps. But density is not the same as completeness. Consider the set AA of positive rationals qq with q2<2q^2 < 2: this includes 1,1.4,1.41,1.414,1.4142,…1, 1.4, 1.41, 1.414, 1.4142, \dots These numbers creep steadily toward "the square root of 22," each one a better rational approximation than the last. Geometrically, 2\sqrt{2} is a perfectly definite point — it is the length of the diagonal of a unit square, constructible with a compass and straightedge. Yet as a number, when we ask "which rational is it?", the answer is: none of them. The sequence of approximations converges toward a location on the line where no rational number sits. The rational line has a pinhole exactly there, invisible under magnification of any finite precision, but real.

Figure
The set A={q∈Q:q2<2}A=\{q\in\mathbb{Q}: q^2<2\} approaches a point with no rational value
1 2 3 1.4 1.41 1.414 1.4142… no rational point here: √2 is missing from ℚ

The failure is not about a lack of precision — it is a structural fact about Q\mathbb{Q} itself. This is the seed of everything that follows: to fill such gaps, mathematicians eventually build the real numbers precisely by declaring that every nonempty, bounded-above set of numbers must have a least upper bound. Understanding why Q\mathbb{Q} fails this property, concretely and rigorously, is the goal of this article.

TheoremIrrationality of 2\sqrt{2}

There is no rational number xx such that x2=2x^2 = 2.

Proof

We argue by contradiction, using an infinite-descent argument grounded in the unique factorization of integers (specifically, the fact that every integer has a well-defined, finite count of factors of 22).

Step 1: Set up in lowest terms. Suppose, for contradiction, that there exists a rational number xx with x2=2x^2 = 2. Write x=p/qx = p/q where p,q∈Zp, q \in \mathbb{Z}, q≠0q \neq 0, and gcd⁡(p,q)=1\gcd(p, q) = 1 (such a representation in lowest terms always exists for a nonzero rational, by dividing pp and qq by their greatest common divisor). Since x2=2>0x^2 = 2 > 0, we may take p,qp, q both positive without loss of generality (replacing p,qp,q by −p,−q-p,-q if necessary). From x2=2x^2 = 2 we get

(pq)2=2⟹p2=2q2.(∗)\left(\frac{p}{q}\right)^2 = 2 \quad\Longrightarrow\quad p^2 = 2q^2. \tag{$\ast$}

This is a legitimate algebraic step: multiplying both sides of p2/q2=2p^2/q^2 = 2 by q2≠0q^2 \neq 0.

Step 2: pp must be even. Equation (∗)(\ast) shows p2=2q2p^2 = 2q^2, so p2p^2 is an even integer (it equals 22 times the integer q2q^2). We claim this forces pp itself to be even. Indeed, every integer is either even or odd. If pp were odd, write p=2k+1p = 2k+1 for some integer kk. Then

p2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1,p^2 = (2k+1)^2 = 4k^2 + 4k + 1 = 2(2k^2+2k) + 1,

which is odd (it is 2m+12m+1 with m=2k2+2km = 2k^2+2k). This contradicts p2p^2 being even. Hence pp cannot be odd, so pp is even.

Step 3: Extract a factor of 22 and derive that qq is also even. Since pp is even, write p=2mp = 2m for some integer mm. Substitute into (∗)(\ast):

(2m)2=2q2⟹4m2=2q2⟹q2=2m2.(2m)^2 = 2q^2 \quad\Longrightarrow\quad 4m^2 = 2q^2 \quad\Longrightarrow\quad q^2 = 2m^2.

This division by 22 is valid since 2≠02 \neq 0 in Z\mathbb{Z} (integers form an integral domain). So q2=2m2q^2 = 2m^2 is even, and by the identical argument as in Step 2 (applied to qq in place of pp), qq must be even as well.

Step 4: Contradiction. We have shown both pp and qq are even, so 22 divides both pp and qq. This means 22 is a common divisor of pp and qq greater than 11, contradicting our assumption that gcd⁡(p,q)=1\gcd(p,q) = 1.

Conclusion. The assumption that some rational x=p/qx = p/q (in lowest terms) satisfies x2=2x^2 = 2 leads to a logical contradiction. Therefore no such rational number exists: there is no x∈Qx \in \mathbb{Q} with x2=2x^2 = 2. ■\blacksquare

∎
LemmaNo rational upper bound for AA is smallest

Let A={q∈Q:q>0, q2<2}A = \{q \in \mathbb{Q} : q > 0,\ q^2 < 2\} as above. For every rational upper bound bb of AA with b>0b > 0, there exists a strictly smaller rational upper bound of AA. Consequently AA has no least upper bound in Q\mathbb{Q}.

Proof

We use an algebraic averaging/correction trick: given a rational guess bb with b2>2b^2 > 2 (any positive upper bound of AA must satisfy this — justified below), we manufacture a strictly smaller rational b′b' that is still an upper bound.

Step 0: Any positive upper bound bb of AA satisfies b2>2b^2 > 2. By Irrationality of 2\sqrt{2}, b2≠2b^2 \ne 2. Suppose toward contradiction b2<2b^2 < 2. Then b∈Ab \in A itself (since b>0b>0 and b2<2b^2<2). We show AA has no maximum, so bb being in AA contradicts bb being an upper bound of AA: since Q\mathbb{Q} is dense, choose rational ε\varepsilon with 0<ε<min⁡(1,2−b22b+1)0 < \varepsilon < \min\left(1, \frac{2-b^2}{2b+1}\right); then

(b+ε)2=b2+2bε+ε2<b2+2bε+ε=b2+ε(2b+1)<b2+(2−b2)=2,(b+\varepsilon)^2 = b^2 + 2b\varepsilon + \varepsilon^2 < b^2 + 2b\varepsilon + \varepsilon = b^2 + \varepsilon(2b+1) < b^2 + (2 - b^2) = 2,

using ε2<ε\varepsilon^2 < \varepsilon (as ε<1\varepsilon<1) and ε(2b+1)<2−b2\varepsilon(2b+1) < 2-b^2 (as ε<2−b22b+1\varepsilon < \frac{2-b^2}{2b+1}). So b+ε∈Ab + \varepsilon \in A and b+ε>bb+\varepsilon > b, contradicting that bb is an upper bound of AA. Hence b2<2b^2 < 2 is impossible for an upper bound, so b2>2b^2 > 2.

Step 1: Construct a smaller upper bound. Given rational b>0b>0 with b2>2b^2 > 2, define

b′=b−b2−22b=b2+22b.b' = b - \frac{b^2-2}{2b} = \frac{b^2+2}{2b}.

Since b∈Qb \in \mathbb{Q} and b≠0b \neq 0, b′∈Qb' \in \mathbb{Q} as well (a ratio of integers). Since b2>2>0b^2 > 2 > 0 and b>0b>0, we have b2−22b>0\frac{b^2-2}{2b} > 0, so b′<bb' < b: this is our candidate smaller bound.

Step 2: b′b' is still positive and satisfies (b′)2>2(b')^2 > 2. First, b′=b2+22b>0b' = \frac{b^2+2}{2b} > 0 since numerator and denominator are positive. Next, compute:

(b′)2−2=(b2+22b)2−2=(b2+2)2−8b24b2=b4−4b2+44b2=(b2−2)24b2.(b')^2 - 2 = \left(\frac{b^2+2}{2b}\right)^2 - 2 = \frac{(b^2+2)^2 - 8b^2}{4b^2} = \frac{b^4 - 4b^2 + 4}{4b^2} = \frac{(b^2-2)^2}{4b^2}.

Since b2≠2b^2 \ne 2 (by Step 0, in fact b2>2b^2>2), the numerator (b2−2)2>0(b^2-2)^2 > 0, and the denominator 4b2>04b^2>0. Hence (b′)2−2>0(b')^2 - 2 > 0, i.e. (b′)2>2(b')^2 > 2.

Step 3: b′b' is an upper bound of AA. Let q∈Aq \in A, so q>0q>0 and q2<2q^2 < 2. Since (b′)2>2>q2(b')^2 > 2 > q^2 and both b′,q>0b', q > 0, and since t↦t2t \mapsto t^2 is strictly increasing on positive rationals (if 0<q<b′0 < q < b' fails then q≥b′q \ge b' forces q2≥(b′)2>2q^2 \ge (b')^2 > 2, contradicting q2<2q^2<2), we conclude q<b′q < b'. As q∈Aq \in A was arbitrary, b′b' is an upper bound of AA.

Conclusion. We have produced, from any positive rational upper bound bb of AA, a strictly smaller rational upper bound b′b'. Hence no rational upper bound of AA can be the least one: given any candidate least upper bound bb, b′b' would be a smaller upper bound, contradiction. Therefore AA has no supremum in Q\mathbb{Q}. ■\blacksquare

∎
CorollaryQ\mathbb{Q} is not order-complete

There exists a nonempty subset of Q\mathbb{Q} (namely AA above) that is bounded above in Q\mathbb{Q} (e.g. by 22, since q∈A⇒q2<2<4⇒q<2q\in A \Rightarrow q^2<2<4 \Rightarrow q<2) but has no least upper bound in Q\mathbb{Q}.

Worked examples

Example 1: Locating 2\sqrt2 between rationals via the correction map. Let's use the map b↦b′=b2+22bb \mapsto b' = \dfrac{b^2+2}{2b} from the Lemma's proof to squeeze in on 2\sqrt 2 starting from a deliberately poor, asymmetric guess b0=3b_0 = 3 (not the "nice" guess 1.51.5).

  • b0=3b_0 = 3: check b02=9>2b_0^2 = 9 > 2. Compute
b1=32+22⋅3=116≈1.8333.b_1 = \frac{3^2+2}{2\cdot 3} = \frac{11}{6} \approx 1.8333.
  • b1=116b_1 = \frac{11}{6}: check b12=12136≈3.361>2b_1^2 = \frac{121}{36} \approx 3.361 > 2. Compute
b2=(11/6)2+22⋅(11/6)=12136+2113=19336113=19336⋅311=193132≈1.46212.b_2 = \frac{(11/6)^2 + 2}{2\cdot(11/6)} = \frac{\frac{121}{36} + 2}{\frac{11}{3}} = \frac{\frac{193}{36}}{\frac{11}{3}} = \frac{193}{36}\cdot\frac{3}{11} = \frac{193}{132} \approx 1.46212.
  • b2=193132b_2 = \frac{193}{132}: check b22=3724917424≈2.1381>2b_2^2 = \frac{37249}{17424} \approx 2.1381 > 2. Compute
b3=b22+22b2=3724917424+219366=720971742419366=7209717424⋅66193.b_3 = \frac{b_2^2+2}{2b_2} = \frac{\frac{37249}{17424}+2}{\frac{193}{66}} = \frac{\frac{72097}{17424}}{\frac{193}{66}} = \frac{72097}{17424}\cdot\frac{66}{193}.

Since 17424=264⋅6617424 = 264\cdot 66, this simplifies to 72097264⋅193=7209750952≈1.41508\dfrac{72097}{264\cdot 193} = \dfrac{72097}{50952} \approx 1.41508. Each bnb_n is rational (an explicit ratio of integers, confirmed above), each satisfies bn2>2b_n^2 > 2 by Step 2 of the Lemma, and the sequence is strictly decreasing by Step 1. Numerically b3≈1.41508b_3 \approx 1.41508 is already within 0.00090.0009 of 2≈1.41421\sqrt2 \approx 1.41421. This is a concrete demonstration: we can get arbitrarily rationally close to 2\sqrt2, but by the Theorem, we never land on it — the target x2=2x^2=2 is never hit exactly by any bnb_n, consistent with 2∉Q\sqrt2 \notin \mathbb{Q}.

Example 2: A rational candidate that "almost" works, checked exactly. A common near-miss is x=75x = \frac{7}{5}, since (75)2=4925=1.96\left(\frac{7}{5}\right)^2 = \frac{49}{25} = 1.96, tantalizingly close to 22. Let's verify precisely why this — and every rational — must fail, using the exact machinery of the Theorem rather than decimal intuition. Suppose someone proposes x=9970x = \frac{99}{70} (a classical convergent of 2\sqrt2's continued fraction) as an exact square root of 22. Compute:

x2=992702=98014900.x^2 = \frac{99^2}{70^2} = \frac{9801}{4900}.

Is 98014900=2\frac{9801}{4900} = 2? Cross-multiply: this would require 9801=2⋅4900=98009801 = 2 \cdot 4900 = 9800. But 9801≠98009801 \neq 9800 — off by exactly 11. So x=9970x=\frac{99}{70} fails, missing by the smallest possible margin at this scale, since ∣9801−9800∣=1|9801 - 9800|=1. This is not a coincidence: the proof of the Theorem shows no fraction p/qp/q in lowest terms can satisfy p2=2q2p^2 = 2q^2 exactly, because such an equation forces both pp and qq to be even, violating lowest terms. The near-misses like 9970\frac{99}{70} (with p2−2q2=±1p^2 - 2q^2 = \pm1) are solutions to the Pell equation p2−2q2=±1p^2 - 2q^2 = \pm 1, which has infinitely many integer solutions — explaining why arbitrarily good rational approximations to 2\sqrt2 exist even though an exact one never does.

CounterexampleDropping unique factorization: why the descent argument needs Z\mathbb{Z}'s structure

The proof of irrationality of 2\sqrt2 relied on a specific fact about integers: if n2n^2 is even then nn is even, which itself rests on the more general principle of unique factorization (every integer greater than 11 factors uniquely into primes, so the number of factors of 22 in n2n^2 is exactly twice the number of factors of 22 in nn, hence cannot equal an odd count). To see why this hypothesis is essential, consider working instead in the ring R=Z[−5]={a+b−5:a,b∈Z}R = \mathbb{Z}[\sqrt{-5}] = \{a + b\sqrt{-5} : a, b \in \mathbb{Z}\}, a set of "integers" that does not have unique factorization. In RR, the number 66 factors two genuinely different ways:

6=2⋅3=(1+−5)(1−−5),6 = 2 \cdot 3 = (1+\sqrt{-5})(1-\sqrt{-5}),

and one can check 2,3,1+−5,1−−52, 3, 1+\sqrt{-5}, 1-\sqrt{-5} are all irreducible in RR (none factors further into non-unit elements of RR), so these are genuinely different factorizations into irreducibles. In such a ring, parity-style descent arguments like the one we used can fail outright, because "even" no longer behaves consistently — an element's factorization into irreducibles is not unique, so counting factors of a fixed prime-like element is not well-defined. Concretely, in the field of fractions of RR, an analogous descent argument attempting to show some element has no "rational" (i.e. ratio-of-RR-elements) square root can break down at exactly the step where we conclude "if p2p^2 is divisible by π\pi then pp is divisible by π\pi" for an irreducible π\pi — this step uses unique factorization (equivalently, that irreducibles are prime) and is simply false in general in rings without it. This shows the descent proof is not a free-floating trick; it depends essentially on Z\mathbb{Z} having unique factorization, equivalently that 22 is prime in Z\mathbb{Z} (if 2∣ab2 \mid ab then 2∣a2\mid a or 2∣b2 \mid b), which is what Step 2 and Step 3 of the Theorem's proof silently used.

Scope, edge cases & common traps

SituationWhat holdsWhat can go wrong
x2=2x^2 = 2, x∈Qx \in \mathbb{Q}No solution (Theorem)Assuming a decimal approximation like 1.414213561.41421356 is "the" exact value
x2=nx^2 = n, nn a positive integerIrrational unless nn is a perfect square (same descent argument generalizes)Forgetting to check whether nn is a perfect square first (e.g. 4=2∈Q\sqrt4 = 2 \in \mathbb{Q})
A={q∈Q:q>0,q2<2}A = \{q\in\mathbb{Q}: q>0, q^2<2\}Bounded above, nonempty, but no rational supremumClaiming the supremum "is" 2\sqrt2 while working only inside Q\mathbb{Q} — 2\sqrt2 is not a rational object yet
Rational approximations bn→2b_n \to \sqrt2Get arbitrarily close (dense approach)Confusing "arbitrarily close" with "eventually equal"
General ordered fieldsLeast-upper-bound property can fail (as in Q\mathbb{Q})Assuming every ordered field is complete — only R\mathbb{R} (up to isomorphism) has this property among ordered fields extending Q\mathbb{Q}

The mathematician behind it

Origins · 1 minHippasus of Metapontum and how this was discovered
HO
Hippasus of Metapontum
c. 5th century BCE · Pythagorean school, Magna Graecia

Hippasus is credited by ancient tradition with the earliest known demonstration that the diagonal of a unit square — geometrically, 2\sqrt2 — cannot be expressed as a ratio of whole numbers. This directly contradicted the Pythagorean doctrine that "all is number," meaning all magnitudes should be expressible as ratios of integers. Ancient legend holds that this discovery was treated as a scandal, allegedly leading to Hippasus's expulsion or even death at the hands of fellow Pythagoreans — a story likely more myth than history, but one that reflects how genuinely destabilizing this result was to the mathematics of the time. The rigorous parity-based descent proof we gave above (using even/odd integers) is essentially the argument attributed to the Pythagorean school and preserved, in a version very close to the modern one, in the appendices of some editions of Euclid's Elements (Book X).

History
- c. 500 BCE — The Pythagorean school in southern Italy studies whole-number ratios as the foundation of geometry and music.
- c. 5th century BCE — Hippasus (or the Pythagorean school more broadly) demonstrates the incommensurability of the diagonal and side of a square, i.e. the irrationality of 2\sqrt2.
- c. 300 BCE — Euclid's Elements preserves a rigorous version of the proof (Book X, and in some manuscript traditions an explicit appendix proposition).
- 1872 — Richard Dedekind and Georg Cantor independently give rigorous constructions of the real numbers (Dedekind cuts; Cauchy sequences) explicitly designed to fill gaps like the one at 2\sqrt2.
- Late 19th century — David Hilbert and others formalize the least-upper-bound axiom as the defining completeness property distinguishing R\mathbb{R} from Q\mathbb{Q}.
Why does x2=2x^2=2 having no rational solution matter for calculus?

Calculus is built on limits, continuity, and the existence of extrema — all of which secretly rely on the real numbers being "complete," meaning bounded sets have least upper bounds. If we tried to do calculus using only Q\mathbb{Q}, basic tools like the Intermediate Value Theorem would fail: a continuous function could go from negative to positive without ever hitting zero, simply because the zero it needs (like 2\sqrt2) isn't there. The failure of x2=2x^2=2 to have a rational root is the cleanest, most concrete instance of this gap, and it is the historical and pedagogical motivation for constructing R\mathbb{R} via the The Completeness Axiom.

Is the proof that 2\sqrt2 is irrational really airtight, or does it assume something hidden?

It is airtight, but it does rest on foundational facts about the integers: that every nonzero rational can be written in lowest terms, and that an integer's square is even if and only if the integer itself is even. Both facts follow from unique factorization of integers into primes (or can be proven directly by casework on even/odd, as we did). No hidden assumption about R\mathbb{R} or completeness is used — the proof is purely about integers and the field structure of Q\mathbb{Q}, which is why it was accessible to ancient Greek mathematicians long before the real numbers were formally constructed.

Does this mean 2\sqrt2 doesn't exist at all?

No — it means 2\sqrt2 does not exist as a rational number. Geometrically, 2\sqrt2 exists perfectly well as the length of the diagonal of a unit square, and once we build the real numbers R\mathbb{R} (via Dedekind cuts, Cauchy sequences, or the completeness axiom), 2\sqrt2 exists as a genuine real number satisfying x2=2x^2=2. The point of this article is narrower and sharper: within the strictly smaller system Q\mathbb{Q}, this number is simply absent, which is exactly the phenomenon that motivates constructing R\mathbb{R} in the first place.

How does this generalize to other square roots, like 3\sqrt3 or 5\sqrt5?

The same descent argument works with only cosmetic changes. For a prime pp, if x2=px^2 = p for rational x=a/bx = a/b in lowest terms, then a2=pb2a^2 = pb^2, so p∣a2p \mid a^2, and since pp is prime this forces p∣ap \mid a; writing a=pka = pk leads to b2=pk2⋅p/p=pk2b^2 = pk^2 \cdot p / p= pk^2 wait — more precisely p2k2=pb2⇒b2=pk2p^2k^2=pb^2 \Rightarrow b^2=pk^2, so p∣b2p\mid b^2 too, forcing p∣bp\mid b, contradicting gcd⁡(a,b)=1\gcd(a,b)=1. This shows p\sqrt p is irrational for every prime pp, and with a little more care (using the full prime factorization) one shows n\sqrt n is irrational for every positive integer nn that is not a perfect square.

What exactly does "the rationals have gaps" mean, precisely?

It means there exist nonempty subsets of Q\mathbb{Q} that are bounded above (every element is at most some fixed rational number) but which have no least rational upper bound — the set A={q∈Q:q>0, q2<2}A=\{q\in\mathbb{Q}:q>0,\,q^2<2\} is the standard example, proven in the Lemma above. Equivalently, the order structure of Q\mathbb{Q} fails the least-upper-bound property. This is a precise, provable statement, not a vague metaphor: "gap" refers exactly to this missing supremum, located at what will become the real number 2\sqrt2.

Why is the specific number 22 used, rather than some other number, in the classic example?

Historically and pedagogically, 22 gives the cleanest possible proof: the descent argument needs only even/odd reasoning, no general prime factorization machinery, and it corresponds to a vivid geometric picture (the diagonal of a unit square, via the Pythagorean theorem 12+12=21^2+1^2=2). Other irrational square roots like 3\sqrt3 or 5\sqrt5 work by the same method but are slightly less immediately visualizable and require a small generalization of the "even implies even square root" step to divisibility by an arbitrary prime.

Before this

Where this leads