1. Home
  2. Explore
  3. Mathematics
  4. 9, 99, 999 Converges to -1

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

9, 99, 999 Converges to -1

Study Notes: Convergence in Alternative Metrics – The 2-adic Distance

This set of notes explores the concept of convergence of sequences using different definitions of distance. While in the usual real numbers a sequence like 9, 99, 999, ... diverges to infinity, adopting a different metric – the 2-adic metric – reveals that this sequence converges to -1. The discussion covers the standard definition of convergence, the properties required of any distance function, and the verification that the 2-adic metric satisfies those properties, culminating in a surprising convergence result.


Standard Convergence in the Real Numbers

The usual definition of convergence for a sequence of real numbers relies on the ordinary Euclidean distance. For a sequence (an)(a_n)(an​) to converge to a limit LLL, the distance between ana_nan​ and LLL must approach zero as nnn increases. In the real numbers, this distance is the absolute value:

d(an,L)=∣an−L∣d(a_n, L) = |a_n - L|d(an​,L)=∣an​−L∣

Example: Sequence 32,43,54,65,…\frac{3}{2}, \frac{4}{3}, \frac{5}{4}, \frac{6}{5}, \dots23​,34​,45​,56​,…

The nnnth term of this sequence is:

an=n+2n+1a_n = \frac{n+2}{n+1}an​=n+1n+2​

Intuitively, as nnn grows, the numerator and denominator become nearly equal, so the sequence should approach 1. To prove convergence, compute the distance to the proposed limit:

∣an−1∣=∣n+2n+1−1∣=∣n+2−(n+1)n+1∣=∣1n+1∣=1n+1\begin{aligned} |a_n - 1| &= \left| \frac{n+2}{n+1} - 1 \right| \\ &= \left| \frac{n+2 - (n+1)}{n+1} \right| \\ &= \left| \frac{1}{n+1} \right| = \frac{1}{n+1} \end{aligned}∣an​−1∣​=​n+1n+2​−1​=​n+1n+2−(n+1)​​=​n+11​​=n+11​​

As n→∞n \to \inftyn→∞, 1n+1→0\frac{1}{n+1} \to 0n+11​→0. Therefore, n+2n+1→1\frac{n+2}{n+1} \to 1n+1n+2​→1 in the usual metric.

Key idea: In the real numbers, convergence means the absolute difference between terms and the limit becomes arbitrarily small.


The Problem: A Sequence That Diverges (in the Usual Sense)

Consider the sequence of numbers formed by repeating the digit 9:

9,  99,  999,  9999,  …9,\; 99,\; 999,\; 9999,\; \dots9,99,999,9999,…

The nnnth term is:

an=999…9⏟n digits=10n−1a_n = \underbrace{999\dots9}_{n\text{ digits}} = 10^n - 1an​=n digits999…9​​=10n−1

In the standard real metric, ∣an−L∣|a_n - L|∣an​−L∣ grows without bound for any finite LLL, so the sequence diverges to infinity. However, there exist alternative ways to measure distance that can assign a finite limit to this sequence.


The 2-adic Metric: A New Definition of Distance

The 2-adic metric (a special case of p-adic metrics) provides a different way to measure distance between integers. It is defined as follows:

For two integers xxx and yyy,

d2(x,y)=12md_2(x, y) = \frac{1}{2^m}d2​(x,y)=2m1​

where mmm is the largest integer such that 2m2^m2m divides x−yx - yx−y. In other words, mmm is the exponent of the highest power of 2 that is a factor of the difference x−yx - yx−y. If x=yx = yx=y, then x−y=0x - y = 0x−y=0, and by convention d2(x,y)=0d_2(x, y) = 0d2​(x,y)=0 (since every power of 2 divides zero, but we take the "largest" as infinite, leading to 1/2∞=01/2^\infty = 01/2∞=0).

Example: Distance between 100 and 4

  • Usual distance: ∣100−4∣=96|100 - 4| = 96∣100−4∣=96.

  • 2-adic distance:

    • Compute difference: 100−4=96100 - 4 = 96100−4=96.

    • Find highest power of 2 dividing 96: 96=25×396 = 2^5 \times 396=25×3 (since 25=322^5 = 3225=32, 32×3=9632 \times 3 = 9632×3=96).

    • m=5m = 5m=5, so d2(100,4)=125=132d_2(100, 4) = \frac{1}{2^5} = \frac{1}{32}d2​(100,4)=251​=321​.

Thus, in the 2-adic metric, 100 and 4 are very close (distance 1/321/321/32), whereas in the usual metric they are far apart.

Definition: The 2-adic distance between two integers is small when their difference contains a large power of 2 as a factor.


Axioms for a Distance Function

In mathematics, any function d:X×X→Rd: X \times X \to \mathbb{R}d:X×X→R (where XXX is a set) that satisfies three properties is called a metric or distance function:

  1. Positivity:

    • d(x,y)≥0d(x, y) \ge 0d(x,y)≥0 for all x,yx, yx,y, and

    • d(x,y)=0d(x, y) = 0d(x,y)=0 if and only if x=yx = yx=y.

  2. Symmetry:

    • d(x,y)=d(y,x)d(x, y) = d(y, x)d(x,y)=d(y,x) for all x,yx, yx,y.

  3. Triangle Inequality:

    • d(x,z)≤d(x,y)+d(y,z)d(x, z) \le d(x, y) + d(y, z)d(x,z)≤d(x,y)+d(y,z) for all x,y,zx, y, zx,y,z.

These axioms capture the intuitive properties of distance: distances are non‑negative and zero only for identical points; the order does not matter; and going directly from one point to another is never longer than making a detour.

Verification of the Axioms for the 2-adic Metric

We now check that d2(x,y)=1/2md_2(x, y) = 1/2^md2​(x,y)=1/2m (with mmm as defined) satisfies the three axioms for integers x,y,zx, y, zx,y,z.

  • Positivity: d2(x,y)=1/2md_2(x, y) = 1/2^md2​(x,y)=1/2m is a positive real number (since 2m>02^m > 02m>0). If x=yx = yx=y, the difference is 0, and we define d2(x,y)=0d_2(x, y) = 0d2​(x,y)=0. Conversely, if d2(x,y)=0d_2(x, y) = 0d2​(x,y)=0, then the only way is if mmm is infinite, which corresponds to x−y=0x - y = 0x−y=0, so x=yx = yx=y. Hence positivity holds.

  • Symmetry: x−yx - yx−y and y−xy - xy−x differ only by a sign. If 2m2^m2m divides x−yx - yx−y, then 2m2^m2m also divides y−x=−(x−y)y - x = -(x - y)y−x=−(x−y). The largest power of 2 dividing the absolute difference is the same. Therefore d2(x,y)=d2(y,x)d_2(x, y) = d_2(y, x)d2​(x,y)=d2​(y,x).

  • Triangle inequality: Suppose d2(x,y)=1/2md_2(x, y) = 1/2^md2​(x,y)=1/2m and d2(y,z)=1/2nd_2(y, z) = 1/2^nd2​(y,z)=1/2n. Without loss of generality, assume m≤nm \le nm≤n (the relevant power for the triangle inequality uses the smaller exponent). Then x−y=a⋅2mx - y = a \cdot 2^mx−y=a⋅2m and y−z=b⋅2my - z = b \cdot 2^my−z=b⋅2m for some integers a,ba, ba,b (note that 2m2^m2m divides both differences, even if the actual maximum exponent for y−zy - zy−z might be larger than mmm). Adding these equations:

    x−z=(x−y)+(y−z)=(a+b)⋅2mx - z = (x - y) + (y - z) = (a + b) \cdot 2^mx−z=(x−y)+(y−z)=(a+b)⋅2m

    Hence 2m2^m2m divides x−zx - zx−z. The actual largest power of 2 dividing x−zx - zx−z might be greater than mmm (if a+ba+ba+b contains extra factors of 2), which would make d2(x,z)d_2(x, z)d2​(x,z) smaller than 1/2m1/2^m1/2m. Therefore,

    d2(x,z)≤12m=d2(x,y)(or ≤d2(y,z) depending on which is smaller)d_2(x, z) \le \frac{1}{2^m} = d_2(x, y) \quad \text{(or } \le d_2(y, z) \text{ depending on which is smaller)}d2​(x,z)≤2m1​=d2​(x,y)(or ≤d2​(y,z) depending on which is smaller)

    More generally, it can be shown that d2(x,z)≤max⁡{d2(x,y),d2(y,z)}d_2(x, z) \le \max\{d_2(x, y), d_2(y, z)\}d2​(x,z)≤max{d2​(x,y),d2​(y,z)}, which implies the standard triangle inequality. Thus the triangle inequality holds, often with a much stronger property (the ultrametric inequality).

Since all three axioms are satisfied, the 2-adic metric is a legitimate distance function on the integers.

Important: The 2-adic metric is an ultrametric: it satisfies the stronger condition d(x,z)≤max⁡{d(x,y),d(y,z)}d(x, z) \le \max\{d(x, y), d(y, z)\}d(x,z)≤max{d(x,y),d(y,z)}. This is not required by the standard axioms, but it is a consequence of the way the metric is defined.


Convergence of the Sequence of 9s Under the 2-adic Metric

Now we apply the 2-adic metric to the sequence an=10n−1a_n = 10^n - 1an​=10n−1 (the number consisting of nnn 9s) and the candidate limit L=−1L = -1L=−1.

First, compute the difference:

an−(−1)=(10n−1)+1=10na_n - (-1) = (10^n - 1) + 1 = 10^nan​−(−1)=(10n−1)+1=10n

The difference is 10n10^n10n. Factor 10n10^n10n:

10n=(2⋅5)n=2n⋅5n10^n = (2 \cdot 5)^n = 2^n \cdot 5^n10n=(2⋅5)n=2n⋅5n

The highest power of 2 dividing 10n10^n10n is 2n2^n2n (since 5n5^n5n is odd). Therefore, the largest exponent mmm in the definition is nnn, and the 2-adic distance is:

d2(an,−1)=12nd_2(a_n, -1) = \frac{1}{2^n}d2​(an​,−1)=2n1​

As n→∞n \to \inftyn→∞, 12n→0\frac{1}{2^n} \to 02n1​→0. Hence the sequence (an)(a_n)(an​) converges to −1-1−1 in the 2-adic metric.

Key result: The sequence 9,99,999,…9, 99, 999, \dots9,99,999,… (given by an=10n−1a_n = 10^n - 1an​=10n−1) converges to −1-1−1 when distance is measured by the 2-adic metric, because the differences 10n10^n10n contain increasingly large powers of 2.

This startling conclusion shows that convergence depends crucially on the choice of metric. In the usual real metric the sequence diverges; in the 2-adic metric it converges to a negative integer.


Generalization: p‑adic Metrics

The 2-adic metric is a special case of a p‑adic metric, where ppp is any prime number. For a fixed prime ppp, the ppp-adic distance between two integers xxx and yyy is defined as:

dp(x,y)=1pmd_p(x, y) = \frac{1}{p^m}dp​(x,y)=pm1​

where mmm is the largest exponent such that pmp^mpm divides x−yx - yx−y. If x=yx = yx=y, dp(x,y)=0d_p(x, y) = 0dp​(x,y)=0.

Properties analogous to those of the 2-adic metric hold: positivity, symmetry, and the ultrametric triangle inequality. The prime ppp must be prime for the definition to be well‑behaved (e.g., for the product representation of numbers to be unique).

Other sequences and limits

The same idea can be applied to other sequences. For example, a sequence of numbers consisting of repeated digit 8 would involve a different limit (and might not converge at all, depending on the relationship with powers of 2). The limit −1-1−1 for the sequence of 9s is not universal; it arises because 10n=2n⋅5n10^n = 2^n \cdot 5^n10n=2n⋅5n exactly. Finding the limit for a given sequence often requires careful algebraic manipulation and an understanding of the prime factorization of the terms.

Remark: Not every sequence converges in a p‑adic metric. The sequence must be constructed so that the differences an−La_n - Lan​−L contain increasingly large powers of ppp. The limit LLL is not arbitrary; it depends on the specific form of the terms.


Summary

  • Convergence of a sequence is defined relative to a distance function (metric).

  • The standard metric on the real numbers is d(x,y)=∣x−y∣d(x, y) = |x - y|d(x,y)=∣x−y∣.

  • A different metric, the 2‑adic metric, measures distance based on the highest power of 2 dividing the difference.

  • The axioms of a distance function (positivity, symmetry, triangle inequality) are satisfied by the 2‑adic metric.

  • Under the 2‑adic metric, the sequence an=10n−1a_n = 10^n - 1an​=10n−1 (numbers made of nnn 9s) converges to −1-1−1 because 10n10^n10n is divisible by 2n2^n2n.

  • This result can be extended to p‑adic metrics for any prime ppp.

  • The choice of metric fundamentally changes which sequences are considered convergent and to what limit.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent