Video není dostupné.
Omlouváme se.

University of Cambridge Starter Mathematics Interview Question

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • This is for all applicants within Maths and natural sciences (including computer science) looking at a problem - something you'd come across as part of a BMO1 type question. This may not be a complete interview question but this idea of thinking systematically is important.
    As per usual let me know if there are any mistakes.

Komentáře • 61

  • @ThomasMeeson
    @ThomasMeeson Před měsícem +54

    It’s so cool how much you can analyse with deceivingly little information. Great vid

    • @davidwright8432
      @davidwright8432 Před 26 dny +2

      It's not deceivingly little! Surprisingly so, perhaps. But you aren't deceived - rather, provided with all you truly need to get started!

  • @stighemmer
    @stighemmer Před měsícem +57

    In addition:
    To prove that 24 is the best you can do, look at the smallest two primes > 6, which is 7 and 11.
    p^2-1 is 48 and 120. These numbers have 24 as their largest common factor.
    Therefore there is no larger number dividing all p^2 -1 for prime p > 6

    • @eduardciuca217
      @eduardciuca217 Před 28 dny +1

      But if you check for p=13 , you get p^2 - 1 =168, which is divisible by 7 ;
      Also , for p = 23 , p^2-1 = 528 , which is divible by 11
      For p = 37 , we get p^2 - 1 = 1368 , which is divible by 19.
      This means we get other bigger primes which divide p^2-1.

    • @shmuelzehavi4940
      @shmuelzehavi4940 Před 28 dny

      Your proof is incomplete. You have to prove as well that there is no prime number p > 11 , such that the largest common factor of p^2 - 1 with 48 or 120 is smaller than 24.

    • @stighemmer
      @stighemmer Před 26 dny +5

      @@shmuelzehavi4940 My comment started with "In addition:" This was meant to imply that the complete proof included the discussion from the video.

    • @duckyoutube6318
      @duckyoutube6318 Před 14 dny

      11^2=121 not 120.
      Does not have a common factor of 24.
      Whenever you square a number like 11, or 111, or 1111, the sum will always be a palindrome.
      Such that.
      11^2=11×11=121
      111^2=111×111=12321
      1111^2=1111×1111=1234321

    • @robertveith6383
      @robertveith6383 Před 11 dny

      * which *are* 7 and 11

  • @aryaharikrishnan564
    @aryaharikrishnan564 Před měsícem +27

    For the consecutive even numbers bit,
    you can also just say that (p-1) = 2q and (p+1) = 2q+2
    so (p-1)(p+1) = 2q(2q+2) = 4q(q+1)
    and q(q+1) are consecutive numbers so always multiply to make an even number (as if q is odd then (q+1) is even, and odd x even=even, and vice versa)
    so (p-1)(p+1) = 4 x "some even number"
    so (p-1)(p+1) is divisible by 8.
    Similar to the mod argument

    • @hedgehog11953
      @hedgehog11953  Před měsícem +6

      @@aryaharikrishnan564 I think I might prefer this reasoning since you don’t really need to introduce any thinking with remainders. Nice 👍

  • @Vijwal
    @Vijwal Před měsícem +27

    We can also show this by a simpler proof by using the fact that all primes can be written as 1(mod(6)) or -1(mod(6))
    Since p isn't 2 or 3, we can write it as 6k+1 or 6k-1 , by doing p²-1 we get
    36k²+12k or 36k²-12k , here by some factorization we can further get:
    12k(3k+1) -> 12 is a factor and one of k or 3k+1 is even
    or
    12k(3k-1) -> 12 is a factor and one of k or 3k-1 is even
    Hence we conclude that for any prime p (≠2, 3) p²-1 is divisible by 24

    • @hedgehog11953
      @hedgehog11953  Před měsícem +11

      @@Vijwal I wanted to avoid using the fact that primes are one more or one less than a multiple of 6, it feels more like magic rather than a series of deductive steps that anyone could do. That being said your proof is also perfectly fine.

    • @tenebrae711
      @tenebrae711 Před měsícem +3

      @@hedgehog11953 absolutely agree on this, that's a starter question, and I suppose this video isn't really meant for advanced mathematicians, who know this property, which really is nontrivial to observe

    • @hedgehog11953
      @hedgehog11953  Před měsícem

      @@tenebrae711 Exactly! If you were to then explain to someone why primes are one more or one less than a multiple of 6 you’d then basically explain it like this.

    • @RexxSchneider
      @RexxSchneider Před měsícem +3

      @@hedgehog11953 I would explain the property by saying all numbers can be written as one of { 6k, 6k+1, 6k+2, 6k+3, 6k+4, 6k+5 }. But 6k, 6k+2 and 6k+4 are even and can't be prime (for k>0). Similarly 6k+3 is divisible by 3 and can't be prime (for k>0). That means all primes greater than 3 must be of the form 6k+1 or 6k+5, which is 6(k+1)-1. So all primes greater than 3 must be a multiple of 6 plus or minus 1. Is that what you meant?

    • @chingpongsiu1508
      @chingpongsiu1508 Před měsícem +1

      Same solution here at the first sight of the problem. I am not a mathematician but a software developer. It is a common trick to speed up finding primes by just testing (6k + 1) and (6k +5), so that each step in the loop advances by 6. When you think about Sieve of Eratosthenes, it is obvious that 6k, 6k+2, 6k+3, 6k+4 are eliminated, as explained by @RexxSchneider above.

  • @asparkdeity8717
    @asparkdeity8717 Před 22 dny +4

    This is the best and easiest way of showing divisibility by all these numbers, good job!

    • @hedgehog11953
      @hedgehog11953  Před 22 dny

      @@asparkdeity8717 thanks! More stuff like this to come

  • @JESUS_CHRlST
    @JESUS_CHRlST Před měsícem +16

    Nice video, I didn’t see that trick with 3 coming but I would have got the rest

    • @hedgehog11953
      @hedgehog11953  Před měsícem +4

      When originally thinking about this problem (it was embedded in a BMO1 question) I managed to get the 3 but did miss the consecutive even numbers bit.

  • @AlgebraicAnalysis
    @AlgebraicAnalysis Před 5 dny

    A somewhat systematic way of doing this would be to apply a sort of sieve in modulo:
    Let p be a prime, then we have
    p = 1 mod 4 or 3 mod 4 -> p^2 = 1 mod 4 -> p^2 - 1 = 0 mod 4
    p = 1 or 3 or 5 or 7 mod 8 -> p^2 = 1 mod 8 -> p^2 - 1 = 0 mod 8
    p = 3 mod 16 -> p^2 = 9 mod 16 -> p^2 - 1 = 8 mod 16 so the sieve for powers of 2 terminates here. Now let's try for powers of 3.
    p = 1 or 2 mod 3 -> p^2 = 1 mod 3 -> ...
    p = 2 mod 9 -> p^2 = 4 mod 9 -> sieve fails
    This gives at least 8 and 3 as factors.
    For primes q > 3 i.e. q >= 5, we have
    p = +/-2 mod q -> p^2 = 4 mod q (irreducible) -> sieve fails. Though this assumes a sort of twin prime conjecture in modulo i.e. that for any prime q >= 5, there exists a prime p = +/-2 mod q. The reverse of this, that there exists such a q for a given p, is rather obvious. Can one prove this in forward?
    At any rate, for the problem at hand, it suffices to just consider p = 7, which is 2 mod 5, -4 mod 11 (-> p^2 = 5 mod 11), 7 mod 13 -> p^2 is 10 mod 13, .... then you can stop before primes q > 49 since then p^2 mod q is always 49.
    In summary, a loose guide for this problem with p > n is to apply the sieve, then check when it fails at a prime, and guess that it fails for all primes q greater than that, by checking using the smallest prime k > n up to q < k^2. A conjecture which would be useful as a lemma would be that if the sieve fails for a prime q, then it fails for all primes greater than q.

  • @MagnusIngemann
    @MagnusIngemann Před měsícem +3

    I love how this is so true, but to complex to remember

  • @MrGeorge1896
    @MrGeorge1896 Před 27 dny +2

    All prime numbers greater than 3 are either 6n + 1 or 6n - 1 e.g. 11 = 2 * 6 - 1 and 31 = 5 * 6 + 1.
    So (p + 1) (p - 1) is either (6n) (6n - 2) or (6n + 2) (6n) which can be simplified to 12n (3n ± 1).

  • @somgesomgedus9313
    @somgesomgedus9313 Před 19 dny +1

    My solution: p is of the form 6n+1 or 6n+5 where n>0. Then p^2-1 is either 12*n(3n+1) or 12*(n+1)(3n+2).
    The first term is divisible by 24 and all its divisors, since n or 3n+1 is even. The second term has these In general, there need not be more divisors as the examples p=7 and p=13 show.
    The second term also is divisble by 24 and all its divisors for the same reason. In general there need not be more divisors as the examples p=11 and p=17 show. Thus p^2-1 is guaranteed to be divible by 24 and all its divisors that's the best we can do

  • @arekkrolak6320
    @arekkrolak6320 Před 23 dny +1

    it is quite obvious it must be divisable by 2, 3, 4 and 8 - this follows directy from (a+b)^2 = a^2 + 2ab + b^2; also there can be no more divisors as the first three results devided by 24 give prime numbers

  • @MrRyanroberson1
    @MrRyanroberson1 Před 24 dny

    if you watch the powers of 3 and powers of 2 in the factors of numbers, they follow a pattern: 2, 4, 6, 4, 2, 12, 2, 4, 6, 4, 2, 12...; notice since all primes are 6k+/-1 that p+1 and p-1 will be one of those multiples of 6 and then one of the adjacent evens. the product of those is always at least a multiple of 24, so p^2 = 24m + 1 for all p > 3

  • @DanDart
    @DanDart Před měsícem +6

    I've seen this done on Numberphile with Matt Parker and they resolve that they also have the same answer.

    • @hedgehog11953
      @hedgehog11953  Před měsícem

      @@DanDart what’s the video called - I don’t think I have seen this video?

    • @DanDart
      @DanDart Před měsícem

      @@hedgehog11953 czcams.com/video/ZMkIiFs35HQ/video.htmlsi=RagzEB0Y2UUY19z-

    • @graemep804
      @graemep804 Před měsícem

      m.czcams.com/video/ZMkIiFs35HQ/video.html

    • @RJSRdg
      @RJSRdg Před měsícem

      ​@@hedgehog11953It's called "Squaring Primes - Numberphile"

    • @DanDart
      @DanDart Před měsícem

      The link doesn't seem to have persisted here. It's called "Squaring Primes".

  • @dhruvbhatia6808
    @dhruvbhatia6808 Před měsícem +4

    A better proof for divisiblility of 3 would be taking the prime as 6k +1 and 6k-1 in both cases you would get 3 as a factor

  • @dane4kka
    @dane4kka Před 17 dny

    Every perfect square has remainders 0 and 1 when divided by 3. Since p is not divisible by 3, then p^2 == 1 mod 3. So p^2-1 == 0 mod 3.

  • @KristofferBrander
    @KristofferBrander Před měsícem +8

    Why p>6 and not p>4? Does the proof fail for p=5 in any way?

    • @KristofferBrander
      @KristofferBrander Před měsícem

      And yes, I know that if it holds for p>4 then it holds for p>6 as well. Just wondering if there is a reason for not picking p>4.

    • @hedgehog11953
      @hedgehog11953  Před měsícem +3

      @@KristofferBrander There is a bit missing from this question that involves p>6, but yes you are right p=5 does indeed follow the rule.

    • @TheScotty1701d
      @TheScotty1701d Před měsícem +2

      It‘s from the more difficult problem to show, that 240 is a divisor of p^4-1, if p>6 is a prime.

    • @hedgehog11953
      @hedgehog11953  Před měsícem

      @@TheScotty1701d I haven’t come across this problem actually - might have a look into this

    • @RexxSchneider
      @RexxSchneider Před měsícem +6

      @@hedgehog11953 It's not too difficult. You get p^4-1 = (p^2+1)(p+1)(p-1). Now we already know that (p+1)(p-1) is divisible by 24, and it's clear that p^2+1 is even.
      Then we observe that p (if p>5) must end in {1, 3, 7, 9 }. So if p ends in 1, we know (p-1) is divisible by 5. If p ends in 3 or 7, then p^2+1 is divisible by 5. If p ends in 9. then (p+1) is divisible by 5.
      In each possible case one of (p^2+1), (p+1), (p-1) is divisible by 5. This shows that p^4-1 has factors 24 x 2 x 5 = 240.

  • @koenth2359
    @koenth2359 Před měsícem

    These twelve integers (and their negatives) are always factors of p^2-1, (but for p

    • @RexxSchneider
      @RexxSchneider Před měsícem

      Why isn't 3 on your list?

    • @koenth2359
      @koenth2359 Před měsícem

      @@RexxSchneiderCorrect, 3, 6, 12, 24, (p^2-1)/24, etc should be too, Overlooked them. So, for high enough prime, we found upto 40 integer divisors of p^2-1. Now it's upto you to find out after which prime no overlap may occur!

  • @wjudee
    @wjudee Před 20 dny

    i found (i’m only listing the prime powers): 2^3, 3. i did it in one min so this is just for future me to see if i got em all

  • @KhanFaisal-z7x
    @KhanFaisal-z7x Před 21 dnem

    Hi, I am from India 🇮🇳. Can you explain how 2,4 and 8 has come as divisors of p^2-1. What is mod 4 meaning in the solution, please make a detailed video on the concepts used to solve the problem.
    Love and regards.

  • @ronnietwelvetoes1876
    @ronnietwelvetoes1876 Před 8 dny +1

    P = 1 it is ovious

  • @riccardofroz
    @riccardofroz Před měsícem +3

    Why can't p be 5? It would be (5-1)(5+1) being equal 24.

    • @hedgehog11953
      @hedgehog11953  Před měsícem +2

      @@riccardofroz I think p=5 is also correct, an oversight I made

    • @jrpulzify4518
      @jrpulzify4518 Před měsícem +2

      It says p is bigger than 6 buddy

    • @riccardofroz
      @riccardofroz Před měsícem +4

      @@jrpulzify4518 I mean, "why the problem does not allow p to be 5", since it maintains the property that the question wants to be proven.

  • @archangecamilien1879
    @archangecamilien1879 Před měsícem +1

    Certainly 3, lol...because p-1, p and p+1 are 3 consecutive integers...

    • @archangecamilien1879
      @archangecamilien1879 Před měsícem

      ...so, p being prime, one of p-1 or p+1 is divisible by 3, and p^2 - 1 = (p+1)(p-1)...it's also divisible by 2, etc...and being divisible by 2, one of them is also divisible by 4, because of p-1, p, p+1, p+2 (you could also do p-2, p-1, p, p+1), one of them is divisible by 4, but since p, p-2 and p+2 will all be odd, lol, p being odd, then the multiple of 4 has to be one of p-1 or p+1...

    • @archangecamilien1879
      @archangecamilien1879 Před měsícem

      ...to determine the remaining factors, lol, one need only look at two examples, lol...like 48=7^2 - 1, and 120 = 11^2 - 1...what factors do they have in common besides 3 and 4 (which I just proved must be factors in common)...hmm...looks like they are both divisible by 8...48 = 8x6=2^4 x 3, and 120 = 2^3 x 5 x 3...hmm...so the factors in common are 8 and 3...does that still work for p=13?...13^2 - 1 = 168, is that divisible by 8?...yes, it is...hmm...

    • @archangecamilien1879
      @archangecamilien1879 Před měsícem

      So I just need to prove that p^2 - 1 is always divisible by 8, that's the only possibility after 3 and 4...

    • @archangecamilien1879
      @archangecamilien1879 Před měsícem

      I'm so stupid, I already proved it...if one of p-1 or p+1 is divisible by 4, that means the other is divisible by 2, Jesus...I just used that same logic to prove that one of them is divisible by 3...I mean...that's pathetic...QED...the factors are 8 and 3...(by implication, of course, all the products of the divisors, like 4, or 2, or 6, etc)...

    • @archangecamilien1879
      @archangecamilien1879 Před měsícem

      ...that was a fairly easy question...

  • @davidbagg9289
    @davidbagg9289 Před měsícem +2

    A desperately pedantic point, but you missed 6 and 12 as solutions. A don may not have faulted you because you did the thinking on 2, 3, and 4, and applied the necessary logic to get to 24.

    • @hedgehog11953
      @hedgehog11953  Před měsícem +2

      @@davidbagg9289 I wasn’t looking for each of the factors I was simply looking for what’s the largest we could do, but yes 6 and 12 are factors, 6 being a more famous result since all primes are either 1 more or less than a multiple of 6 (this would be one way of figuring that out), and 12 would be the symptom of 3 * 4. Then again, you are correct we should have listed the factors we had also worked out!

  • @viesic
    @viesic Před 20 dny

    p=7

  • @jimmoore3767
    @jimmoore3767 Před 27 dny

    point less question