Mathematicians Use Numbers Differently From The Rest of Us

Поделиться
HTML-код
  • Опубликовано: 5 июн 2023
  • There's a strange number system, featured in the work of a dozen Fields Medalists, that helps solve problems that are intractable with real numbers. Head to brilliant.org/veritasium to start your free 30-day trial, and the first 200 people get 20% off an annual premium subscription.
    If you're looking for a molecular modeling kit, try Snatoms - a kit I invented where the atoms snap together magnetically: snatoms.com
    ▀▀▀
    References:
    Koblitz, N. (2012). p-adic Numbers, p-adic Analysis, and Zeta-Functions (Vol. 58). Springer Science & Business Media.
    Amazing intro to p-adic numbers here: • 1 Billion is Tiny in a...
    Excellent series on p-adic numbers: • p adic numbers. Part 1...
    Great videos by James Tanton: @JamesTantonMath
    ▀▀▀
    Special thanks to our Patreon supporters:
    Emil Abu Milad, Tj Steyn, meg noah, Bernard McGee, KeyWestr, Amadeo Bee, TTST, Balkrishna Heroor, John H. Austin, Jr., john kiehl, Anton Ragin, Diffbot, Gnare, Dave Kircher, Burt Humburg, Blake Byers, Evgeny Skvortsov, Meekay, Bill Linder, Paul Peijzel, Josh Hibschman, Mac Malkawi, Juan Benet, Ubiquity Ventures, Richard Sundvall, Lee Redden, Stephen Wilcox, Marinus Kuivenhoven, Michael Krugman, Sam Lutfi.
    ▀▀▀
    Written by Derek Muller and Alex Kontorovich
    Edited by Trenton Oliver
    Animated by Mike Radjabov, Ivy Tello, Fabio Albertelli and Jakub Misiek
    Filmed by Derek Muller
    Additional video/photos supplied by Getty Images & Pond5
    Music from Epidemic Sound & Jonny Hyman
    Produced by Derek Muller, Petr Lebedev, & Emily Zhang

Комментарии • 10 тыс.

  • @RenaudAlly
    @RenaudAlly 11 месяцев назад +6212

    These are literally scientific documentaries of the highest quality at this point. It's amazing that I'm able to watch this stuff for no cost at all. Thank you so much Veritasium

    • @geniuz4093
      @geniuz4093 10 месяцев назад +63

      @@leeroyjenkins0 revanced youtube moment, ads blocked, sponsored segments skpped automatically

    • @Hyperrrex
      @Hyperrrex 10 месяцев назад +8

      ​@@geniuz4093 yessir

    • @aaditya4556
      @aaditya4556 10 месяцев назад +20

      It's all thanks to Patreons and sponsors

    • @rafd97
      @rafd97 10 месяцев назад +4

      @@leeroyjenkins0 I'm not paying time with time. Ads are not for everyone just like adblockers.

    • @louvierejacques
      @louvierejacques 10 месяцев назад +20

      ​@@leeroyjenkins0 but that's a trivial amount of time; I think the point was that there's high-quality content that's as close to free as makes no difference. You can let the ad play while you brush your teeth or watch another YT video in another tab.

  • @johnchessant3012
    @johnchessant3012 11 месяцев назад +2499

    I don't normally think of Veritasium as a math youtuber, but with videos on Newton's calculation of pi, Godel's incompleteness theorem, discrete Fourier transform, logistic map, Penrose tiling, Hilbert's hotel paradox, and various probability puzzles, he definitely should be. I mean, this video alone (p-adic numbers, Fermat's last theorem, Hensel lifting) would be an extremely ambitious topic even for a math-focused channel, and he and Alex Kontorovich did a great job with it!

    • @hoogreen
      @hoogreen 11 месяцев назад +17

      absolutely

    • @gw6667
      @gw6667 11 месяцев назад +67

      Waiting for 3B1B to pop up somewhere

    • @austinhamilton9444
      @austinhamilton9444 11 месяцев назад +42

      Like half of his videos are math related lol

    • @arnabbiswasalsodeep
      @arnabbiswasalsodeep 11 месяцев назад +16

      Next-up I want him to look at parker square.

    • @thanatos8618
      @thanatos8618 11 месяцев назад +10

      Yeah...not math RUclipsr to me, but a sleep helper RUclipsr. 😂

  • @aurunemaru
    @aurunemaru 9 месяцев назад +229

    0:24
    "so, does this pattern continue?"
    me immediatelly:
    "patterns fool ya, paterns fool ya, ..."

  • @andy07070
    @andy07070 9 месяцев назад +997

    The level of quality in these videos is sublime. You never insult the audiences, by not going as deep as is required. Excellent work as always

    • @SOC-
      @SOC- 9 месяцев назад +16

      Its interesting to think of lack of depth as an insult. Why would this be so?

    • @andy07070
      @andy07070 9 месяцев назад +39

      @@SOC- Perhaps insult was not the ideal word to use. What I meant to say is that he goes deeper than alot of similar content creators, which I find enjoyable.

    • @SOC-
      @SOC- 9 месяцев назад +11

      @@andy07070 yea I enjoy the depth as well, especially now as it is so easy to use A.I to make content.

    • @rohangeorge712
      @rohangeorge712 9 месяцев назад +21

      what a mature comment section

    • @MathsMadeSimple101
      @MathsMadeSimple101 6 месяцев назад

      Yo Andy, remember me?

  • @rrrfaa
    @rrrfaa 11 месяцев назад +1115

    I took a graduate course on p-adics in university and it felt like all I did was manipulating symbols on paper without understanding what is happening. This video finally made me understand what is going on.

    • @bryan200023
      @bryan200023 11 месяцев назад +88

      The essence and beauty of mathematics is to understand, and it is pretty common to find people in academia who teach soulless mathematics. Something must be done, because learning so abstract and difficult concepts without the proper background and motivation is pointless, or so I believe.

    • @JayCeeEmm
      @JayCeeEmm 11 месяцев назад +13

      @@bryan200023 that’s something I feel I struggle with I think math is so cool but I also don’t necessarily understand the magnitude of why this kinda crazy stuff manipulating infinity is important

    • @BoB-Dobbs_leaning-left
      @BoB-Dobbs_leaning-left 11 месяцев назад +4

      Unfortunately, in NZ, P addicts result from the use of pure methamphetamine. (p = pure)
      But, seriously. The use of base 3 in computing is not that hard, ground, positive to ground, negative to ground. Gound being 0 to source voltage +or-.

    • @josephvanname3377
      @josephvanname3377 11 месяцев назад +5

      How can you learn more from a video on RUclips than a graduate course?

    • @BoB-Dobbs_leaning-left
      @BoB-Dobbs_leaning-left 11 месяцев назад +16

      @@josephvanname3377 "...can you learn more from a video on RUclips than a graduate course?"
      Yes. There is a difference between studying and learning.

  • @jessejustice454
    @jessejustice454 11 месяцев назад +4696

    I can’t focus for 5 mins at school but can watch a full 30 minutes video from you no problem

    • @m-a-s-e-y
      @m-a-s-e-y 11 месяцев назад +29

      Lol

    • @kexerino
      @kexerino 11 месяцев назад +345

      This is something you choose to do, school isn't

    • @mirupikachu8505
      @mirupikachu8505 11 месяцев назад +132

      Prob because you knows that you're gonna learn smth that you actually wants to know about, rather than listening to random shits that your teacher's gonna teach you ;-;

    • @qpSubZeroqp
      @qpSubZeroqp 11 месяцев назад +32

      It's probably all the answers before and also probably because this channel has a better teacher than the one at your school. I felt the same when I was in school as well and realized that quite a few of my teachers were just not right for me

    • @saurabhkumarsingh3986
      @saurabhkumarsingh3986 11 месяцев назад +111

      You can't . This 30 video was uploaded 10 mins ago, and clearly you didn't watch it for 30 minutes before coming to the comments, ie lost your focus .

  • @manOmanyTrades
    @manOmanyTrades 8 месяцев назад +211

    Bravo! You covered in 30 minutes what took me semesters to master in my youth. I am totally inspired.

    • @MathsMadeSimple101
      @MathsMadeSimple101 6 месяцев назад +5

      You mastered this in your youth? You're a genius!

  • @poly_hexamethyl
    @poly_hexamethyl 7 месяцев назад +49

    I'd heard of p-adic numbers and was vaguely familiar with their definition, but didn't know much about their motivation or applications. After watching your excellent video, I'm motivated to learn more about them.

  • @CyclingGeo
    @CyclingGeo 11 месяцев назад +1610

    I’m a geologist so my maths is questionable at best.
    I find it utterly fascinating how well I can follow along with this, yet still be completely bewildered and confused.

    • @trout3685
      @trout3685 11 месяцев назад +129

      It makes you feel like your learning but it's basically entertainment because you will forget anything about it the next day.

    • @CyclingGeo
      @CyclingGeo 11 месяцев назад +47

      @@trout3685 well with my adhd, I essentially forget the previous sentence because I’m having such a hard time following.

    • @Prawnsly
      @Prawnsly 11 месяцев назад +20

      @@CyclingGeo Do you remember leaving either of these comments several hours later? I'm here to remind your brain

    • @Monsux
      @Monsux 11 месяцев назад +36

      @@CyclingGeo Derek might say we're not visual learners, but I can see the infinity triple cylinders in my head. It's stuck there forever in endless loop to remind this video topic. No idea how to use this knowledge, since this whole video was like a rocket engineer teaching a toddler how to build a hypothetical navigation system. But give me an endless pile of cylinders, and I'll build stacks of 0, 1, 2.

    • @michaelwesten4624
      @michaelwesten4624 11 месяцев назад

      yeah because you probably finished 12 years of school and didn't get shot in the process

  • @TimeBucks
    @TimeBucks 11 месяцев назад +842

    Thanks for bringing this amazing topic to us

  • @jakoblino
    @jakoblino 8 месяцев назад +123

    The quality of these videos is insanely high. Thank you very much!

  • @IanRobinett
    @IanRobinett 10 месяцев назад +66

    Derek, you have literally been the person teaching me the most since I found RUclips. Shortly after is Destin at SmarterEveryDay, but you two give me more knowledge than I've ever wanted in so many fields. I HAAAAATE most of the subjects you cover on the surface, but when you break them down into applicable and project-oriented and realistic applications, it makes me realize my disdain for things like Mathematics and Science, is because of the academic application, versus what it means in real life. You two are truly those who have expanded my mind to forget my hatred for the academia part, and realize that it can directly apply to the "fun stuff" as well. I guess it proves the difference between "AP" and "GT" students... Same intelligence, just different applications. Regardless, this video was amazing, and thank you for the visual and practical applications.

  • @LeoLeahy
    @LeoLeahy 11 месяцев назад +1937

    As an engineer and video editor, I am absolutely mind-blown by the production quality of this video. I can't even imagine the number of hours put into the editing alone. It's amazing that content like this is available for free. Not that your other videos aren't great as well, but this was something else.

    • @gwynsea8162
      @gwynsea8162 11 месяцев назад +12

      I don't know what income 2.2m views on youtube achieves... do you?

    • @g0plus0sucks0balls
      @g0plus0sucks0balls 11 месяцев назад +3

      the video editing has been done by AI tho...?

    • @baadlyrics8705
      @baadlyrics8705 11 месяцев назад +30

      1000 views are about one dollar but that depends heavily on how advertiser friendly the content is.. this channel prolly gets way more than one dollar per 1000 views but lets calculate it with 1 dollar to stay on the safe side.. so 2200000 / 1000 = 2200 dollars. But like i said, its prolly more like 3 or 4 k. But the big money isnt in views, the big money is in sponsorships.. for a standard 60 seconds sponsorship on this kind of video and channel the sponsor prolly pays in the ballpark of 10k-50k or so for it. Should be about 10 - 50 dollars per 1000 views from a sponsor.. so in this case if we calculate with 15 bucks times 2200000 / 1000 that would be 33000 dollars but could be quite a bit more for this good of a channel thats very advertiser friendly

    • @SamBorgman
      @SamBorgman 11 месяцев назад +6

      @@gwynsea8162 1 million is $1k. But it massively fluctuates seemingly randomly. Big channels make lot more money in other ways than they make from YT ad revenue.

    • @m9jbhakar
      @m9jbhakar 11 месяцев назад +26

      its done by python software named "manim". i also made these type of videos to teach my students basic operations.

  • @einargs
    @einargs 11 месяцев назад +1235

    As someone who does computer science, it was extremely cool to suddenly make the connection to how we represent negative numbers using two's complement.

    • @pranavps851
      @pranavps851 11 месяцев назад +24

      I see the connection, but they are finite in length... So how does it work?

    • @griffinkimberly7695
      @griffinkimberly7695 11 месяцев назад +129

      ​@@pranavps851 A negative number is actually represented in computers by the inverse of a number + 1 for example -3 would be 11111101. This is why signed integers can only represent half of the positive numbers that a unsigned integer can represent. You still can only represent 256 different values in 1 byte, and since half of them are negative, it goes from -128 to 127 instead. Since you invert a number to get two's complement, you can tell whether or not its negative by looking at the leftmost digit: if its 1, its a negative number, otherwise its 0 and therefore positive. The only difference between and unsigned vs signed integer is how the computer looks at that leftmost bit.

    • @r.c8756
      @r.c8756 11 месяцев назад +45

      @@griffinkimberly7695 I always thought it was a brilliant way to represent negatives. It also allows tons of algorithm tricks to work with positive and negative numbers in a fast and efficient way.

    • @leif1075
      @leif1075 11 месяцев назад +11

      @@griffinkimberly7695 what do youbmean by inverse of a number plus 1 sorry ? Why couldn't the negative of an integer in binary jist be the same as positive integer but with a negative sign? Seems clearer and more efficient to me? I'm guessing it is partly because the negstive sign means something else in binary so the computer would misinterpret it? Why don't they just change that then?

    • @leif1075
      @leif1075 11 месяцев назад +3

      @@griffinkimberly7695 and what donyou mean by invert a number to get two's complement? What is the complement of a number? Like negative and positive you mean? Never heard it referred to that way..

  • @TheShamansQuestion
    @TheShamansQuestion 8 месяцев назад +28

    This is the kind of clarity and explanation we need in university maths classes. So much of the time we are left to our own devices to interpret the logic of abstract claims like the "size" of a number. Textbooks usually state the mathematical relation. I fully get how hard it is to describe these things conceptually to a general population but it's so useful and it makes these things appreciated more. Looking at p-adics still freaks me out and I don't quite see them as stars but I can at least see how viewing a series as a different category of number altogether makes sense for why series are used in proofs so often to break down some what simple rational number or variable. (I'm not explaining myself properly because I know the convergence of infinite sums is useful. It's more understanding how the parts inside work and what those mean, or just another way to visualise infinite series.)

  • @afroohar
    @afroohar 8 месяцев назад +60

    It's been a while since a topic in mathematics captured my imagination so much. There is something about the p-adics that feels wrong, but also something that feels so compelling and so deep.
    What a wonderful introduction and brilliantly done.

  • @imtiazsameer28
    @imtiazsameer28 10 месяцев назад +598

    My Granddad used to play P-adics numbers game with me. He started by asking me to write any random numbers before decimals and he used to write his random numbers below them, And sum of them always comes Zero. His techniques and methodology amazed me and fascinated to learn More Math. Miss you Granddad ! And Thank you Veritasium for this Video

    • @JM-us3fr
      @JM-us3fr 10 месяцев назад +36

      That's a brilliant way to inspire an early fascination! I'll have to remember this one

    • @Benjamin-od8od
      @Benjamin-od8od 10 месяцев назад +19

      May he rest in peace

    • @lightningbeatbox5410
      @lightningbeatbox5410 10 месяцев назад +25

      honestly W grandad

    • @Anistuffs
      @Anistuffs 10 месяцев назад +15

      Your grandparents may be cool, but they will never be teaching-p-adic-numbers-as-a-game cool 🤯

    • @asdf-mg7tu
      @asdf-mg7tu 9 месяцев назад

      he was reincarnated as veritasium

  • @ZacharyVogt
    @ZacharyVogt 11 месяцев назад +814

    This video is the perfect example of encouraging the audience to rise to the level of the content (the exact opposite of talking down to the audience.) Very inspiring.

    • @KC-nr3ou
      @KC-nr3ou 11 месяцев назад +38

      It’s comforting to me that there are people out there that understand this stuff. It’s not me…but I’m glad they exist.

    • @JinKee
      @JinKee 11 месяцев назад +21

      Subtract the subject matter from my attention span and you get a p-atic number

    • @JinKee
      @JinKee 11 месяцев назад +7

      @Repent and believe in Jesus Christ didn't you watch the video? If you had an infinitely loving being that loved one more person it would become murderous. Explains a lot, actually.

    • @leif1075
      @leif1075 11 месяцев назад

      Wait the first part he said can't be right..yoibcantnget 1/3 by multiplyojgna bunch of numbers greater than 1 by 3. That will necessarily be much greater than 1. Why did he say this then when it's clearly wrong?

    • @DerekHise
      @DerekHise 11 месяцев назад +5

      @@leif1075 3:26, It would be wrong if you ever stopped writing any digits to the left, but as long as that sequence of numbers is infinite, that makes all leading decimal places zero. Carrying from the one's place to the tenth's place, to the hundred's etc. are all finite operations which match your intuition. You could imagine it as "carrying the leftover numbers to the the infinite's place". --That's a bit of a non-sensical phrase since there is no infinite's place, but the point is there are no leftover that actually contribute to the finite number you get as an answer. There is no higher value decimal place that isn't just a leading zero.
      I'm not sure if it is "technically" legal for our most common number system to even mix an infinity (...666667) with a finite (3), but if you accept that premise and follow along with him anyways, it actually shows how you can discover a new number system which acts as a NEW self consistent mathematical model with amazing implications and practical applications.

  • @utkarshlunagariya1102
    @utkarshlunagariya1102 10 месяцев назад +6

    A better trick for converting decimal to any other base is by doing this
    Divide 17 by 3, the remainder is 2 and the divisor is 5, now divide the divisor by 3, the remainder is 2 and the new divisor is 1. The process should be repeated till the newest divisor is less than the new base. Now arrange the remainders in the order of the first remainder in one's place, the second in the tens place and so on. Here the number becomes 122.

  • @RoguePsychMan
    @RoguePsychMan 9 месяцев назад +23

    I majored in math as an undergrad at a top engineering school. I recently found my notebooks from the classes and it’s a whole new language

  • @neerajwa
    @neerajwa 11 месяцев назад +698

    I couldn't imagine someone could do a youtube video on this topic. Complete with graphics and engaging commentary. It takes a very special level of film making skill plus top notch scientific knowledge to do such a thing. I am a phd in maths. At one time sixteen years back, i was entranced by p-adics. Used to organize student level lectures on it. Slowly my interest wore off and i moved on.
    Thanks for reminding those days again.

    • @xyvazkrown8048
      @xyvazkrown8048 11 месяцев назад +10

      if you want maths topics with graphics and engaging commentary, I'd reccomend 3blue1brown

    • @barbarahouk1983
      @barbarahouk1983 11 месяцев назад +16

      Yes I have viewed 3blue 1brown on several topics. So wish RUclips was functioning when I was much younger. I watch now with a badly damaged brain (bacterial meningitis with 2 strokes in 2005). I follow only somewhat. I miss my capabilities prior to this event. But reaching and stretching helps loss at a slower rate.

    • @drewendly89
      @drewendly89 11 месяцев назад

      The most amazing thing is that there was no film involved ;)

    • @neerajwa
      @neerajwa 11 месяцев назад +3

      @@drewendly89 lol ... I mean movie making, ... Writing, dialogues, camera placement, post production, editing, graphics, etc. I have great respect for people who are good at this. My efforts in this have proved to be laughing stocks.
      As far as I can see, Derek is an unique person who combines movie making skill with scientific aptitude to such perfection. His videos about relativistic effects of electric current are ample proof.

    • @simplykyle
      @simplykyle 11 месяцев назад

      ​@@rtagaming7663 could you link/give the title of that very video?

  • @Pyrozoid
    @Pyrozoid 11 месяцев назад +3777

    I'm jealous that Derek gets a personal lecture from such an amazing mathematician.

    • @lonestarr1490
      @lonestarr1490 11 месяцев назад +259

      I had the pleasure of meeting Alex Kontorovich in person several times by now, on conferences and a summer school. Had 2 or 3 chats with him. As far as I can tell, he really is like he comes across in these videos. And he gives the best talks, by a long shot, even when they're intended for a professional audience and not for a general one like in this video. He has a way of conveying his enthusiasm that is truly unique and exhilarating. It fills you up with passion, like you have to go and prove some theorems, now! What an awesome guy, really.

    • @nitinsharma7947
      @nitinsharma7947 11 месяцев назад +57

      @@lonestarr1490 Now, he'll be jealous of you too:)

    • @VoteScientist
      @VoteScientist 11 месяцев назад +16

      An operation that only works in base 10 is not Mathematics it's just Arithmetic.

    • @KatieCarolan
      @KatieCarolan 11 месяцев назад +11

      we are too since he's credited as coauthor of the video :)

    • @lonestarr1490
      @lonestarr1490 11 месяцев назад +7

      @@nitinsharma7947 That was the intention behind telling him, lol.

  • @saltytriscuit896
    @saltytriscuit896 9 месяцев назад +13

    Me and the boys finding the last digit of Pi by calculating it backwards:

  • @davidrichardson2856
    @davidrichardson2856 Месяц назад +11

    My brain’s gonna be sore tomorrow

  • @TerryBollinger
    @TerryBollinger 11 месяцев назад +1243

    As a computer scientist, your comparison of p-adic numbers to two's complement negative numbers was extremely helpful for getting this topic to finally "click" in my head. Thanks!

    • @EdwardChan.999
      @EdwardChan.999 11 месяцев назад +5

      Me too!

    • @raylopez99
      @raylopez99 11 месяцев назад +50

      Don't want to be negative but as a computer scientist it should all add up...

    • @TerryBollinger
      @TerryBollinger 11 месяцев назад +10

      @@raylopez99 I _think_ that was a pun?... :)

    • @LuisSierra42
      @LuisSierra42 11 месяцев назад +3

      @@raylopez99 nice

    • @DejiAdegbite
      @DejiAdegbite 11 месяцев назад

      @@raylopez99 Intended pun?

  • @meep7895
    @meep7895 11 месяцев назад +244

    learning about math without the pressure of college is pretty nice. i still feel completely lost after a certain point but the crushing pressure of needing to pass the class and putting stress on myself doesn't exist

    • @BradyPostma
      @BradyPostma 11 месяцев назад +46

      I think that financial pressures have changed the college experience from an exploration of the full wonder of truth into a race to the narrow, utilitarian set of truths prescribed by the heartless needs of the employer class.
      I don't want to be a machine for some owner's wealth accumulation. I want to explore the beauty of truth for its own sake.

    • @hassassinator8858
      @hassassinator8858 11 месяцев назад +12

      @@BradyPostma This is a better description of "escaping the matrix" than anything else I've heard.

    • @PMA_ReginaldBoscoG
      @PMA_ReginaldBoscoG 11 месяцев назад +1

      Just what I have been thinking about for a long time; Thank you for sharing your opinion to the world ❤

    • @alexpetrovich85
      @alexpetrovich85 11 месяцев назад +1

      The ChatGPT stuff will defiantly help in Pedagogy/Teaching even at high levels; it's like having a pocket TA.

  • @cris-1001
    @cris-1001 10 месяцев назад +1

    Best explanation of p-adic numbers I've ever seen. I never got it until now. Thank you so much! :)

  • @michellesteimle9969
    @michellesteimle9969 Месяц назад +3

    I am taking Math 105 for teaching Math to Elementary and Middle School students and this video touched and reinforced so many concepts I have learned these last few weeks. It was exciting seeing how they are implemented.

  • @cogspace
    @cogspace 11 месяцев назад +561

    This is weirdly similar to the way computers (typically) encode negative integers using 2's complement notation, where ...1111 (in binary) is how you represent -1. In computers this works because you run out of bits eventually and the carry gets thrown away. That's functionally the same as the digits just going on forever, so computers are kind of using 2-adic integers. Neat!

    • @BerndTheBrick
      @BerndTheBrick 11 месяцев назад +47

      I know that computers use negative numbers like that. But now I understand why it works.

    • @xilefx
      @xilefx 11 месяцев назад +17

      that what I was thinking and I don't get any of this actually - happy to see my unconcious getting it

    • @pifdemestre7066
      @pifdemestre7066 11 месяцев назад +7

      yes, that works the same way (although on computer you are generally limited to 32 bits or 64 bits)

    • @shark3D
      @shark3D 11 месяцев назад +11

      that's what I said! this reminds me of the fast square root solution! its almost like a p-adic solution in constrained bit depth

    • @lightinthedarkd
      @lightinthedarkd 11 месяцев назад +41

      Who would have thought that overflow errors exist in real life 😅

  • @greatjojek
    @greatjojek 11 месяцев назад +434

    Fascinating topic! I am so glad it got more traction.
    Fun fact, some p-addic systems have really interesting properties. For example in 5-addic the number:
    …04340423140223032431212
    Multiplied by itself gives:
    …4444444444
    Which is a representation of -1 (add 1 to it and you get 0).
    This means that 5-addic system has the sqrt(-1), the imaginary unit, in it!

    • @quantspazar6731
      @quantspazar6731 11 месяцев назад +55

      This works whenever p is 1 mod 4

    • @user-rx3ny9ji8i
      @user-rx3ny9ji8i 11 месяцев назад +15

      @@quantspazar6731 Ho so for 5, 13, 17 etc - addic number this can happen because those mod 4 = 1 ? Really great tidbit. I didn't even though it would have been generalized already

    • @quantspazar6731
      @quantspazar6731 11 месяцев назад +24

      @@user-rx3ny9ji8i I proved that for fun, it's very simple actually, you can check that if you have an expansion...a2a1a0 that squares to -1, by computing the first digit of the square, that a0 squares to -1 mod p, so that -1 is a square mod p (which is exactly when p is 1 mod4). Then to prove that it always work you can build (an) by induction

    • @justanotherman1114
      @justanotherman1114 11 месяцев назад +15

      You would be interested to know about Hensel's lemma then. In p-adic situation, it would imply that for most polynomials, a root in p-adics would exist if it exists mod p. In your example, you were finding the root of x^2+1 which is possible mod 5 so a 5-adic root exists.

    • @theodoreastor3443
      @theodoreastor3443 11 месяцев назад +1

      @@user-rx3ny9ji8ii would encourage you to look at fermat’s theorem on the sum of two squares.

  • @IsraelJacobowich
    @IsraelJacobowich 7 месяцев назад +7

    I watched this video 2 times and I got to say that spending some time on Brillient really helped.
    The 1st time I didn't really get the arithmetic rules and methods of the 10-adics and p-adics.
    Thanks to courses like "number-bases" I understood much better the 2nd time.

  • @piotrkawaek6640
    @piotrkawaek6640 8 месяцев назад +1

    This video is fantastic. I am very impressed with your math videos Derek, the topics are so well-presented.

  • @GameWorldRS
    @GameWorldRS 10 месяцев назад +1058

    This feels eerily similar to how negative numbers are stored in computers: using 2's compliment. You sort of touched on this with the 9's compliment but basically the larger the number is the closer to zero it is from the negative side. When computer memory overflows it flips from signifying the largest possible positive value to signifying the largest possible negative value. As you increase further your values become less and less negative until you overflow again (this time for real) and get back to 0.
    These p-adic numbers almost feel like we overflow infinity and go back to negatives / fractions.🤯

    • @cholten99
      @cholten99 10 месяцев назад +259

      Having a computer science background I immediately thought "the structure of universe has an integer overflow problem!"

    • @rationalcoder
      @rationalcoder 10 месяцев назад +15

      @@cholten99 Bro me too

    • @GetMoGaming
      @GetMoGaming 10 месяцев назад +28

      Unhandled Exception: "Mind" is missing

    • @sedrakpc
      @sedrakpc 10 месяцев назад +24

      Also though this will eventual lead to 2’s complement arithmetic, but didn’t(

    • @baconthevainglorious7371
      @baconthevainglorious7371 10 месяцев назад +3

      Doesn’t it feel spiritual too? This sort of look at the numbers and take mods of numbers has been a numerology thing for as long as I’ve seen it. The whole thing where the final digits mean larger adjustments than the previous ones implies an inflection point somewhere maybe. Say a number that’s written out as 11111……11111. What could it be used for? Or one that’s -11111….1111. Would that even make sense? A “non dual” number, that is both positive and negative. Or what if we had a third sign other than +-, like # or something. I’m no expert but love thinking abt it

  • @xnossisx5950
    @xnossisx5950 11 месяцев назад +479

    By the way, if you're wondering about the solution that comes from (2, 0), you end up getting ...111112, which is just our first solution, -1/2, plus 1, which is just 1/2. Since all of the xs in the equation are raised to an even power, this solution works in about the same way as the one shown in the video.

    • @inventorbrothers7053
      @inventorbrothers7053 11 месяцев назад +10

      Oohhh I was wondering about the (2,0) one. Thanks!

    • @leonro
      @leonro 11 месяцев назад +10

      Yeah, I sort of figured it's the complement of (1,0) given that we're working with squares and 1 and 2 are complements in base 3, but it's nice to see a confirmation of that.

    • @lonestarr1490
      @lonestarr1490 11 месяцев назад +6

      So are those the only rational solutions to the equation in question? I assume not (or unknown).

    • @Aurril
      @Aurril 11 месяцев назад +3

      @@lonestarr1490 I would assume that if you use other values for p (5, 7, 11, ...) you get other (possibly infinite) solutions.

    • @xnossisx5950
      @xnossisx5950 11 месяцев назад +3

      OK, so upon expanding the full equation, the only part that doesn't get removed due to the modulus is 2mnx + n^8 + n^4 + n^2 = 0 mod 3m (where the original equation is rewritten in terms like (n+mx)^2,4,8). Unfortunately, it seems that the reason why this formula always works when x is equal to one is very complex, since it seems to depend on how the specific forms of n (like 1, 4, 13) and m (the powers of 3) interact with the modulus. Fortunately, I think that equation that we get for all of the digits (after the first) only has one solution (it's a linear equation, and the coefficient of 2mn means that it only "loops" through the modulus once x goes over 3 and becomes too large to make sense), so it's probable that these are the only solutions (besides 0).

  • @inam101
    @inam101 8 месяцев назад +1

    A lot of loves for Veritasium. Thanks a lot for making such a complex and important concept very easy to digest.

  • @markcampanelli
    @markcampanelli 8 месяцев назад +1

    Thanks for a reasonably accessible description of the p-adic numbers!

  • @aaronfactor6838
    @aaronfactor6838 10 месяцев назад +768

    I studied this in my teaching program. We did this to better help us understand the “Why” in math. So many steps in math we just are taught and accept, but many people can’t understand the actual mathematical reasoning that allows us to complete that step. We studied different math operations in various bases to quite literally re-teach ourselves math. We even used symbols instead of numbers. It was a very eye opening experience.

    • @_-FreePalestine-_
      @_-FreePalestine-_ 10 месяцев назад +13

      That sounds so cool

    • @aaronfactor6838
      @aaronfactor6838 10 месяцев назад +53

      @@_-FreePalestine-_ my professor called it “Martian math”. We used symbols in place of numbers that went in a specific operation just as our numbers system in base 10 would. This way we had no prior knowledge to scaffold learning with and it was as if we were children getting exposed to numbers for the first time

    • @aaronfactor6838
      @aaronfactor6838 10 месяцев назад +31

      @@floppathebased1492 sorry for my poor explanation. We first learned how to do the various orders of math operations using different bases I.e. multiplication addition division. After that, she removed the numbers completely and instead used a random order of symbols and shapes likes triangles with slashes, then a star,etc. the point was that each of our numbers is itself a system that we have to learn and rely on. I want to say we were using base seven and she had 6 different Symbols before they’d move place value and repeat like our traditional number system. I hope that makes more sense and sorry for the confusion.

    • @tecategpt1959
      @tecategpt1959 10 месяцев назад +11

      I'm currently on that journey of learning the "why" in math.
      Like for example I tried explaining to my gf how we can put
      - * - = +
      But in a real life example and God that was difficult to do lol.
      I've tried looking online and all I got were proofs.
      But the best example I've gotten so far was.
      Suppose you record someone walking, you're using a tape player to capture the footage.
      You allow that tape to play forward, person walks forward (+)
      You then reverse that tape (-)
      Person walking forward (+)
      Now walking backward(-)
      Now allow that person walking backward (-)
      Play the tape backward again (-)
      Person walks forward (+).
      I have no other examples but a tape player really because I've never known an object to be "negative".
      I feel like negative numbers exist in 4 Dimensional objects and time is one of them.
      Which is why we can sort of have the power to "control time" by recording footage and playing it back

    • @murtagh233
      @murtagh233 9 месяцев назад +2

      @@aaronfactor6838 hey very late comment lol but is there any chance you have some pointers for what you are talking about somewhere online? Or in a book or something? Or at least least similar?

  • @kaisoep
    @kaisoep 11 месяцев назад +345

    I used to hate math class in school because I didn't understand it and there was a lot of pressure from teachers to perform well. Now I'm done with school and willfully watch videos about complicated math and enjoy it so much. It is genuinely so interesting to watch these videos, even if I don't understand every single thing. My mind was blown like 20 times throughout this video and my view on math has been turned completely upside down.

    • @sambhavmirajgaonkar2984
      @sambhavmirajgaonkar2984 11 месяцев назад +19

      You like it because you are not going to get tested.

    • @BenjaminGoldberg1
      @BenjaminGoldberg1 11 месяцев назад +10

      Fun fact, children who were poorly educated in math have a tendency to become adults who make bad financial decisions. It's almost as if money is made out of numbers or something.

    • @loganvollmin6857
      @loganvollmin6857 11 месяцев назад +13

      @Repent and believe in Jesus Christ Bot

    • @adampope5107
      @adampope5107 11 месяцев назад

      ​@Repent and believe in Jesus Christ no thanks. I'd prefer my children not being raped.

    • @MrBrineplays_
      @MrBrineplays_ 11 месяцев назад +3

      ​@@BenjaminGoldberg1I best guess is that they use their money for wants and not needs. They don't compute their money so they just buy and buy till they discover that they're too late to pay their debt

  • @mrtony3152
    @mrtony3152 8 месяцев назад +3

    I have read the book "Fermat's Last Theorem - by Simon Singh" he also elaborates on maths a little but the story around this problem, how it came into existence and how it took 358 Years to solve it, is what intrigued me. This is why we are the king species, it took us 358 years 5 generations to solve this but we did it and for a guy (Fermat) this was just a note on his Journal. While reading I didn't know if Fermat was right so it was a mystery every page.

  • @scarlet0017
    @scarlet0017 9 месяцев назад

    I see, this is what I've searching for
    A few back, I was trying to find out how to view mathematics as a language and then try to find connections of numers, by adding, subtracting, multiplying, squaring... etc
    I'm glad I found this video, thank you VERITASIUM

  • @skwisgaarskwigelf331
    @skwisgaarskwigelf331 11 месяцев назад +469

    I'm a computer engineer. Along the duration of the video I started to relate this first to signed integer arithmetic (2's complement). After that, I heard "Fermat" and I immediately knew this was going to be about modular arithmetic and discrete mathematics (both very useful for cryptography). And finally, fractals (Sierpinski), which is also quite useful in CS.
    I have used all that math, but I didn't realise it in the beginning until the video progressed. They taught me "just use this to calculate that", but I really had no idea what these tools really were.

    • @qj0n
      @qj0n 11 месяцев назад +35

      Yeah, it's a bit shame though he didn't mention that every modern computer uses 2-addics to save any number...

    • @Michael-kp4bd
      @Michael-kp4bd 11 месяцев назад +6

      Fermat, I assume you mean?

    • @anon5976
      @anon5976 11 месяцев назад +17

      @@qj0n That's not true. P-adic numbers extend toward infinite. Computers use finite values. There is a similarity because p-adic numbers are mod p^inf, while computers store numbers mod 2^bitwidth

    • @briansammond7801
      @briansammond7801 11 месяцев назад +1

      Yes, 2's complement is what I thought of, but this went into 3, 5, 7 - whatever complement, which is the p-adics.

    • @someonerandom704
      @someonerandom704 11 месяцев назад +9

      @repentandbelieveinJesusChrist8 in electrical engineering, there is no god

  • @knotwilg3596
    @knotwilg3596 10 месяцев назад +104

    I did my master thesis on the p-adic gamma function. I expect to see p-adics on 3Blue1Brown's channel but not here, so it was a pleasant surprise. Interesting how you postponed the metric, which is how we traditionally start, and first showed us some actual number theory problems that can be solved with p-adics.
    The visualisations are top notch. The p-adic space is so counterintuitive that it dearly needs such representations to stick into one's mind. Well done!

    • @gmaxwell
      @gmaxwell 9 месяцев назад +2

      I think it's a problem of mathematical education that we weigh people in definitions without motivation, but it's challenging because its so hard to motivate a problem when you don't already have a complete definition. Teaching someone is like trying to build a ship in a bottle-- you have to assemble the idea in their mind through a narrow opening. The best techniques to teach an idea are themselves breakthroughs, and we have far more things to teach than just those things that we know how to teach well.

  • @alessioandreoli2145
    @alessioandreoli2145 3 месяца назад +1

    Beautiful video! I need to say that for the first time I had problems visualising the p-adic numbers.

  • @JuanRamos-bx9sx
    @JuanRamos-bx9sx Месяц назад +1

    What an incredible introduction to p-adic numbers!!!! Thank you for your contribution!

  • @jaswantk917
    @jaswantk917 11 месяцев назад +739

    As a Maths graduate, I really appreciated this being taught so well. I remember learning them for the first time and they looked so counter-intutive at that time.

    • @korigamik
      @korigamik 11 месяцев назад +4

      If you don’t mind me asking, what do people do after they graduate with a degree in mathematics. What will your work in the job be?

    • @leyasep5919
      @leyasep5919 11 месяцев назад +1

      Why even bother with intuition in maths ? 😀

    • @ArawnOfAnnwn
      @ArawnOfAnnwn 11 месяцев назад +8

      @@korigamik Anything from math research to biology research to investment banking. The last pays more of course. You'll find expertise in math is desired in all sorts of places. There's even math used in the art world, like for image reconstruction.

    • @edwardsong5199
      @edwardsong5199 11 месяцев назад +8

      @@korigamik If you graduate with undergraduate maths degree you can do almost any job. More importantly you will have enough background for a master in many subjects. However, if you wish to do pure maths further you will end up in academia.

    • @edwardsong5199
      @edwardsong5199 11 месяцев назад +7

      ​@@leyasep5919 Intuition is very important in mathematics. They are needed for understanding old mathematics and creating new mathematics.

  • @umairhusain8174
    @umairhusain8174 11 месяцев назад +380

    I was deeply fascinated with maths in my younger days, a subject I excelled in and genuinely loved. I went on to become an engineer and now I build software for a living. But every time I come across videos like these, there's this regret, making me wonder why I ever left the beauty of mathematics behind :')
    Thanks man for making these videos

    • @codebrick
      @codebrick 11 месяцев назад +7

      It's never too late! I'm in school right now so that once I have my degree I can take classes that interest me. Some of those are going to be mathematics classes.

    • @rinzler_d_vicky
      @rinzler_d_vicky 11 месяцев назад +17

      As a software engineer, I agree with you. Sometimes I want to just whip out the pen and paper and start refreshing on calculus and go into these deeper concepts and ditch my depression generator machine.

    • @amandaandrade7777
      @amandaandrade7777 10 месяцев назад +3

      @@rinzler_d_vicky eu queria exatamente o contrário. Deixar esses números de lado e ter um emprego como engenheira de software

    • @thewhitefalcon8539
      @thewhitefalcon8539 10 месяцев назад +1

      capitalism is why

    • @niklas6882
      @niklas6882 10 месяцев назад

      @@thewhitefalcon8539 at least in my country, math majors have one of the highest income expectations

  • @be.courtney
    @be.courtney 9 месяцев назад +5

    I’ve never seen math explained this way. This is like beautiful art. Amazing and mind blowing! Thank you very much for sharing.

  • @roastedboiii4626
    @roastedboiii4626 9 месяцев назад

    started watching this video and just had a flashback of my advanced quantitative reasoning math class. been over 10 years since ive had that class and for some reason everything makes sense to me cause i had answers that didnt make sense but seeing this made it all make sense. thank you

  • @IhabFahmy
    @IhabFahmy 10 месяцев назад +673

    _I love the way Derek puts a decimal point to the right of the numbers he's showing. That tiny visual cue is worth its weight in gold when it comes to showing intent and aiding understanding._

    • @Brauljo
      @Brauljo 10 месяцев назад +7

      It's more of a radix or fractional point since he uses more bases than just decimal.

    • @IhabFahmy
      @IhabFahmy 10 месяцев назад +6

      @@Brauljo I think he stops using it once he moves away from 10-adic (base-10) numbers.

    • @Brauljo
      @Brauljo 10 месяцев назад +10

      @@IhabFahmy Virtually every base is base 10, decimal is base ten.

    • @Scotty-vs4lf
      @Scotty-vs4lf 10 месяцев назад +25

      @@Brauljo no only base 10 is base 10. what r u saying lol

    • @Brauljo
      @Brauljo 10 месяцев назад +19

      @@Scotty-vs4lf All bases are base one zero.

  • @ionsilver557
    @ionsilver557 11 месяцев назад +164

    I was introduced to the concept of p-adic through Greg Egan's science fiction novel "3-adica". He used the analogy of three nests packed together, each with three smaller nests in an infinite series, which gave me an intuitive feeling, but I did not understand the arithmetic meaning behind it. It wasn't until 25 minutes into this video that it hit me, and I suddenly made the connection in my head between the infinite nest picture and the divergence of the infinite series "converging" in a finite value. Then a few seconds later, the infinite cylinder appeared almost exactly as I had just imagined. Words cannot describe how I felt at that moment, it was wonderful.

    • @SMA265
      @SMA265 11 месяцев назад +1

      Eureka moment?

    • @tux1468
      @tux1468 11 месяцев назад

      same lol

    • @Xeningem
      @Xeningem 11 месяцев назад +2

      Yeah, when I read that novel I also didn't understand what's the author talking about.

    • @isaacmartin2026
      @isaacmartin2026 11 месяцев назад +2

      Egan usually has that effect on me. Finally understanding the weird science that foregrounds one of his stories is a rare treat.

  • @johnrobinson2198
    @johnrobinson2198 7 месяцев назад +13

    Your delivery of this content was absolutely sublime. You somehow took an incredibly complex topic and simplified it through examples and explanation so a relative novice can grasp it. Thankyou so much. This really made my day

  • @King-sd5vg
    @King-sd5vg Месяц назад +2

    Type of roller coaster is this video. Bro had literally had me going like I have no idea whats going on, and then BOOM the computer science nerd in me remembered the counting systems like binary and then it clicked and broke my brain. I love this sort of dopamine hit!

  • @msftphil
    @msftphil 11 месяцев назад +110

    I have a BS in math and computer science, and in one video you found a point of intersection for the last 20+ years of my working life. Awesome.

    • @play005517
      @play005517 11 месяцев назад +4

      isn't cs a subset of math

    • @nicbajitogaming8947
      @nicbajitogaming8947 11 месяцев назад +2

      ​@@play005517😂😂
      As fields yes, as origins yes off course(this video with 2 adic and 10adic), as careers not necessarily correct but the deeper u go the more math u need.

    • @seraphina985
      @seraphina985 11 месяцев назад

      @@nicbajitogaming8947 Is it pure math or does CS cover some aspects of the physics also? When it comes to building a computer math is the goal and physics is the method so surely the science of computation is the interface of these fields. Hell these days even classical computers need to factor quantum mechanics into their design because we are constructing systems at a near quantum scale and trying to engineer a product that behaves consistently with classical mechanics.

    • @nicbajitogaming8947
      @nicbajitogaming8947 11 месяцев назад

      @@leeroyjenkins0 Ye, developers would be in maths for you. Still exists exception on computer science that dont need math or more math than school.

    • @Snowflake_tv
      @Snowflake_tv 11 месяцев назад

      @@play005517 Yes

  • @amishbhavsar1136
    @amishbhavsar1136 11 месяцев назад +269

    The style of explaining such a complex topic with amazing animation is mind blowing. Kudos to Derek and the Veretasium team

  • @himanshugarg6062
    @himanshugarg6062 4 дня назад

    I've seen about 10-15 videos on p-adics on youtube but this is the only one that built an intuition for them by starting with a problem

  • @RitikMaurya07
    @RitikMaurya07 15 дней назад +3

    2:37 this is actually similar to the decimal expansion of 1/7 just with a difference of the last digit which is 3.

  • @Reinturtle
    @Reinturtle 10 месяцев назад +263

    This is quite possibly the best explanation of p-adics that has ever been given. Amazingly done!

  • @SunnyKimDev
    @SunnyKimDev 11 месяцев назад +268

    At around 6:13 I thought
    '....wait i know this, this is how negative integers get represented in binary!'
    it feels awesome actually seeing the buildup and knowing how this particular math gets used in real life beforehand

    • @bolicob
      @bolicob 11 месяцев назад +3

      Ah I thought it sounded familiar

    • @dagmarski4133
      @dagmarski4133 11 месяцев назад +24

      Except that’s not how negative numbers are represented in binary. Computers read the first bit of a binary number as the sign. A first bit of 0 is a positive number and a first bit of 1 is a negative number. Also it would be a bit difficult to store infinitely long numbers in a computer.
      Edit: I’m wrong don’t mind me, apart from the first bit computers indeed use a similar fashion to store negative numbers.

    • @Miaumiau3333
      @Miaumiau3333 11 месяцев назад +40

      ​@@dagmarski4133 Negative integers are usually represented in a very similar fashion to what is shown in the video, look up "Two's complement". Of course you can't store infinitely many digits, but the rough idea is the same.

    • @Eon_TAS
      @Eon_TAS 11 месяцев назад +17

      ​​@@dagmarski4133 it is how signed binary digits are stored, it's known as 2s complement, and is specifically used for that thing of the fact subtracting is the same as adding the negative value.
      Negative one in binary is 11111111 for however many bits you store a number in, using the fact that you can ignore the digits higher than your highest bit to avoid the fact it's not infinitely long.

    • @theblinkingbrownie4654
      @theblinkingbrownie4654 11 месяцев назад +4

      ​@@dagmarski4133It's not exactly how, yes, but it's very similar which is what they meant. Also who doesn't love the fact that you can add 'negative numbers' to get the answer

  • @prakashonthetube
    @prakashonthetube 4 месяца назад +2

    Absolutely fascinating! I enjoyed watching this very much. Thank you for this great content.

  • @erikdietrich2678
    @erikdietrich2678 6 месяцев назад +1

    I've watched this now 4 times I think, and I might almost be starting to understand it. It's not for any inadequacy in the explanation - far from it - it's that the concept is so foreign it's taking a very long time to sink in. Love it!

    • @TaranVaranYT
      @TaranVaranYT 6 месяцев назад

      I knew p-adics ever I watched a few other videos on the subject. If you are quite intelligent in mathematics (as am I), learning things related to math might be easier than other subjects.

  • @CdFMasterVideo
    @CdFMasterVideo 10 месяцев назад +153

    Can I just say how much I love that you kept the same background music and outro animation for all theses years? One can get lost through life then come back to this channel years later and still feel at home. It's an underrated quality.

  • @Eraqon
    @Eraqon 11 месяцев назад +245

    Apart from the math, I LOVE your visual style! Simplistic but smooth animations at a low frame rate are eye candy. Amazing video Derek, you managed to blow my mind once again. ❤

    • @BradyPostma
      @BradyPostma 11 месяцев назад +14

      It's amazing how smooth animation makes the ideas feel less intimidating.

    • @Mark_Indian
      @Mark_Indian 11 месяцев назад +1

      ​@@BradyPostma that's very true

    • @Ideeem
      @Ideeem 11 месяцев назад +2

      The low framerate bugs me off lol!

  • @TheAdvertisement
    @TheAdvertisement 8 месяцев назад +2

    11:44 Haha, my calculus teacher talked endlessly about FLT. It's always a treat to learn a bit more math to understand the process of finding it.

  • @StefanoBorini
    @StefanoBorini 11 месяцев назад +215

    Something that fascinates me about math is how there's such a tight connection between people from thousands of years ago and people from today. We are still working on the same exact problems. Math is universal across culture, space and time.

    • @mrbgarles6724
      @mrbgarles6724 11 месяцев назад +3

      If you’ve ever read The Themis Files by Sylvia Day, this premise is a big chunk of the first book. That every species, including aliens, have to use math.

    • @ronald3836
      @ronald3836 11 месяцев назад +4

      In my first couple of years of high school I thought prime numbers were the stuff of ancient Greek mathematics and too frivolous for modern research. I was so happy to find out I was wrong!

    • @lonestarr1490
      @lonestarr1490 11 месяцев назад +2

      @@ronald3836 They kinda are a bit frivolous, though. But that makes them even more intriguing.

    • @BishopStars
      @BishopStars 11 месяцев назад +2

      Math is discovered, not invented. The universal language.

    • @HeadOnAStick
      @HeadOnAStick 11 месяцев назад +2

      @@lonestarr1490 They are essential to modern cryptography, upon which all secure communication and secure electronic transactions rely. So all global spycraft, military secrecy and internet commerce depend on the primes. Kind of takes the frivolity right out of it.

  • @_Shoaib
    @_Shoaib 11 месяцев назад +66

    A perfect teacher can understand the pain points in the learning process and then patiently clears them out to build the intuition of learner. Great work Derek Muller.

  • @kevinslater4126
    @kevinslater4126 3 месяца назад +1

    I just successfully followed along with a video of a mind blowing type of math I’ve never heard of before. That is an amazing job

  • @BradenBest
    @BradenBest 10 месяцев назад +1

    6:34 this sent me on a whole train of thought about two's and one's complement in binary math (I'm a programmer) so I realized pretty quickly that what you are describing here is a ten's complement.
    one's complement: NOT n (not meaning to invert all the digits, i.e. subtract them from 1)
    two's complement: NOT n + 1
    Say you have a number with an unknown number of bits, but you know that the last 4 bits are 1011 and every bit to the left is a 1. Whether the number is 4, 8, 16, 32, 64-bit, or even an odd configuration like 11-bit, the number, so long as it falls in this pattern, could be interpreted as a signed integer, and its negative representation is found via two's complement. So you invert the digits, turning it into a number with all 0's ending in 0100 (4 base 10), and then adding 1 to get 5. Therefore, the number, no matter how many bits it has, is representing -5. there is also one's complement, which omits the last step, but it is wasteful because you end up with two zeros.
    Take a 4-bit number, for example. In a 4-bit number, you can represent the values [0, 15] unsigned, or [-8, +7] signed (2's complement). You can test this out yourself by writing a column with all 16 permutations of 4 bits (0000, 0001, ... 1111, you can figure it out) and their signed and unsigned decimal representations in columns to make a table. Use what I told you above, like 1011 being -5, and extend the pattern until you have the positives and negatives meet in the middle. You will find that once you hit 1000, the sign bit has been flipped and you get your first negative number, -8 (which happens to be -(2^(n-1))), and that -1 is the number with all 1's right before it wraps back around to 0 (all 0's). Using 1's complement, that all 1's number is "negative zero", which is a useless value, and you lose your -8 instead getting a range [-7, +7]. This pattern extends to 8, 16, 32, 64, etc. signed 2's complement numbers also have cool properties, like the fact that you can just add them together without having to do anything special and integer overflow will ensure that you get the correct answer, meaning you can implement subtraction by just 2's complementing the number being subtracted (invert all its digits and add 1) and then adding them together. 5 - 1 can be implemented as 5 + (-1) or 5 + NOT 1 + 1, or in our 4-bit representation, 0101 + 1111 which equals 10100 (20 unsigned), but since we only have 4 bits the leftmost bit is truncated (integer overflow) and we end up with 0100, which is 4, which is indeed the correct answer to 5 - 1. Signed integers are not so cool when you're working in a programming language like C where signed overflow is undefined and breaks your programs because you can't guarantee what the compiler will do, but that's a different matter dealing with human standards and technology compatibility.
    But yeah, I have some experience with p-adic numbers. 2-adic mostly.

  • @artlover7770
    @artlover7770 11 месяцев назад +424

    Your math videos really are my most favorite ones.
    Maybe it's just something about the aesthetic of your explanation and your way of breaking down the topic bit by bit and explaining it patiently at a pace good enough to make it really enjoyable and interesting :) ∆

    • @Tmharbesoujj
      @Tmharbesoujj 11 месяцев назад +1

      Your comment is being stoled by bots

    • @artlover7770
      @artlover7770 11 месяцев назад +2

      @@Tmharbesoujj Yeah it's really insane...

    • @Tmharbesoujj
      @Tmharbesoujj 11 месяцев назад +1

      @@artlover7770 4 big guys

    • @pyropulseIXXI
      @pyropulseIXXI 11 месяцев назад

      He explains it in the same style that you would if you were majoring in this stuff. He doesn't dumb things down just to give you an illusion of understanding.
      This is why I enjoy his videos even though I am already familiar with the topics due to my major being physics and I also took a ton of math courses that usually only math majors take

    • @homeyworkey
      @homeyworkey 11 месяцев назад

      yep hes so good at making maths digestible for people who arent even that fluent
      did lose my attention when the other guy started talking/drawing like this is khan academy, veritasium quality is just better idk why he went down that route

  • @JonathanAdamsphd
    @JonathanAdamsphd 11 месяцев назад +93

    These math + history videos continue to be your very best work. Thank you - I learned a lot!

  • @Sinazok
    @Sinazok 9 месяцев назад

    This video is an excellent insight into how my mind works. Please continue making such beautiful videos about numbers.

  • @user-ve1xh8bo2w
    @user-ve1xh8bo2w 8 месяцев назад

    Derek keep going, your videos are very interesting and useful! :)

  • @davidsparrgrove9558
    @davidsparrgrove9558 11 месяцев назад +88

    As a designer and animator, I am incredibly impressed with your use of animation to enhance your storytelling. It’s only gotten better over the years. Well done!!

    • @throttlekitty1
      @throttlekitty1 10 месяцев назад +3

      I agree! I have to say that the little specks are very distracting, however.

  • @srivatsajoshi4028
    @srivatsajoshi4028 11 месяцев назад +35

    Thank you for not shying away from the nitty gritty calculations. Watching many of the pop science channels feels like eating a nothing burger. I don't know what I've learnt by the end of it. This video was not like that. It introduced me to a whole new concept in enough detail that I feel confident going in and researching further.

  • @jonathanclark5240
    @jonathanclark5240 8 месяцев назад +6

    I love how the far end of infinity wraps back around to zero and negative numbers. Thanks for the mind-blowing video!

  • @chrismcconnell138
    @chrismcconnell138 8 месяцев назад +1

    Thank you for the amazing content Derek.
    I'm sure that I learned something, I'm not however sure of what it is that I learned.

  • @dan_tr4pd00r
    @dan_tr4pd00r 11 месяцев назад +8

    Derek: That number is its own square.
    0 and 1: Look what they have to do to mimic a fraction of our power

  • @iau
    @iau 11 месяцев назад +160

    I love that this cutting edge mathematical concept can be entirely explained using high-school level algebra. Utterly fascinating how far you can get with seemingly "easy" and "limited" tools.

    • @itsgonnabeanaurfromme
      @itsgonnabeanaurfromme 11 месяцев назад +12

      That's how math and nearly every field of science works. You need basics and simple aspects first.

    • @IdentifiantE.S
      @IdentifiantE.S 11 месяцев назад +1

      @@itsgonnabeanaurfrommeThats completely true ! 💯

    • @kerr354
      @kerr354 11 месяцев назад +13

      It isn't really cutting edge, you learn this in early number theory classes. However it is one of many pillars modern mathematics stands on. A portal into a very different but familiar universe

    • @epicmarschmallow5049
      @epicmarschmallow5049 11 месяцев назад +8

      So "cutting edge" that it's been around for over a 100 years and is taught to undergraduates

    • @d-m.n_--2
      @d-m.n_--2 11 месяцев назад +2

      Nothing you wrote in this blurb is accurate.

  • @gtjacobs
    @gtjacobs 8 месяцев назад

    It's hard to find good videos on p-adics. Thank you for this one!

  • @tejbirsingh5661
    @tejbirsingh5661 9 месяцев назад +3

    I couldn't follow it all. But it was still fascinating, and I can still appreciate how well the concept was taught.

  • @drjimisn
    @drjimisn 11 месяцев назад +57

    The reference with the stars and the sun is actually a very nice analogy to Ostrowski's theorem! One way we define real numbers is by completing the rationals under the distance norm we are already used to. The theorem roughly says that the only other ways we can complete the rationals is by completing under the p-adic norms. So in the analogy, each star represents a prime number and the sun represents what mathematicians call "the prime at infinity" !

  • @Qualiummusic
    @Qualiummusic 11 месяцев назад +39

    "How it feels to invent Math" by 3Blue1Brown already blew my mind, and this went even further 🤯 Great video, Derek!

  • @JustAnotherPerc
    @JustAnotherPerc 9 месяцев назад +43

    I could barely learn some of the stuff in my 7th grade algebra class within a whole hour.
    However with this 30 minute video, I learnt a whole new math system.

  • @svenpohl4858
    @svenpohl4858 8 месяцев назад

    So great content time and time again. Thank you so much!

  • @maxaafbackname5562
    @maxaafbackname5562 11 месяцев назад +12

    In computer science we have 2's complent.
    There all ones is equal to minus one.
    The calculation is similar.
    To convert from a positive number to a negative number:
    Invert all the bit and add "one" to th result.

  • @sk8rdman
    @sk8rdman 10 месяцев назад +45

    I'm kind of amazed that I've never seen this sort of thing before.
    I've heard of p-adic numbers and some of these related ideas in discussions around Fermat's last theorem, but I never saw an explanation for how they work.
    This was explained in a way that made it very approachable, and helped open my mind to a whole other way of representing and working with numbers.

    • @NickWestgate
      @NickWestgate 9 месяцев назад +1

      Something amazing that wasn't covered is that you can write sqrt(-1) as an actual written number in these number systems. I studied a simple version of this in a second year university paper which looked at topics normally studied in later years, and I've often thought the topics would be interesting to more than just math nerds.

  • @pan4gopan4life75
    @pan4gopan4life75 4 месяца назад

    Fantastic, it's something incredible that you have found, and it has allowed me to find a mathematical explanation
    for a hypothesis of mine, namely that the "real" world operates entirely on Mod 2 and that Mod 1, adopted up to now,
    is correct but not in all situations, Mod 2, on the other hand, could potentially explain a lot of things

  • @miloszforman6270
    @miloszforman6270 8 месяцев назад +2

    27:00
    "But if they differ in the 27th place, we say that they differ not by 27, but by 1 over 27."
    Seems to be a mistake. They would differ by 1/3^27.
    If they differ in the 3rd place, they would differ by 1/3^3 = 1/27.

  • @pyromechanical489
    @pyromechanical489 11 месяцев назад +123

    interestingly, this actually gives a really useful perspective on how computers store numbers! almost every modern computer stores negative numbers as two's complement, which makes it relatively easy to change between negative and positive numbers, and allows you to use the same kinds of addition on them.

    • @oshaya
      @oshaya 11 месяцев назад +3

      Indeed… yet I wish that computers today would make further usage of p-adic numbers, beyond the positive/negative complementarity.

    • @adaddinsane
      @adaddinsane 11 месяцев назад +1

      I noticed that too.

    • @orisegel4055
      @orisegel4055 11 месяцев назад +9

      Actually, one can argue the connection is even stronger - if you add two integers which are too big for the amount of memory you have, you get integer overflow, where the most significant digit is lost. For example, if you can only remember 2 binary digits and you try to do 11+11, you get 110, but you forget the leftmost 1 and get a 10.
      In the reals, this sounds really bad, since you are losing the most important digit. But in the 2-adics, this makes perfect sense, since really 10 and 110 are pretty close.
      So not only is 2's complement exactly how negatives work in the 2-adics, one could argue that computations with fixed precision integers are in general just fixed precision 2-adic computations, where you only keep some agreed upon number of digits before the decimal place (which in the p-adics has the same meaning as after the decimal point for the reals).

    • @ndlsjk
      @ndlsjk 11 месяцев назад +3

      5 years of computer science, can confirm this was a trip down memory lane to the valley of the shadow of death (my first programming class was doing math in different bases for 3 months).

    • @MCLooyverse
      @MCLooyverse 11 месяцев назад +3

      Yes! The 2-adics are ∞-bit integers.

  • @HasanHasan-kf4wz
    @HasanHasan-kf4wz 11 месяцев назад +103

    I'm a master's student in mathematics and p-adic numbers is more or less my specialty. It's nice to look at it through fresh eyes because sometimes I forget how incredibly non-trivial these constructions are.

  • @PC_Simo
    @PC_Simo 9 месяцев назад +2

    3:22 So, *_THAT’S,_* why 1/7 (and any a/7, where a ≠ 7k, where k is an integer) gives that particular decimal expansion 🤔.

  • @mssm9495
    @mssm9495 9 месяцев назад

    Wow. Just when you thought you could count, along comes this and blows your brain. Full marks for actually managing to explain this.

  • @martandrmc
    @martandrmc 11 месяцев назад +24

    I find it also interesting that our computers do negative numbers by exploiting a form of 2-adic numbers with a set maximum length.
    In effect the modulo is built right into them. The term used in the field is 2's-complement signed numbers.
    p-adic numbers are such an intriguing topic, thank you for covering them!

    • @OmegaSparky
      @OmegaSparky 11 месяцев назад

      I came here to mention 2-s complement math as well

    • @lukedavis6711
      @lukedavis6711 11 месяцев назад

      Nice I was going to mention 2s compliment as well

    • @ClausB252
      @ClausB252 11 месяцев назад

      Some older BCD computers and calculators used 9's or 10's complement representations, like his 10-adic examples.

  • @Clover298
    @Clover298 11 месяцев назад +21

    “This feels even crazier than negative numbers or square roots of negative number” “Thats cause they’re less familiar” I love this quote

  • @cyndi5hunt
    @cyndi5hunt 20 дней назад +1

    This video enhanced my understanding of the two’s complement binary representation of negative numbers at a deeper level.

  • @farmergiles1065
    @farmergiles1065 8 месяцев назад

    Mind-opening and inspiring, brilliantly articulated and demonstrated. Marvelous! 👍👏🤛

  • @veltongoodenjr
    @veltongoodenjr 10 месяцев назад +212

    You've got to be doing something right when I was absolutely surprised when the video had ended, and I was longing to know more. I'm by no measure a "math person", and yet I was able to follow along for the larger part of the video with the calculations and by means of the visualization and explanation make connections between things I've up until now had no idea were related. Had I the time, and were my goals for the future ever so slightly different, I'd probably plunge right into the world of mathematics just because of how fascinating what this revealed was. Even though, this has not in fact moved me to such extreme action, it has come rather close in that I will now forever see the mathematical concepts discussed in this video in a different way.

    • @tquasa07
      @tquasa07 7 месяцев назад +1

      I’m going to go into calculus for both of us, bro, wish me luck

    • @saadusmani7846
      @saadusmani7846 7 месяцев назад +1

      ​@@tquasa07good luck👍👍😃, get good grades there.

  • @joshuastucky
    @joshuastucky 11 месяцев назад +142

    As a number theorist myself, this was quite a good exposition. Excellent job!

    • @mrigendrajha2690
      @mrigendrajha2690 10 месяцев назад +4

      That just sounds so cool as a profession

    • @youknowitistrue
      @youknowitistrue 10 месяцев назад +2

      I admire your work Sir. I have seen your articles.

    • @joshuastucky
      @joshuastucky 10 месяцев назад

      @@damondeleon5115 What do you mean, "at the front"? The numbers agree to arbitrarily many digits from right to left (simply do the standard multiplication step enough times). Since we can make these numbers arbitrarily close just by doing more operations, we say that they are the same.

    • @joshuastucky
      @joshuastucky 10 месяцев назад

      You can think of the new number as the limit (in the calculus sense) of doing more and multiplication steps as the number of steps tends to infinity.

    • @joshuastucky
      @joshuastucky 10 месяцев назад

      @@damondeleon5115 without going into all the details here, every "infinite" calculation done in the video can be made rigorous and precise using limits and some ideas from calculus.

  • @genioee
    @genioee 9 месяцев назад

    Wow!
    Thanks for bringing this very interesting topic to my attention and this in such a fascinating way!
    Wow!

  • @betanapallisandeepra
    @betanapallisandeepra 7 месяцев назад +10

    Today I felt like exactly, I am seeing a new world of mathematics…. It’s a wonderful explanation. As a data scientist and a embedded software developer I would say this level of mathematics is required very high level of intelligence to understand in a single shot. Thank you for sharing this extremely valuable piece of research work. I owe you a party for sure. 😊 keep doing…

    • @angeldude101
      @angeldude101 6 месяцев назад +1

      If you're an embedded software developer, then either you avoid negative numbers like the plague, or you should already be intimately familiar with ...11111 = -1 in the 2 adic integers. Most programmers just call it "2's complement" instead.
      What you might be less familiar with is that 0x...AAAAB, or in 8-bits 171 = -85, * 3 = 1. Most programmers would probably call this "overflow", but the 2-adic integers would genuinely call this "one third."

  • @doomjunyu_
    @doomjunyu_ 11 месяцев назад +6

    28:55 "Just cause it's less familiar"
    Brilliant