1. Home
  2. Explore
  3. Mathematics
  4. Powers of Two Pattern

Study methods

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

Powers of Two Pattern

Discovery: A Hidden Pattern in Powers of 2

When the digits of powers of 2 are colored and aligned to the right, a surprising pattern emerges: the last few digits of 210n+12^{10^{n+1}}210n+1 match those of 210n2^{10^n}210n. As nnn increases, the agreement extends to more digits. For example, the 1st, 10th, 100th, 1000th rows all show stabilizing last digits. This suggests that in some sense the numbers 210n2^{10^n}210n are converging — not in the usual real-number sense (they diverge to infinity), but in a different notion of closeness based on last digits.

Key insight: The sequence 210n2^{10^n}210n is converging to a specific infinite leftward-digit pattern, which turns out to be a 10-adic integer — not infinity.


The Real Numbers: A Quick Reminder

The real numbers have several desirable properties:

  • Picture as a number line: points with order.

  • Contain all integers and rational numbers.

  • Support addition, subtraction, multiplication, and division (except by zero).

  • Complete: every Cauchy sequence converges (no holes).

But real numbers are not the only game in town. Alternatives exist with similar properties, and some even contain square roots of −1-1−1.


The 10-adic Absolute Value: A New Notion of Size

To understand the pattern, define a new absolute value. For an integer, find the highest power of 10 that divides it. Then:

10-adic absolute value: ∣n∣10=110k|n|_{10} = \frac{1}{10^k}∣n∣10​=10k1​, where kkk is the largest exponent such that 10k10^k10k divides nnn.
(For n=0n=0n=0, define ∣0∣10=0|0|_{10}=0∣0∣10​=0.)

Examples:

  • 780007800078000 is divisible by 10310^3103 but not 10410^4104, so ∣78000∣10=1/1000|78000|_{10}=1/1000∣78000∣10​=1/1000.

  • 1,000,000,0001,000,000,0001,000,000,000 is divisible by 10910^9109, so ∣1 billion∣10=1/109|1\text{ billion}|_{10}=1/10^9∣1 billion∣10​=1/109 — a tiny number!

Under the 10-adic metric, two numbers are close when their last several digits agree. Thus, 111 billion is close to 000 because they share 9 trailing zeros. This is completely different from the usual number line distance, where 1 billion is far from 0.


10-adic Integers

A 10-adic integer is an infinite sum to the left:

x=d0+d1⋅10+d2⋅102+d3⋅103+⋯x = d_0 + d_1 \cdot 10 + d_2 \cdot 10^2 + d_3 \cdot 10^3 + \cdotsx=d0​+d1​⋅10+d2​⋅102+d3​⋅103+⋯

where each digit did_idi​ is an integer from 0 to 9. Every ordinary integer is a 10-adic integer (by padding with zeros to the left). The limit of 210n2^{10^n}210n is a specific 10-adic integer with digits 6,7,3,9,…6, 7, 3, 9, \dots6,7,3,9,… (from rightmost outward).

Alternatively, write the sum with negative exponents:

x=d0100+d1101+d2102+⋯x = \frac{d_0}{10^0} + \frac{d_1}{10^1} + \frac{d_2}{10^2} + \cdotsx=100d0​​+101d1​​+102d2​​+⋯

This looks similar to usual decimal expansions, but the digits extend infinitely to the left rather than to the right.

No 10-adic Number Line

Because many different 10-adic integers can have the same size (e.g., 780007800078000 and 350003500035000 both have size 1/10001/10001/1000), there is no notion of "greater than" or "less than." There is no 10-adic number line, no positive/negative ordering.


Arithmetic with 10-adic Integers

Addition and subtraction work exactly like ordinary integer arithmetic, but carried digits propagate infinitely to the left.

Example: Consider the 10-adic integer …999\dots 999…999 (all 9s). Add 1:

…999+1…000\begin{array}{c} \dots 999 \\ + \quad 1 \\ \hline \dots 000 \end{array}…999+1…000​​

Each digit: 9+1=109+1=109+1=10 → write 0, carry 1. This continues forever, yielding all zeros. Therefore:

…999=−1\dots 999 = -1…999=−1 in the 10-adic integers.

All negative integers are already represented without a minus sign.

Multiplication also works. Example: The 10-adic integer …6667\dots 6667…6667 (a 7 followed by all 6s) multiplied by 3 gives 1. Hence:

…6667=13\dots 6667 = \frac{1}{3}…6667=31​.

Some rational numbers appear, but not all: 1/3001/3001/300 is not a 10-adic integer because its denominator includes a factor of 10. It becomes a 10-adic number (finitely many digits to the right of the decimal point).


The Problem with Base 10: Zero Divisors

The limit x=lim⁡n→∞210nx = \lim_{n\to\infty} 2^{10^n}x=limn→∞​210n satisfies x2=xx^2 = xx2=x (check the first few digits manually). Thus:

x2−x=0⇒x(x−1)=0x^2 - x = 0 \quad \Rightarrow \quad x(x-1)=0x2−x=0⇒x(x−1)=0

Neither xxx nor x−1x-1x−1 is zero. This means the 10-adic integers have zero divisors — nonzero elements whose product is zero. Consequently, division is not always defined: attempting to divide by xxx leads to a contradiction (x=1x=1x=1). So the 10-adic numbers do not support full division.


p-adic Numbers: The Prime Fix

Replace the base 10 with a prime number ppp. Then the ppp-adic numbers do support division (except by zero). The reason: for a prime ppp, the numbers 2,3,…,p−22,3,\dots, p-22,3,…,p−2 pair up so that each product is 111 more than a multiple of ppp — no zero divisors appear.

Definition of ppp-adic absolute value: ∣n∣p=p−k|n|_p = p^{-k}∣n∣p​=p−k where pkp^kpk is the highest power of ppp dividing nnn.

Properties of ppp-adic Numbers

  • Contain all integers

  • Support addition, subtraction, multiplication

  • Support division (since ppp is prime) — they are a field

  • Contain all rational numbers

  • Complete: no holes (the ppp-adic metric is complete)

They cannot be ordered on a number line, and there is no notion of positive/negative.

Key difference from reals: ppp-adic closeness is based on divisibility by powers of ppp, not on usual distance.


Examples of Convergence in ppp-adic Numbers

5-adic Limit: Square Root of -1

Consider 25n2^{5^n}25n in base 5. The sequence converges to a 5-adic integer xxx. From x5=xx^5 = xx5=x and factoring x5−x=x(x−1)(x+1)(x2+1)=0x^5 - x = x(x-1)(x+1)(x^2+1)=0x5−x=x(x−1)(x+1)(x2+1)=0, and since x≠0,1,−1x\neq 0,1,-1x=0,1,−1, we must have x2+1=0x^2+1=0x2+1=0. Thus:

x2=−1x^2 = -1x2=−1 in the 5-adic numbers. The limit lim⁡n→∞25n\lim_{n\to\infty} 2^{5^n}limn→∞​25n is a square root of -1.

This is impossible in the real numbers.

2-adic Example: Square Roots of −35-\frac{3}{5}−53​

The sequence of Fibonacci numbers F2nF_{2^n}F2n​ does not converge 2-adically, but taking every other row (e.g., F2F_{2}F2​, F4F_{4}F4​, F8F_{8}F8​, ...) does converge to two 2-adic integers that are the square roots of −35-\frac{3}{5}−53​.


Square Roots of -1 in Different ppp-adic Systems

  • 2-adic numbers: No square root of -1. Attempt: last digit must be 1, but second-to-last digit cannot satisfy the equation.

  • 3-adic numbers: No square root of -1.

  • 5-adic numbers: Yes, as shown above.

In general, the ppp-adic numbers contain −1\sqrt{-1}−1​ precisely when p≡1(mod4)p \equiv 1 \pmod{4}p≡1(mod4) (a classic result from quadratic residues).


Application: Divisibility Problems with Newton's Method

Problem: Find integers nnn such that n2+7n^2 + 7n2+7 is divisible by a high power of 2.

In base 2, high divisibility by 2 means many trailing zeros in the binary representation — i.e., n2+7n^2+7n2+7 is close to 0 in the 2-adic metric. We want nnn to approximate a solution to n2=−7n^2 = -7n2=−7, i.e., a square root of -7 in the 2-adic numbers (which exist).

Apply Newton's method to f(x)=x2+7f(x)=x^2+7f(x)=x2+7, iteration:

xk+1=xk−f(xk)f′(xk)=xk−xk2+72xkx_{k+1} = x_k - \frac{f(x_k)}{f'(x_k)} = x_k - \frac{x_k^2+7}{2x_k}xk+1​=xk​−f′(xk​)f(xk​)​=xk​−2xk​xk2​+7​

Starting with x0=1x_0=1x0​=1, we get:

  • x1=−3x_1 = -3x1​=−3

  • x2=−13x_2 = -\frac{1}{3}x2​=−31​

  • x3=313x_3 = \frac{31}{3}x3​=331​

  • …

In the real numbers, this diverges. But in the 2-adic numbers, the sequence converges. Truncating the resulting 2-adic integer gives an integer nnn; indeed n2+7n^2+7n2+7 is highly divisible by 2.

ppp-adic numbers let us use calculus tools (limits, continuity, derivatives) to solve integer divisibility problems in ways not possible with real numbers alone.


Summary: p-adic vs Real Numbers

Property

Real Numbers

p-adic Numbers (ppp prime)

Ordered number line

Yes

No (no positive/negative)

Contains integers

Yes

Yes

Contains rationals

Yes

Yes

Addition, subtraction, multiplication

Yes

Yes

Division (except by 0)

Yes

Yes

Contains −1\sqrt{-1}−1​

No

For some primes (e.g., p=5p=5p=5)

Geometric intuition

Distance on line

Divisibility by powers of ppp

Limits

Based on usual distance

Based on trailing digits

Completeness

Yes

Yes

The ppp-adic numbers provide a powerful alternative number system that captures arithmetic properties determined by a prime ppp, opening doors to number theory, diophantine equations, and deeper mathematical structures.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent