Powers of Two Pattern


Powers of Two Pattern

Simon
So I came across this wild pattern the other day. You know the powers of 2, right? 1, 2, 4, 8, 16... Well, if you look at their digits and color them, then pick out the first row, the tenth row, the hundredth row, something strange happens.

Anna
Right, I've seen that. The last few digits of 2 raised to 10, 100, 1000, and so on seem to stabilize. But that can't be a real limit, because those numbers keep getting bigger. So what's going on?

Simon
Exactly. The sequence 2^(10^n) diverges to infinity in the usual sense. But the pattern suggests that if we change how we measure 'closeness', then these numbers might actually be converging to something. And that something lives in a different number system: the 10-adic numbers.

Anna
Okay, so how do we measure closeness differently? The usual absolute value says two numbers are close if they're near each other on the number line. What's the alternative?

Simon
For the 10-adics, two numbers are close if their last several digits agree. More precisely, we define the 10-adic absolute value of a number as 1 over the highest power of 10 that divides it. For example, 78000 is divisible by 1000 but not 10000, so its 10-adic size is 1/1000. That makes numbers with lots of trailing zeros very small.

Anna
So a billion has a 10-adic size of 1 over 10^9, which is tiny. That's completely backwards from the real numbers! But I guess that's the point: we're redefining what 'small' means.

Simon
Yes. In the 10-adic world, powers of 10 get closer and closer to 0. This lets us make sense of infinite sums that go to the left, like ...aaaa where the digits go on forever. A 10-adic integer is exactly that: a base-10 representation that extends infinitely to the left, with only finitely many digits to the right of the decimal point.

Anna
Alright, so if we have infinite digits to the left, can we do arithmetic with them? Like, what's ...999 plus 1?

Simon
Great question! Let's add right to left: 9+1 is 10, write 0 and carry 1. Then 9+1 again gives 0 with another carry, and it just keeps going. So the sum is 0. That means ...999 is actually equal to -1. So negative integers are already built in without a minus sign.

Anna
Wow, so the 10-adic integers contain all integers, positive and negative. Can they contain fractions? I remember from the video that the number with digits ...6667 is 1/3.

Simon
Exactly. Multiply ...6667 by 3 and you get ...0001, which is 1. So some rationals appear as 10-adic integers. But not all. For instance, 1/300 has a denominator divisible by 10, so it's a 10-adic number but not an integer — it has finitely many digits to the right as well.

Anna
So can we always divide? That's a big requirement for a number system. What about that mysterious limit x = 2^(10^n)? Can we divide by x?

Simon
Here's the problem. That x satisfies x^2 = x, which means x(x-1)=0, but neither x nor x-1 is 0. So we have zero divisors. If we could divide by x, we'd get a contradiction. So the 10-adic numbers don't support division by every nonzero element. They're not a field.

Anna
That's a dealbreaker. But the video said this problem goes away if we use a prime base instead of 10. So for a prime p, the p-adic numbers do form a field.

Simon
Right. With a prime, there are no zero divisors because the multiplication table works out nicely — numbers from 2 to p-2 pair up so their product is 1 mod p. So p-adics support division, contain all rational numbers, and have no holes: any sequence where digits stabilize converges. They're a complete field, just like the reals, but with a totally different structure.

Anna
And because they're different, they can contain things the reals can't. Like square roots of -1. The video showed that 2^(5^n) converges to a 5-adic integer whose square is -1. So the 5-adics have a sqrt of -1!

Simon
Yes! And it's not alone. You can check which primes have such a square root. For p=2, there isn't one — we tried solving for the digits and got stuck. For p=3, same thing. But for any prime congruent to 1 mod 4, like 5, 13, 17, it works. So p-adics can contain algebraic numbers that the reals miss.

Anna
That's fascinating. But what are they good for? Why would anyone use p-adic numbers in practice?

Simon
One cool application is solving divisibility problems. For instance, when is n^2+7 highly divisible by 2? Instead of brute-forcing, you note that you want n^2+7 to be close to 0 in the 2-adic sense. That means n should approximate a 2-adic square root of -7. You can use Newton's method to find integers n that make n^2+7 divisible by huge powers of 2.

Anna
So you apply calculus — limits, derivatives — to get information about integers. That's beautiful! P-adic numbers aren't just a curiosity; they're a genuine alternative to reals, letting us talk about convergence in terms of divisibility rather than distance.

Simon
Exactly. They have all the major properties we like: they contain the integers, support arithmetic, are complete, and even contain solutions to equations like x^2 = -1. But they also reflect properties of integers that the reals ignore, like divisibility by a prime. So in many number theory problems, p-adics are the natural setting.

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