Wilson's Theorem (extra footage)

Поділитися
Вставка
  • Опубліковано 3 сер 2014
  • Follows on from this video: • What do 5, 13 and 563 ...
    Featuring Dr James Grime
    Brown paper: bit.ly/brownpapers
    Website: www.numberphile.com/
    Numberphile on Facebook: / numberphile
    Numberphile tweets: / numberphile
    Google Plus: bit.ly/numberGplus
    Tumblr: / numberphile
    Numberphile is supported by the Mathematical Sciences Research Institute (MSRI): bit.ly/MSRINumberphile
    Videos by Brady Haran
    Brown papers: bit.ly/brownpapers
    A run-down of Brady's channels: bit.ly/bradychannels

КОМЕНТАРІ • 347

  • @doublelxp
    @doublelxp 3 роки тому +19

    I've never seen anyone look so genuinely happy about making a multiplication table.

  • @NoriMori1992
    @NoriMori1992 8 років тому +144

    James's cheerfulness is so infectious. I'm feeling down right now, but watching him do math is cheering me right up. :)

  • @turkburg7816
    @turkburg7816 8 років тому +363

    I think the picture of the Numberphile2 should be Tau, since Numberphile's is Pi, and Tau is Pi times 2...

    • @andrewkarsten5268
      @andrewkarsten5268 7 років тому +10

      You have it backwards, pi is tau times 2, and tau is one half of pi

    • @andrewkarsten5268
      @andrewkarsten5268 7 років тому +5

      Your idea works, but you worded the last sentence wrong

    • @turkburg7816
      @turkburg7816 7 років тому +3

      ehh... *shrug*
      Just an idea.

    • @MagicGonads
      @MagicGonads 7 років тому +29

      Pi is 180 degrees, Eta is 90 degrees, Tau is 360 degrees.
      Eta = Pi/2 = Tau/4
      Pi = 2*Eta = Tau/2
      Tau = 4*Eta = 2*Pi

    • @turkburg7816
      @turkburg7816 7 років тому +2

      ...huh
      That's helpful... Thanks!

  • @calliope720
    @calliope720 10 років тому +35

    I could listen to James talk for hours.

  • @salmachi9836
    @salmachi9836 8 років тому +43

    The mathematicians in these channel are incredibly amazing .

  • @geoffroi-le-Hook
    @geoffroi-le-Hook 3 роки тому +6

    I have a mod 7 equivalence chart hanging on my wall. I call it a calendar.

  • @00Skyfox
    @00Skyfox 10 років тому +17

    The way James presents math really makes it a lot of fun!

  • @yuvalne
    @yuvalne 2 роки тому +3

    I just thought for a second "hey, this proves (n-1)! is divisible by n for all composites, but then I realised that this is actually quite a trivial statement: all composite numbers that have more than one prime factor will have their factors multiplied in the factorial, giving a number necessarily divisible by n, and all numbers with only one prime factor (i.e. powers of primes) bigger than 4 will have multiples of its factor in the factorial, and always in sufficient amount to get n (because p×k1 p>1 p,k≠2)

  • @Drachenbauer
    @Drachenbauer Рік тому +3

    now i made such squares for all edgelengths from 1 to 9.
    I found some cool properties on them:
    -They all can be mirrored along both of their diagonals.
    -If you fold them horizontal or vertical in the middle (for odd edgelengths forget about the row/column, you creased along, it´s just made out of "0"s and the half of the number you divided with to get the reminders), the "0"s exactly meet each other and the other numbers always sum up to the number you divided with.

  • @AshuTosh-tg8bq
    @AshuTosh-tg8bq 4 роки тому +6

    Extra footage after 3:16 of full table on numberphile3

  • @edwinspellcaster6394
    @edwinspellcaster6394 7 років тому +5

    I love how James is always going over strategies for fast prime searching

  • @joopie99aa
    @joopie99aa 10 років тому +19

    I'm always amused by the fact that once you've learned something new, it suddenly seems to pop up everywhere. Or until you get used to it anyway. I just started a book on group theory, and BAM there it is! :)

    • @fgm887
      @fgm887 10 років тому +10

      Actually, the thing is that our brains receive so much information everyday that we tend to ignore things we simply don't understand or don't seem any utility to it or can't relate to it.
      For example, you may see a lot of cars everyday, but not remember anyone in particular (unless it was impressive by some motive), but let's say you buy some kind of red car, from now on, you will notice that same car more often because your brain associates it with the one you have.
      Similarly, because now you study GT you will notice those things and make connections to understand and remember things related to it.

    • @MrLemonZone
      @MrLemonZone 4 роки тому

      Baader-Meinhouf effect

  • @Ollervo100
    @Ollervo100 10 років тому +118

    Should't you be using congruence instead of the equal sign, because the
    (p-1)! is definitely not equal to p-1.

    • @Ollervo100
      @Ollervo100 10 років тому +1

      ***** I got, what you meant. Originally i was asking WHY he wasn't using the sign, because i wanted to know.

    • @DaysDX
      @DaysDX 9 років тому +6

      ***** Correction, it's only confusing to the people who already know what's going on. Only somebody who understand maths well enough to understand the problem to begin with will notice there was a writing error. Ollervo100 is right though, it is congruent, not equal.

    • @bmw123ck
      @bmw123ck 9 років тому +3

      Modular arithmetic, I almost had forgotten about it hahaha. Ollervo100 yes, he should use the congruence sign, buuuut giving in the fact that Dr James is only speaking about modular arithmetic, it can be omitted.

    • @eurovisioncyan9550
      @eurovisioncyan9550 8 років тому +4

      +Ollervo100 it equals, (2-1)!=2-1 (3-1)!=3-1

    • @edwinspellcaster6394
      @edwinspellcaster6394 7 років тому +3

      no kidding my prof hammered me for way less

  • @ketchup143
    @ketchup143 8 років тому +1

    this is probably one of the coolest and most useful proofs ive ever seen numberphile do.

  • @sevfx
    @sevfx 10 років тому +3

    I want a numberphile-dvd-collection to happen! I love your work, thank you for showing us a broad look at mathematics and its wonders :)

  • @OMGitshimitis
    @OMGitshimitis 3 роки тому +7

    It's incredibly cool to see modular arithmetic taught in such a simple clear way.

  • @Ny0s
    @Ny0s 3 роки тому

    These channels are amazing

  • @marttiranta469
    @marttiranta469 10 років тому +1

    New video and I LOVE IT!

  • @ntm4
    @ntm4 10 років тому +4

    I'm not sure about this rem(ab) = rem(a)rem(b) thing. Sure it works for 8*3=24, but 6*4 also equals 24, and that would give us a remainder of 6 and 4 (for division by 7), which means rem(a)rem(b) = 6*4 = 24 which doesn't equal rem(ab) which is 3.

    • @green4free
      @green4free 9 років тому +1

      ntm4 24 is not defined in the set mod(7), so you have to take the reminder of 24 divided by 7 again, the step by step way of writing the calculation would be: rem(z) = rem(rem(x) * rem(y)) or { x * y = z, x * y ≡ z mod(7) }
      It is one of the fundamentals om modular arithmetic.

    • @ntm4
      @ntm4 9 років тому

      magnus östgren Ok, thanks, that makes sense. Makes me wish that they had gone into it in the video since it seems like such an obvious problem to their initial statement.

  • @pascalstriangle792
    @pascalstriangle792 9 років тому +2

    I love how the set fails the closure axiom when the input is composite.

  • @JohnDoe-jy7sv
    @JohnDoe-jy7sv 8 років тому +5

    Interesting thing I noticed. One of the factors you split the number into has to be bigger than what you divide by. If you split 24 into 4*6 and do this process you get 4*6=24 again.

    • @longevitee
      @longevitee 8 років тому +1

      Are you a simple ice cream salesman?

    • @negativekelvin6434
      @negativekelvin6434 7 років тому +2

      doesn't work for 12*2 either since you get 5 so that can't be the rule

    • @JohnDoe-jy7sv
      @JohnDoe-jy7sv 7 років тому

      Mind of Seb 12*2 would then give 5*2 which is 10. the remainder if you divide 10 by 7 is 3. that one works

    • @htmlguy88
      @htmlguy88 7 років тому +1

      you know you did a second remainder step for his example and not for the one you complain about.

    • @JohnDoe-jy7sv
      @JohnDoe-jy7sv 7 років тому +1

      No I didn't. The remainder for 4 is 4, and the remainder for 6 is 6. So you get 24 again. In his example, the remainder for 12 is 5, and the remainder for 2 is 2, so you get 10, not 24.

  • @josephyoung6749
    @josephyoung6749 4 роки тому +2

    So interesting. This video and the preceding one really enlightened me to a whole new way of looking at arithmetic.

    • @hybmnzz2658
      @hybmnzz2658 3 роки тому

      Check out modular arithmetic

  • @manueldelrio7147
    @manueldelrio7147 8 років тому +1

    Seeing this rang a bell: in professor Frenkel's book there is an explanation of modular arithmetic as part of the explanation leading to the Shimura-Taniyama (ex) conjecture.

  • @dushyanthabandarapalipana5492
    @dushyanthabandarapalipana5492 3 роки тому

    Thanks !Happy new year!

  • @negativeseven
    @negativeseven 10 років тому +72

    x 1 2 3
    1 1 2 3
    2 2 0 2
    3 3 2 1
    This contains a zero just because it is a square number. In (P-1)! the number 2 is not repeated.
    You're welcome.

    • @4snekwolfire813
      @4snekwolfire813 4 роки тому

      mate wilson's applies to primes no?

    • @TheBasikShow
      @TheBasikShow 4 роки тому +4

      4snek WolFirE He’s explaining why 4 is a special case.

  • @TheRemixDenuo
    @TheRemixDenuo 10 років тому +2

    I once was thinking about prims and came up with something similar: every prim P cant divide (P-1)! and every composed number C can divide (C-1)!. Here 4 is also a special case. To eleminate 4 as special case you could test if C divide ((C-1)!)^2. And the proof is that if P was a composed number its divisors must be lesser than P and would appear in (P-1)!.

    • @TheRemixDenuo
      @TheRemixDenuo 10 років тому +1

      And the reason why 4 as a special case (and 100% the only one) is that its the first prim squared.

  • @PC_Simo
    @PC_Simo Рік тому +2

    There’s also no 1’s, in that multiplication table for 6; other, than 1*1 and 5*5.

  • @Tyranisaur
    @Tyranisaur 10 років тому +2

    When you take (n-1)! mod n, what happens if p is a prime, is that you get the product of all the numbers that are less than n, and that whole thing does definitively not divide by n because n is a prime, and that means that you need a factor p in there for it to divide, what happens instead is what is explained in the video, the numbers can be paired up in such a way that each pair has a reminder of 1, except for two exceptions, the product starts with a 1, and ends with p-1. 1 is by itself 1, while p-1 is the result. And since p is either an odd number or 2, that means that the number of terms is always even, or 1, meaning that p-1 is left over. So when you add the 1, the whole thing divides by p.
    If n is composite on the other hand, it can either be a square of a prime or it can be written as the product of two different primes. And since those two primes are smaller than n, then (n-1)! contains both of those numbers, meaning that you can pair those up, which means that the reminder of the factorial is 0, giving you a reminder of 1 when you add the 1 and divide by n. If n is the square of one prime, that prime can be either 2, or an odd number. If it is the square of an odd prime, then the prime multiplied by 2 is one of the factors (unless the prime itself is 2), along with the prime itself, which means that the product of the factorial is divisible by n, so when you add the 1 at the end, the result is a reminder of 1. So n=4 is the exception because it's so small that root(n)*2 < n-1.

  • @Replay260
    @Replay260 10 років тому +3

    That looks really cool the patters that it makes. Like how when you did 6! there was a 3 surrounded by 0's then those zero's were either surround by 2's 4's or 3's.

  • @SojournToAlkaiser89
    @SojournToAlkaiser89 7 років тому +2

    I thought I was coming here for proof of a paper change... I mean, I got it, and I'm not disappointed or anything, but...

  • @pdieraue
    @pdieraue 10 років тому +1

    4 is only an exception to the test for composites because it gives a result of 3 at the end, whereas all other composites give a result of 1. It isn't a "false positive" on the prime test, because in order to pass the prime test the result is supposed to be 0.

  • @chhayapatel4098
    @chhayapatel4098 3 роки тому +1

    Very beautifully explained .... excellent explanation

  • @autodidactusplaysjrpgs7614
    @autodidactusplaysjrpgs7614 7 років тому +1

    Dr. Grime approaches times tables with the same intensity that he would approach modern statistical theory.

  • @Maikelz93
    @Maikelz93 10 років тому +1

    What was lacking in the explanation for me in 6:20 is the fact that for any prime (p) [ (p-1)^2 -1 ] / p will result in a, when a is a full number. Meaning, the highest remainder for each prime ( like 6 is to 7, the p-1 ) square will always result in remainder 1, thus it makes sense why it cannot be paired .

  • @vrendus522
    @vrendus522 9 років тому +1

    Thanks so much. Make sure that you wear your rubbers, an overcoat and eat plenty of soup.Your'e a good teacher and you are both loved and admired, from our community, Dan

  • @PC_Simo
    @PC_Simo Рік тому +2

    Technically, 1 doesn’t get paired, either; but it doesn’t need to, since it’s already 1.

  • @simon_patterson
    @simon_patterson 6 років тому

    Superb demonstration! 👍

  • @dexterous5892
    @dexterous5892 6 років тому +1

    3:42 the epitome of the "Parker Square".

  • @treyquattro
    @treyquattro 4 роки тому +1

    a new definition for "getting caught short"

  • @DiaStarvy
    @DiaStarvy 10 років тому

    If you know basic group theory, then Wilson's Theorem follows from the fact that the product of all the elements of an abelian group is either the unique element of order 2 or the identity if no such element exists. In this case, (p-1)! is the product of the group of units modulo p, and -1 is the unique element of order 2.

  • @Leyrann
    @Leyrann 4 роки тому +2

    I actually tried to do the proof myself when watching the first video, I couldn't figure out how to prove that it worked for primes, however I found a proof that it couldn't work for composite numbers that I think is simpler: A composite number c can be divided by at least one number smaller than it other than the trivial case of 1. For any n!, the resulting number can be divided by any number n or smaller (because factorial), therefore n! + 1 can by definition not be divided by any number n or smaller except for 1, which is still a trivial case. Thus, the composite number c can be divided by at least one number that (c-1)! + 1 cannot be divided by, meaning (c-1)! + 1 cannot be a multiple of c.

  • @Prasen1729
    @Prasen1729 4 роки тому +1

    The poor 4, he doesn't respect his criteria, he calls him a special case. :-)

  • @marcushendriksen8415
    @marcushendriksen8415 6 років тому

    Great video! Liked and subscribed :)

  • @ShimmeringSpectrum
    @ShimmeringSpectrum 10 років тому +1

    Pretty cool seeing some discrete mathematics stuff again.

  • @gsurfer04
    @gsurfer04 10 років тому +1

    I'm surprised there was no mention of groups.

  • @screwdrivers6511
    @screwdrivers6511 10 років тому +5

    Well 1's not prime by definition due to the fundamental theorem of arithmetic

  • @borededith
    @borededith 7 років тому +1

    I guess this happens with 4 because if C is a composite number equal to p^2 (given a prime P), it will pass Wilson's theorem if C =< 2p. This only happens when p = 2.

  • @ImperiatrixMatt
    @ImperiatrixMatt 10 років тому +2

    much easier to understand that the five line proof that I had to learn for my Number Theory 2 exam which involved refering back to fermats congruence and an theory about roots of a polynomial

  • @chhandapurohit1613
    @chhandapurohit1613 7 років тому

    brilliant

  • @lonestarr1490
    @lonestarr1490 2 роки тому +1

    The sum of each of the diagonals in the multiplication table for 7 gives a number divisible by 7. This doesn't hold for the table for 6.
    Is this also true for all primes and false for all composites, or is it just a coincidence?

  • @Fuchspower
    @Fuchspower 8 років тому

    Regarding the last sentence: Four is not a special case because it is small but because it is a power of a prime. You can''t find a pair of numbers whose product leaves reminder zero, because its only non-trivial divider is the prime itself.

    • @davidMlavallee
      @davidMlavallee 8 років тому

      What do you and James mean by 4 is a special case? That the modular multiplication table doesn't look right? As far as I can tell, the prime/composite test should still work:
      (4-1)! + 1 = (3)! + 1 = 6+1 = 7, which is not a multiple of 4, so 4 is a composite number

    • @Adam-rt2ir
      @Adam-rt2ir 8 років тому +1

      +Failpower it's a special case because it's small. you can't just say it's not, it's the same explanation, maybe even better, than yours
      +davidMlavallee for other composite numbers the remainder is 1, that's why

    • @andrewkarsten5268
      @andrewkarsten5268 7 років тому

      If you do the multiplication table of rem, then you find there's not enough pairs to make 1, so you actually get a rem3, that's the specially part. There's nothing about it passing or falling the test, it's the actually solving part that makes it special.

    • @andrewkarsten5268
      @andrewkarsten5268 7 років тому

      Edit: you get a rem2, not rem3. The special case is that you get rem2 instead of rem1

    • @DeathBringer769
      @DeathBringer769 6 років тому

      Look up Sloane's Gap. You could pick any reasonably small number and find some unique facts about it. The "smallness" does factor in.

  • @DreamzAnimation
    @DreamzAnimation 10 років тому +1

    Brady, are there any you can think of where it works three times?

  • @elementalsheep2672
    @elementalsheep2672 4 роки тому

    A whole semester of this in 2nd year undergrad pure maths and I only just got it, three years later.

  • @TheSentientCloud
    @TheSentientCloud 10 років тому +1

    Why didn't you explain modulus? This would have been a perfect time to do so! xD

  • @CorrectHorseBatteryStaple472
    @CorrectHorseBatteryStaple472 10 років тому

    All this talk of P-1 makes me think of the Pollard P-1 factoring method. Would it be possible to do a video on that?

  • @mikecmtong
    @mikecmtong 10 років тому +29

    Caveat emptor: This does not prove the theorem. This is a demonstration of the idea behind the proof by showing a special case. You don't prove a theorem by just showing how one case works (unless that case is a counterexample, in which case you disprove the theorem). That would be like saying the Pythagorean theorem is true because 3^2 + 4^2 = 5^2; of course, you would need to consider ALL right triangles with integer side lengths.
    To prove the theorem, you would need to show that the rows will, in the general case, always have a one.

    • @joealias2594
      @joealias2594 10 років тому +6

      mikecmtong It annoys me a little because this video was introduced in the other video as a "proof" of Wilson's theorem when it is decidedly not a proof.
      So, I agree with the choice to give a simplified version of the proof, but I'm quite peeved that it is presented as a proof. Why not just say that it's an explanation, or a partial proof?

    • @kennethflorek8532
      @kennethflorek8532 10 років тому +4

      This theorem stumped high level mathematicians, until Euler, I think, came up with the pairing idea. When I saw that they were going to prove this I thought "I have to see this!" because as simple as the proof is, the unfamiliar territory could take hours to explain to some one who knows not a thing about number theory. I was impressed how nice a job they did, making it pretty convincing, without wandering in the labyrinth.
      You don't have to go by way of group theory, if that is how they do the proof nowadays. There are direct ways of proving that all the remainders but 0 will appear, which is the way I learned it. If two of the products in a row had the same remainder, then their difference would have a remainder of 0. The difference, however, is factorable into the number that both were multiplied by, and the difference between two numbers that are both less than the prime, neither of which are divisible by the prime. It still remains to prove that there are only two cases where a number would be paired with itself to get 1. The only way I know of doing this is factoring x^2 -1 into x -1 and x +1. Getting to that point would take some algebra.

    • @johnobrien4367
      @johnobrien4367 5 років тому +2

      since the table for a prime number will not contain any multiples and therefore no zeros, the table for 7 generalizes to any prime and proves the theorem.

  • @olivialuv1
    @olivialuv1 Рік тому +1

    So remainders are just modular spaces/modular arithmetic...

  • @puneeth9b
    @puneeth9b 10 років тому

    Proof for the general result I think!
    1#The remainder table he wrote is the multiplication table in a prime (p) field. In this case GF(7). (p=7)
    2#Inverses are unique in the field. 1 and p-1 (6 in this case) are their own inverses. The rest have inverses which aren't themselves.
    3# Proof: let k < n. If k is it's own inverse, k^2 = a*p + 1, where a is an integer. k^2 - 1 = a*p. => k^2 - k + k - 1 = a*p. => (k-1)(k+1) = a*p. But k is a number less than p, and p is prime. So the only way k+1 is a divisor of a*p is in the boundary case when k = p -1=> k+1 = p. Also k-1 can be a divisor only when k-1 = 0=> k =1.
    4# Therefore from 1x2x3....×(p-1) other than 1 and p-1, the other numbers are multiplied out in inverse pairs. Therefore we have (p-1)! = 1x1x1..(p-1). => (p-1)! + 1 = p. Proved!
    I cant believe I understood coding theory enough to prove this :D *flies away*

  • @Seeker52
    @Seeker52 10 років тому +5

    Oh, I want to see some stuff about Latin Squares, please! ^_^

  • @LeviATallaksen
    @LeviATallaksen 8 років тому

    In case someone wonders why each possible remainder except 0 shows up in every row and column in the remainder table for a prime p, I'll come up with an explanation here:
    (1) The product of two numbers less than p can't be divisible by p, since they don't have any common factor with p (except 1). Thus, 0 is not in the table.
    (2) If a remainder shows up twice in the same row, then the next remainder must be the same in both cases. (For example, if the 2nd and 7th remainder are equal, then the 3rd and 8th remainder must also be equal.) The reason is that rem(a+b)=rem(a)+rem(b). [So if for example rem(5*3)=rem(5*7), then rem(5*4)=rem(5*3+5)=rem(5*3)+5=rem(5*7)+5=rem(5*7+5)=rem(5*8).]
    (3) Continuing the previous argument, we notice that if we get to a remainder that we've got earlier in the same row, then we won't get any new remainder later in that row.
    If we included column p in the table, then this column would contain only 0s. By (1), that's the first 0 in each row. Thus, by (3), no number can be repeated before column p, since 0 is a new remainder. Thus, the first p-1 remainders are different and not 0, so they must necessarily be 1,2,3,...,p-2,p-1.
    Of course, the same arguments apply to the columns.

  • @user-ge1kl1fl8l
    @user-ge1kl1fl8l 8 років тому

    how to demonstrate for all the prime p, there always are many "pairs" those product has the remainder 1(mod p)

  • @atulit
    @atulit 7 років тому

    awesome

  • @fountainovaphilosopher8112
    @fountainovaphilosopher8112 7 років тому

    Just to be clear, there is a much easier way to prove why those composite numbers don't work.It's not prime,so the factorial will have its divisers anyway,so it will be divisible,but when you add 1,it won't be.

  • @green4free
    @green4free 9 років тому +3

    yay! some group theroy and a prime cayley table

  • @suz5191
    @suz5191 6 років тому

    there was so much brown paper shown at the end of the original video though xD

  • @plaingeekspeak2266
    @plaingeekspeak2266 10 років тому +2

    Are you basically using modular arithmetic? I remember making these types of multiplication tables when learning about groups of symmetries, where you basically write the remainders to see how doing sequential transformations would affect an object.

    • @CallMeIshmael999
      @CallMeIshmael999 10 років тому

      That's exactly what he's using. He just didn't want to confuse people by teaching them about modular arithmetic in the same video as something else.

  • @stevenmartinez1230
    @stevenmartinez1230 8 років тому +1

    Look, a channel with a proper subscriber/views ratio.

  • @error.418
    @error.418 10 років тому

    Why isn't this showing up in the video list for Numberphile2?

  • @just.a.viewer
    @just.a.viewer 4 місяці тому

    7:30 the center of the table is (0) of "sandpile" 3x3
    other 3x3 on this are all the sandpile 3x3.

  • @YouTKidsTV
    @YouTKidsTV 10 років тому

    how is there a rem(8) if you devide it by 7?
    shouldt it be rem(1)?

    • @davidmelo9862
      @davidmelo9862 9 років тому +1

      UA-camKidsTV rem stands for remainder, there's a remainder of 8 when you divide it by 7, and that is 1.

  • @CorrectHorseBatteryStaple472
    @CorrectHorseBatteryStaple472 10 років тому

    If you take every number up to a composite, you have traveled past all the factors of that composite. For example, (8-1)! contains 2 x 4. Hence why (P-1)! is divisible by composite P, and why (P-1) + 1 is not.
    Also, going up to something with repeated factors like 9 is taken care of by the fact that before 9, there is also 6. (9-1)! contains 3 x 6 = 2 x 9.

    • @CorrectHorseBatteryStaple472
      @CorrectHorseBatteryStaple472 10 років тому

      I think four might be a special case. The remainder of (4-1)! divided by four is not zero, but two. It still correctly fails the prime test, but for a different reason.

  • @wiggles7976
    @wiggles7976 2 роки тому

    So basically, if you pick a divisor, you can say a number is equal (technically, equivalent) to its remainder.

  • @Theodore1999
    @Theodore1999 3 роки тому

    I finally figure out what is the inverse of each number in 2x3x...x(p-1) thanks to the sudoku representation, my mind was stuck in the addiction inverse until I see the example where 4 is the inverse of 2, not 5

  • @GenericHandleName42
    @GenericHandleName42 10 років тому

    Another way to proof would be by contradiction, that by assuming when P = ab(meaning P is not a prime), [(ab-1)! + 1 ] mod ab = 0, which is impossible. Is this possible?

  • @RonJohn63
    @RonJohn63 6 років тому

    3:38 Is that like a *Parker* Square?? :)

  • @klutterkicker
    @klutterkicker 10 років тому

    That's the last of the paper, guys. Numberphile is over!

  • @gasser5001
    @gasser5001 10 років тому +7

    im sub'd to all of your channels(or i thought) and this one pops up?! i mustve missed something!!!!! nooooo!!!!!

    • @Majskolvenz
      @Majskolvenz 10 років тому

      This video is unlisted.

    • @gasser5001
      @gasser5001 10 років тому

      Majskolvenz i meant the channel, in general. :)
      seems i got lucky on 2 counts, then.

    • @alandouglas2789
      @alandouglas2789 10 років тому +2

      you must be new

    • @numberphile2
      @numberphile2  10 років тому +6

      DoinItRightTheFirstTime periodicvideos.blogspot.co.uk/2014/08/numberphile2-faq.html

    • @gasser5001
      @gasser5001 10 років тому

      Alan Douglas
      ive been sub'd to 4-5 of bradys channnels for a few years now, but i guess thats 'new' in 2014. and thanks for the link, brady!

  • @Ransom927
    @Ransom927 10 років тому

    You forgot a set of brackets around one of the P-1s

  • @ilovetheseshows4431
    @ilovetheseshows4431 3 роки тому

    A few years too late, but I was thinking...
    If we take a composite number 'x' that is NOT a perfect square, then (x-1)! is the product of all the numbers smaller than x, which would necessary include all of it's factors. Since, these factors come in pairs, there will be at least ONE pair that will multiply together to form the original number, and hence for every composite non square number (x-1)! will be perfectly divided by x, and (x-1)! + 1 will always have a remainder of 1.
    Special case for higher powers: take for example x = y cubed. (x-1)! will definitely have both y and y squared as it's factors so it still works. Say x = 27, 26! will have both 3 and 9 in its multiplication, so 27 will definitely divide it perfectly. Same goes for higher powers.
    For squares it's a bit trickier, but for every x = y squared, both y AND 2y would be smaller than x-1 and would be part of (x-1)!. Take for example x = 9 and therefore y = 3, and 2y = 6, both of which are smaller than (9-1) = 8. Therefore, 8! by definition would have 3*6 as its factor, which is 18 and a multiple of 9. The only exception would be 4 where 2y = y squared.
    Finally, for a prime number, well it has no factors, therefore it will never divide by (x-1)!. But, let's look at it a little deeply. Say you have a prime P. We want to calculate (P-1)! but let's calculate it this way, let's say (P-1)! = (P-1) * X, where X of course is (P-2)!. Now, (P-1)*X = PX - X. PX definitely divides P, and X definitely doesn't. But, X = (P-2)!, which we can write as (P-2)*Y, where Y of course is (P-3)!. Now, (P-2)*Y = PY-2Y, PY definitely divides P, and 2Y definitely doesn't, we can ignore the 2, since if we can show that Y is a multiple (or NOT a multiple of P, than 2Y definitely follows suit). But, Y = (P-3)! which we can write as (P-3)*Z where Z is of course (P-4)!. And we can continue down the factorial to 1, which we remove in the end (we need to calculate (P-1)! + 1) and hence get a perfect multiple of P. We can do this with primes because none of the numbers are factors. Does this make sense?
    Why Wilson Number's do it twice, I haven't figured out yet...

  • @pulsix.
    @pulsix. 7 років тому

    What happens if the remainder is prime?

  • @Yo5463
    @Yo5463 10 років тому

    Also 1 s a special case. It's not prime, but it passes the test infinitely many times.

  • @markohorstmann9637
    @markohorstmann9637 4 роки тому

    Could this somehow help with faster sudoku slowing and PvsNP?

  • @feldinho
    @feldinho 10 років тому +3

    @ 1:22
    The sum of remainders does not work if you factor 24 completely:
    rem(2)*rem(2)*rem(2)*rem(3) is 24, not 3.
    What am I doing wrong?

    • @MrEkitten
      @MrEkitten 10 років тому +2

      Remainders have to (should) be less than the number you are dividing by. You stopped before you were done. Your answer, 24, can be divided by 7 to get a number less than 7.

    • @feldinho
      @feldinho 10 років тому

      ***** now it makes sense. thanks! :)

    • @JackDrewitt
      @JackDrewitt 10 років тому +3

      nice profile image

    • @rangedfighter
      @rangedfighter 9 років тому

      this happens with every factorial ... the primefactors multiply to the number again and are always smaller than the prime they are divided by, so the remainder always equals the number
      but in no case does it matter if you take rem(rem(2)*rem(2)*rem(2)) or rem(8), because the remainder of it is always 1
      the proof works with the modulo function which is a more precisely defined version of rem(),
      and the first few proofs when you start with mod are all about the proberties
      so he just made a quick demo for everyone to showcase the property
      I recommened reading about it,
      as the topic is so basic that it's accesible to anyone if introduced properly

    • @pascalstriangle792
      @pascalstriangle792 9 років тому

      James is using something called a modulus (remainder function) in this video. In modular arithmetic, like the 24/7 example, you can factor it into 2•2•2•3. Then you take the "remainder" of all of the seperate terms and you get the same thing: 2•2•2•3. The problem with what you did is modular arithmetic automatically works under addition, and multiplication is just a faster way of doing addition. You then get 2•2•2•3=24 but you have to still take the remainder 7 until you cannot anymore. So until you get a number |x|

  • @MiahooJunk
    @MiahooJunk 10 років тому +7

    I didn't get the 4 thingy....
    (4-1)! + 1 = (1x2x3) + 1 = 6+1 = 7 / 4 = 1 rem(3)
    And even when you go to the table you get 2x2=>0

    • @thomasmichaeloliver
      @thomasmichaeloliver 10 років тому +5

      the only pair that can make a zero would be to pair 2 with 2 but you cant do that so 4 will have a different remainder and all other non primes will have remainder 1

    • @theondono
      @theondono 10 років тому +1

      The video mentions 4 because in the rigorous demonstration this theorem involves group theory, and in that context, 4 is a special case. In fact lot of the basic theorems only work for n>2 or n>4.
      In this sense this theorem is kind of a corollary as it talks about prime numbers while being demonstrated typically by group theory, and the demo requires for n to be >4. That's why he states that "4 is a special case".

    • @twwc960
      @twwc960 10 років тому +3

      He means that 4 is a special case for his composite test, which states that for composite n, (n-1)! has a remainder of zero when divided by n. That works for all composites except 4, in which case 3! = 6 which has a remainder of 2 when divided by 4. See the Wikipedia page on Wilson's Theorem for details.

    • @nialltracey2599
      @nialltracey2599 4 роки тому

      @@twwc960 Yup. 4 is a special case for the (n-1)! having remainder zero part, but it doesn't break the main non-prime rule: (4-1)!+1 isn't divisible by 4.

  • @gunhasirac
    @gunhasirac 7 років тому +1

    James is such a good mathematician that he can put things in a really easy way!! I think I get better idea now than learning in terms of ring theory and 0 divisors!! Of course ring theory is better than this demonstration. But we need some simple idea of what's going on with the theory. which happens all the time in math that the content taught in textbook is too generalized to grab the idea of it!

  • @michaellockett4044
    @michaellockett4044 4 роки тому

    So if the quotient of [(p-1)! + 1] and p is a number that is also divisible by p, shouldn't the theorem for the Wilson Primes be [(p-1)! + 1]/p^2

  • @dcs_0
    @dcs_0 7 років тому

    i think we should check if 2^74207281 -1 is a wilson prime. Shouldnt be too hard to do a factorial on it

  • @algorfrile739
    @algorfrile739 8 років тому

    I'm curious about 9. It is a composite number but you can't pair any number to get 0 in the multiplication. How do you prove that?

    • @greendrummer7
      @greendrummer7 8 років тому +1

      3*3=0

    • @DucciVinci
      @DucciVinci 8 років тому +2

      3*3 is actually not a pairing because there is only one factor 3 in 8!.
      But 3*6=0 mod 9 works. So 8! is indeed divisible by 9.

  • @doougle
    @doougle 10 років тому

    I notice the "Sudoku" rules were't true for the 6 table. Is that because it's not prime?

  • @simargl2454
    @simargl2454 10 років тому +1

    Am I the only one who thinks this should be the main video and the other thing the extra?

    • @modus_ponens
      @modus_ponens 10 років тому +1

      Yup, how they dare not to add this to the main video! By the state awesomeness, this is the main video, first one was just intro. But this is youtube, keep it short and let the viewer choose what to watch. This way it pleases the biggest part of audience. But it was just more amazing to see how prime test could anyhow possibly work, than that it just works.

  • @judedamianhorner6948
    @judedamianhorner6948 6 років тому +1

    What about rem(6/7) and Rem(4/7) you get 4 and 6 which multiply to get 24 which is obvs not 3

    • @martinepstein9826
      @martinepstein9826 4 роки тому +1

      There should actually be another remainder operator enclosing the whole thing: rem(24) = rem(rem(6)*rem(4))

    • @Morbius_Official
      @Morbius_Official 10 місяців тому

      ​@@martinepstein9826Thank you! I was very confused.

  • @rewrose2838
    @rewrose2838 5 років тому +2

    Grimes is one of those guys who don't write everything out (their thought process) when doing a proof (which kinda bothers me but I guess it's a personal distaste since I tend to forget things quite often)

  • @user-lm7yx7wj5l
    @user-lm7yx7wj5l 5 років тому +1

    5:23
    You cannot put your equal- sign (=) right there...
    Becuse you now look on the reminder, and not the multiplication of the numbers themselves.

  • @juanaz1860
    @juanaz1860 10 років тому

    i don't get it why is rem(3)=3. and what's 0 lots of 7?

  • @CsharpPreza
    @CsharpPreza 10 років тому +1

    I have totally no idea what this is about other than a remainder.

  • @rafishalom1
    @rafishalom1 10 років тому

    Why does he say at the end that 4 is a special case?!
    (4-1)!+1=7 not divisible by 4, and 4 is composite.

    • @MuffinsAPlenty
      @MuffinsAPlenty 10 років тому

      It's not a special case for Wilson's Theorem. It's a special case in that the proof works a little bit differently. For any composite number greater than 4, the remainder of (p-1)! + 1 is 1. But when dealing with 4, the remainder of (4-1)! + 1 is 3, not 1.
      The reason is that the table for 4 looks like this:
      *x* *1* *2* *3*
      *1* 1 2 3
      *2* 2 0 2
      *3* 3 2 1
      In order to get 0 in the product, you would need 2 * 2, which doesn't happen in (4-1)!. Instead, we get 3 * 2 * 1 = 6, which has remainder 2. Now, 2 + 1 = 3, so we get remainder 3 instead of remainder 1.
      The point is that we don't get remainder 0, which means that the theorem holds for p = 4. However, you need to prove the case p = 4 separately from the case p is a composite > 4.

  • @supersheriffawesome
    @supersheriffawesome 10 років тому

    is Wilson's theorem is a consequence of the riemann zeta function?

  • @GuildmasterWigglytuff
    @GuildmasterWigglytuff 7 років тому

    Neat, finite fields.

  • @seanxmurray
    @seanxmurray 10 років тому

    I don't really understand how you can just assume that you'll be able to pair all the numbers up with other numbers to get a "1" ... How do you know that at the end, you don't end up with a bunch of numbers that can't be combined to get one remainder?

    • @CallMeIshmael999
      @CallMeIshmael999 10 років тому +2

      The answer is that you can't really assume it. Because he wanted to explain the concept in a single video he took something he should have proven for granted.
      But it is possible to prove that if the number you're dividing by is a prime, every number lower than it will have an "inverse": a number that when you multiply by it the remainder is 1. If the number you're dividing by isn't a prime, then the numbers that are relatively prime with the number you're dividing by will have inverses.
      There's probably not nearly enough space in a comment box to prove this, but there are lots of books on the subject. Any introductory number theory book will teach you this. I'd encourage you to do some reading if you're interested.

  • @philippenachtergal6077
    @philippenachtergal6077 3 роки тому

    8:09 Only for n > 4 because 3! is 6 and 6 mod 4 = 2