1 Billion is Tiny in an Alternate Universe: Introduction to p-adic Numbers



The p-adic numbers are bizarre alternative number systems that are extremely useful in number theory. They arise by changing our notion of what it means for a number to be large. As a real number, 1 billion is huge. But as a 10-adic number, it is tiny! #SoME2

Thanks to my supporters on Patreon! Get early access to videos and more:

—————-

Notes and references:

The last 30 digits of 2^1000000 and other large powers can be computed using modular arithmetic, by working modulo 10^30. In Mathematica, use the function PowerMod. In Python, use the third argument of pow. These functions implement the method of repeated squaring or one of its variants:

Bézout’s identity can be used to prove that the numbers from 2 to p-2 pair up perfectly, and the partner of a given number can be computed using the extended Euclidean algorithm:

The 2-adic limits arising from the (2^n)th Fibonacci numbers were established on page 216 of this paper:
Eric Rowland and Reem Yassawi, p-adic asymptotic properties of constant-recursive sequences, Indagationes Mathematicae 28 (2017) 205–220.

Hensel’s lemma gives conditions for Newton’s method to work in the p-adic numbers:

—————-

0:00 Introduction
2:16 Properties of the real numbers
3:19 10-adic integers
6:55 Properties of the 10-adic integers
10:06 Division?
12:47 Limit points
13:50 5-adic limit
15:36 Fibonacci numbers
16:31 Square roots of -1
18:25 What are p-adics good for?

—————-

Animated with Manim.
Music by Marc Rowland and Cody Leavitt.
Thanks to @catpfaff for helpful feedback on an earlier version.

Web site:

source

38 Comments

  1. Great!

    Let me just add a remark. Eric already mentioned that the field of p-adic numbers provides a completion of the rational numbers (it contains the rational numbers, it extends the usual addition and multiplication on rational numers, and there are no holes : ) ). He also mentioned that this completion is based on a different version of an absolute value, the p-adic absolute value, where p is a prime. A theorem by Ostrowski from 1916 says that there are no other ways to assign absolute value on rational numbers, more precisely, every nontrivial absolute value defined on rational numbers is equivalent to either the usual one, leading to the notion of real numbers, or to a p-adic absolute value, for some prime p, leading to the notion of p-adic numbers. Thus, the p-adic numbers appear as natural objects, on par with the real numbers.

  2. I come back here like once a year because this is one of the best videos on the internet. Thank you so much for taking the time to share your knowledge with the world.

  3. The fact related to p-adic division, where you say that all numbers from 2 to p-2 can be perfectly paired together where their product is a multiple of p + 1, my mind was blown. I spend 20 minutes proving this out for other primes, and I'm so curious how this works.

  4. I am absolutely piss-poor at math, always was. But I've always thought it was so beautiful when articulated by people who do. Whenever I learn something new, it feels like a new part of my mind unfolding, with so much more just out of reach. It's a great feeling.

  5. Here is a parge number for absolutely no reason
    10,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00010,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000😊

  6. Googol is |10,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000|10 = 0.0,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,001

  7. The digest of ever place (ones tens hundredds …). Have a repeating pattern the full cycle of each is exactly 5x of the previous. The ones place is a 4 digit string excluding the option that it is 0 and the starting number is not 5.

  8. I had quite vague understanding of p-adic numbers after reading Wikipedia of p-adic numbers for quite many times and writing out some manipulation of python's int by hand, which is 2-adic integer in some sense. But I think this visualization gave me good intuition or something.

  9. What I love about p-adic numbers is that they’re at the same time an extremely complex concept but also a simple one. I presented my 6yo the idea of …9999 + 1 = 0 and she grasped instantly. The idea that infinity eventually wraps around is mind bending but also very intuitive

Leave a Reply

Your email address will not be published. Required fields are marked *

You might like

© 2026 Cantinho do Vídeo - WordPress Video Theme by WPEnjoy