Do you understand this viral very good math movie clip? (Nathan solves math problem X+Y)

  Рет қаралды 691,550

Mathologer

Mathologer

2 жыл бұрын

Recently one of you requested that I explain the math(s) in this clip which recently went viral.
• X+Y (Clip) - Nathan so...
It's a clip taken from the movie X+Y aka A brilliant young mind. The math(s) problem that Nathan, the main character in this movie, is working on in this clip is a simplified version of the first part of a problem that was shortlisted for the 2009 International Mathematical Olympiad. Here is a link to the shortlist.
www.imo-official.org/problems...
The problem in question is problem C1 (the number 50 in the problem has been replace by the number 2 in the clip). This problem was suggested to the makers of the movie by Lee Zhao one of the maths consultants of the movie. This Note that the file I've linked to ere also includes solutions.
This problem was invented by Michael Albert who is a mathematician and computer scientist working at the University of Otago in New Zealand.
en.wikipedia.org/wiki/Michael...
The 4-colour puzzle that I am challenging you with at the end of this video was invented specifically for the movie X+Y by the U.K. mathematician Geoff Smith who was another math consultant for the movie.
en.wikipedia.org/wiki/Geoff_S...)
Geoff Smith also served for many years as the leader of the United Kingdom team at the International Mathematical Olympiad and is the current president of the IMO board. He also appears in a cameo role in the movie. He is sitting next to Nathan's mother in the corridor outside the hall in which the math(s) olympiad is taking place at the end of the movie.
imgur.com/a/cjWLHKi
Here is scan of the fictional IMO questions that the students dealing with at the end of the movie.
imgur.com/a/C1Uxkbd
Actually they adapted the first problem a little bit to make it fit in better with the story
imgur.com/a/9lP4zKe
These questions and their solutions also appear in the book by Geoff Smith, A Mathematical Olympiad Companion UK Mathematics Trust
www.ukmt.org.uk/product/95
Here is my presentation of an animated solution of the 4-color problem on Mathologer 2.
• Solution to the four-c...
Please also check the description of that video for more information and the announcement of the winner(s) of the t-shirt.
Thank you very much to my colleague Norman Do for digging out all this info about the origins of these problems.
Marty and my MMDB (Mathematical Movie Data Base) lives here
www.qedcat.com/moviemath/
Here is the preview of Marty and my book Math goes to the movies on Google books (features a couple chapters)
tinyurl.com/f57wr72v
The music accompanying my Thank you at the end is I Promise by Ian Post (just like for the last video)
Enjoy!
Burkard
P.S.: Here is a great account featuring an ex IMO participant who contributed to the making of X+Y.
ncs6mathssociety.wordpress.co...
His name is Lee Zhou Zhao. He also made a cameo appearance in the movie
imgur.com/a/uFwS8Yv

Пікірлер: 1 900
@Mathologer
@Mathologer 2 жыл бұрын
This video is a bit of an experiment. For quite a while it's been pretty long videos every four or five weeks. I am thinking of every once in a while slipping shorter very accessible videos in between the monsters. What do you think?
@brendawilliams8062
@brendawilliams8062 2 жыл бұрын
👍
@timburdack7366
@timburdack7366 2 жыл бұрын
I would love it, if you would continue with this concept! 🙌
@mulletronuk
@mulletronuk 2 жыл бұрын
Ja bitte!
@dr.doppeldecker3832
@dr.doppeldecker3832 2 жыл бұрын
As long as you don't start to follow the KZbin "shorts" trend everything is fine;)
@CaseRefraction
@CaseRefraction 2 жыл бұрын
Good idea
@claykellogg5372
@claykellogg5372 2 жыл бұрын
Your proof is decent, Mathologer, but Nathan's proof is by descent.
@Mathologer
@Mathologer 2 жыл бұрын
:)
@kunalkaushal6358
@kunalkaushal6358 2 жыл бұрын
😂😏👍
@dwinsemius
@dwinsemius 2 жыл бұрын
I came to vote for Nathan's proof because I identified with the nerdy guy in a movie. But this rationale has much to be treasured.
@TheDavidlloydjones
@TheDavidlloydjones 2 жыл бұрын
Reminding us that the pun is the lowest form of humor -- so once again the trip to zero raises its head.
@BobWhoosta1
@BobWhoosta1 2 жыл бұрын
@@TheDavidlloydjones In the time of Shakespeare this was not so. Verily, forsooth it ne'er be fonder, when forked tongue makes meaning wander.
@JamesMBC
@JamesMBC 2 жыл бұрын
I liked the binnary solution because not only is it "elegant", it also shows intuitively why the number always gets smalller.
@kaltziferYT
@kaltziferYT 2 жыл бұрын
Or bigger if you switch zeros to ones.
@AsheLeclair
@AsheLeclair 2 жыл бұрын
@@kaltziferYT the only moves that can switch a zero to a one also turns a one to zero the number always stays neutral or goes down.
@fanban2926
@fanban2926 Жыл бұрын
@@AsheLeclair he meant switching the definition
@dlafieldChannel
@dlafieldChannel 2 жыл бұрын
7:17 Actually, I would argue that neither you nor the young man in the clip missed out on that oversight, because there was no oversight to miss. The coach never stipulated that all of the cards had to end up being face-up, only that the sequence of moves had to terminate. In other words, the task was simply to show that there is no possible infinitely long sequence of moves, or to put it in yet another way, once you apply a move to any arrangement of cards, it is impossible to apply any combination of moves to the resulting arrangement such that the result is the original arrangement. Therefore, the answer to the question of what to do if only the right most card is face down is to do nothing. Such an arrangement simply represents a terminating condition. Also, about the shorter video, I actually enjoy this format very much and would enjoy more shorter videos.
@crazyou
@crazyou 2 жыл бұрын
Rightly pointed out 👏🏻. This comment need to be pinned 📌
@Platanov
@Platanov 2 жыл бұрын
In a circular arrangement of cards, you could chase a face-down card around and around forever. I wouldn't assume that the set of cards were meant to wrap around if I saw this on a test, but that was still the first thing I thought of when watching the clip :p
@danielyuan9862
@danielyuan9862 2 жыл бұрын
@@Platanov I mean, they did say 20 cards _in a row_ , but I get what you mean.
@Pluveus
@Pluveus 2 жыл бұрын
@@danielyuan9862 20 cards face down in a row on a sphere could be both a straight line and a circular arrangement at the same time.
@michaels4340
@michaels4340 2 жыл бұрын
Is that a basic assumption? I didn't compete in the Math Olympiad, but it doesn't seem self-evident to me. Surely in a formal context, you should at least say something like "In the trivial case where the rightmost card is selected, the game terminates immediately"?
@MattSpaul
@MattSpaul 2 жыл бұрын
Geoff Smith, who wrote the problems for this film (and some of the Olympiad questions) was my lecturer in first year. When the film came out they were extras for our problem sheets.
@Mathologer
@Mathologer 2 жыл бұрын
Check the description of the video :)
@hemantjakhar8497
@hemantjakhar8497 2 жыл бұрын
Please make a video on Monty hall problem....it also comes in movie...
@28aminoacids
@28aminoacids 2 жыл бұрын
Wow, just realized Sir Geoff Smith is my friend on Facebook, amazing person indeed!
@Mathologer
@Mathologer 2 жыл бұрын
@@hemantjakhar8497 Monty hall actually makes an appearance in a couple of different movies :)
@geoffsmith3191
@geoffsmith3191 2 жыл бұрын
@@28aminoacids No knighthood I am afraid
@mister-8658
@mister-8658 2 жыл бұрын
Speaking only for myself I appreciate when you explain the same problem in three or more ways. I feel like I gain a little bit of understanding with each iteration.
@shoam2103
@shoam2103 2 жыл бұрын
Helpful for me too!
@RolandHutchinson
@RolandHutchinson 2 жыл бұрын
Absolutely! Forming the habit of trying to look at things in more than one way is an important part of doing mathematics. It can lead to significant mathematical discoveries. (This is how we got more than 300 proofs of quadratic reciprocity--more than one a year on average since Gauss published the first correct proof.)
@wonderbars36
@wonderbars36 2 жыл бұрын
Agreed. Knowledge seems to solidify better for me by seeing multiple other approaches or solutions along the way and connecting with the one that resonates the most.
@dataandcolours6284
@dataandcolours6284 2 жыл бұрын
@@RolandHutchinson Yes I couldn't agree more. This is why I am not a big fan of the clip in that movie. Notice how he says "We need to look at the cards not as cards, but as numbers". No, we don't. Not necessarily. His solution does! The clip reinforces the sad misconception a problem only have one solution or that one solution is "more correct" than another.
@kiabtoomlauj6249
@kiabtoomlauj6249 2 жыл бұрын
It is usually better, if a problem could be looked at and understood from more than one angle, yes. "Binary," "Binary Digit," etc. refer to very technical mathematical/ computational definitions, so if you're not into things like that, you had to look them up. It's not beyond even a small child's comprehension; but again if you're not into math or computer, you had to look up technical definitions like that. However, to explain that "1" is "bigger than 0" and every time you flip two cards, either 1 or 0 will have to move to the one direction of another... then obviously, a pattern is happening, so since 2 or 8 or a finite set of cards is, well, finite... so infinity isn't going to happen... a "termination" of either all 1s or all 0s will happen... unless there's some random/strict rule saying if "there is a single card left, you can't flip it," etc.
@dermaniac5205
@dermaniac5205 2 жыл бұрын
10:05: To be precise, Nathan did not argue that it has to become zero. He only argued that you can't keep making it smaller without it turning negative. That means it could also terminate at any other positive integer. This also takes care of the border problem, because even if you argue that you can never flip the rightmost card (because there is no card to the right of it to complete the move), then the problem might terminate at 1 or 0. (Edit. just realized there is already a pinned comment saying this)
@HugoDahl
@HugoDahl 2 жыл бұрын
I for one really appreciate this short interlude type video. The smaller, more easily digestible content without needing to establish a large number of foundational knowledge is refreshing!
@reubenkriegel7639
@reubenkriegel7639 2 жыл бұрын
Same, I like these videos too!
@Alex-kn9lu
@Alex-kn9lu 2 жыл бұрын
If you consider the right boundary of the Problem, where you interpreted the Rules to mean that you only turn over one card, then there should turn up an interesting result if the cards are layed out in a circle. That would mean that when turning over the rightmost card, you would also turn over the leftmost card. That way, the sequence would not need to terminate, i think. Because you could shift the Face Up cards infinitely to the left and looping around when they "hit the edge" of the deck.
@Mathologer
@Mathologer 2 жыл бұрын
Exactly, the pacman version of the game does not have to terminate :)
@mikefochtman7164
@mikefochtman7164 2 жыл бұрын
It MAY terminate if you choose wisely. But it COULD go on forever if you choose poorly. :)
@LudwigBrieditis
@LudwigBrieditis 2 жыл бұрын
Should it not depend on the initial number of face down cards being odd or even? Every move flips two cards, either 10->01 or 11->00. Thus keeping the same number of face up cards or increasing it by two. If there is a single face down card remaining the only possible flip will never lead to a state where all cards are face up.
@josephmathes
@josephmathes 2 жыл бұрын
Ludwig, as long as the number of cards in a circle is greater than two, it still doesn't have to terminate. After you flip your first card, only two are face up, right next to each other. After that, you can flip the face down cars immediately to the left of those two, leaving you with two cards face up separated by a gap. Flip the card in the gap, and you're back to step one, so you can repeat this forever
@josephmathes
@josephmathes 2 жыл бұрын
I think your argument is that with an odd number of starting cards, the process can never terminate. The earlier conversation was about whether the process must necessarily terminate.
@canaDavid1
@canaDavid1 2 жыл бұрын
Two 3b1b AND a Mathologer upload? I am almost in heaven...
@MrParry1976
@MrParry1976 2 жыл бұрын
let's start bugging numberphile for a video then
@shoam2103
@shoam2103 2 жыл бұрын
I am overwhelmed!
@YassFuentes
@YassFuentes 2 жыл бұрын
Indeed! And a Veritasium one also.
@PecPur
@PecPur 2 жыл бұрын
mee tooo!
@Roarshark12
@Roarshark12 2 жыл бұрын
And BlackPenRedPen, and Dr Peyam
@AaronJarecki
@AaronJarecki 2 жыл бұрын
I love your longer format videos. I'll also be very happy to watch this smaller interludes. This was really fun.
@lemonadecitrus4764
@lemonadecitrus4764 2 жыл бұрын
Very nice! It will spice up my days with interlude like this. This is the best KZbin math channel I've been watching so far and I don't ask for more!!!
@22yhjjjj
@22yhjjjj 2 жыл бұрын
Completely understood the math behind it, but I would never be able to come up with that binary analogy on the spot if you asked me to do the same.
@ValleysOfRain
@ValleysOfRain 2 жыл бұрын
I suppose it depends on your familiarity with switching to different bases. Most mathematics today is taught in base 10 - if you aren't encouraged to explore other bases, you'll sit with what's comfortable. My first attempt at solving the problem was using a small scale sample and noting that the left hand-most card being flipped would always result in a cascade of flips to that "end" state, resulting in all possible choices converging on a deck fully flipped, regardless of size since the solution is scalable. The Binary solution is very elegant, but since I never really work with anything beyond base 10, 12 and 60 (or 360, I guess), it wouldn't have occurred to me.
@milanstevic8424
@milanstevic8424 2 жыл бұрын
that's interesting because although I kind of suck at conventional math I'm a proficient computer engineer and problem solver, and binary reasoning is basically my immediate intuition about it. Nathan's solution literally felt like home, which wasn't what I expected from a math video. I watch all kinds of math channels to train myself into better intuition for the abstract ideas behind it, but I've ultimately discovered that I'm actually excellent at math, but I struggle with the mindset that revels in its godforsaken notation.
@m4riel
@m4riel 2 жыл бұрын
I think it's a matter of exploration and the movie does a very bad job of portraying it for the sake of the drama. When I first saw the problem, I started going through simpler cases, such as 2 cards, three cards, up to five. I was too lazy to pick up pencil an paper, or to type it in my pc so I just used my hands do describe the system, palm up for face up and vice-versa. I eventually saw the similarities between this and binary counting, so I used binary numbers just so I could process the information better in my mind. Then I came to a similar solution, in which my sequence was strictly increasing, but had an upper bound (the largest number with 20 bits is 2^20-1). So, while I could never just close my eyes for 10 seconds and come up with it on the spot, my laziness led me to find better ways to represent the sequences and the rest came in naturally.
@Anankin12
@Anankin12 2 жыл бұрын
Well I think you would, just not so quickly
@circumsizedmind
@circumsizedmind 2 жыл бұрын
Even though I tend to switch to binary often in this case I would make proof for 1, 2 cards and then use induction
@hallfiry
@hallfiry 2 жыл бұрын
A fun proof for the 4x4 case: make the colors prime numbers 2, 3, 5 and 7. The product of all numbers in the grid is (2*3*5*7)^4. Then divide by the numbers in the 2x2 squares between the corners (forming a cross that overcounts the middle). This gives 1. Since we divided by the middle 2x2 square one time too much, we can multiply by the middle square again to compensate, which gives 2*3*5*7. The number we are left with is the product of the numbers in the 4x4 grid, when you take away the middle cross, i.e. the corners. Since we got 2*3*5*7 for that number, the corners must be 2, 3, 5 and 7.
@BryanLu0
@BryanLu0 2 жыл бұрын
This is how I did it in my comment. You can generalize this to work for any 4n x 4n grid. You just need to crunch some numbers
@hallfiry
@hallfiry 2 жыл бұрын
@@BryanLu0 As you noted in another comment, my proof is essentially a number-theoretical phrasing of a set-theory approach. Tbh, I even had a venn-diagram in my head while writing it.
@dudelookatree
@dudelookatree 2 жыл бұрын
that's really pretty
@joshyman221
@joshyman221 2 жыл бұрын
Wow we thought of the exact same proof!!
@baerlauchstal
@baerlauchstal 2 жыл бұрын
Very elegant!
@ManishSingh-jz2hx
@ManishSingh-jz2hx 2 жыл бұрын
Absolutely loved this small video concept!
@qwerty_ytrewq4452
@qwerty_ytrewq4452 2 жыл бұрын
For the grid problem, sum up every the possible 2*2 suqare exactly once. Notice that the total amount of times red, green, yellow, purple appeared MUST BE EQUAL. The corner squares are counted once, the edge suqares are counted twice (it is calculated in 2 of the 2*2 suqare), and the squares in the middle are calculated 4 times(it is in 4 of the 2*2 squares). Since the total amount of 2*2 squares is ODD, every color must appear an ODD number of times. Ans since only the corner squares are counted an ODD number of times, each color MUST appear in the corner square. QED. By the same argument, we can show that every color appears on the corner of the 4n*4n*4n cube, if it is colored with 8 colors such that every 2*2*2 cube consist of 8 distinct colors. We can generalize this further to m dimentional cube with 4n as its sides.
@mathcat4
@mathcat4 10 ай бұрын
bit late, but wonderful proof!
@andreathecat100
@andreathecat100 7 ай бұрын
Very elegant proof! I treasure it! Thanks
@johnchessant3012
@johnchessant3012 2 жыл бұрын
Nathan's solution uses weights 2^19, 2^18, ..., 2^0 and argues that the total score is strictly decreasing. But we could also use weights 20, 19, ..., 1 with the same argument, and this shows the maximum number of flips is bounded by the maximum total score, 20+19+...+1 = 210; and this bound is achievable in a natural way.
@eggegg9026
@eggegg9026 2 жыл бұрын
Very nice alternative to the induction!
@KirkWaiblinger
@KirkWaiblinger 2 жыл бұрын
One nit: the binary argument demonstrates that the sequence of moves must terminate, however, there is an additional step required to say that it terminates specifically in 00000 == all cards face up. Consider for example if one were in the state 00001, and we know every move decreases the value, but perhaps they decrease it by 10 or something. We'd overshoot 0 and be stuck at 00001. It's important to call out that as long as there is a 1 present, there always exists a legal move that does not overshoot 0
@jorn-jorenjorenson5028
@jorn-jorenjorenson5028 2 жыл бұрын
Yes, I was wondering if I maybe just don't get it, but I think this part of the proof is missing in the movie. I was surprised it wasn't adressed by Burkhard. Or is it too obvious?
@jorn-jorenjorenson5028
@jorn-jorenjorenson5028 2 жыл бұрын
Someone in a comment below pointed out, that in the movie it was not said, all cards should be face up in the end. Seems like, this rule was added by Burkhard. So the proof in the movie would be complete.
@KirkWaiblinger
@KirkWaiblinger 2 жыл бұрын
@@jorn-jorenjorenson5028 right, that condition was introduced by mathologer (though it will always be true). But since it was introduced i would bring it into his explanation
@VaradMahashabde
@VaradMahashabde 2 жыл бұрын
@@jorn-jorenjorenson5028 AFAIR the rule he added to cover all cases was that when you flip over the right most card, you only turn over that card and nothing else. This by itself addresses the 0000 0001 problem while the fact that all cards end up face up is the solution we derive.
@JalebJay
@JalebJay 2 жыл бұрын
It bothered me a bit about how the odd case was not represented in the question. Calculations are similar, but it does show up unless you allow changing exclusively the last card.
@gameswoodmore5950
@gameswoodmore5950 2 жыл бұрын
I always understood the rules in such a way, that the rightmost card can't be turned. This also would mean that Nathan did not forget that case, since he never says that the series termiates at 0, 0 is simply a lower bound which means it must terminate at some point, but does not state when
@alexandercoston1963
@alexandercoston1963 2 жыл бұрын
Thank you for these videos, as a person who enjoys the stretching of my brain I appreciate the workout. You asked if one format was agreeable, short or long or both, i just want to point out that IF you and your staff are enjoying what you are doing, THEN I will likely watch like and comment. You decide budday, I like what you are doing, period
@JaquesCastello
@JaquesCastello 2 жыл бұрын
You need to think of the colors not as colors but as numbers :) You can just assign each color the numbers 1, 2, 4, 8. We need to show that the corners add up to 15. But that’s easy, the sum of the corners is the sum of the 4x4 grid minus the sum of the center cross. The sum of the 4x4 must be 60 because it’s the sum of the 4 corner 2x2 squares, which add up 15 each because of the distinct coloring. The sum of the cross is trickier but can be done by adding the 4 edge 2x2 squares and subtracting the center 2x2 (to remove the double counting). Since each of the 2x2’s adds to 15 the cross is 45 (4*15-15). Finally, subtract the cross from the 4x4 square and we have that the sum of the corners is 60 - 45 = 15. Since there’s only one way to add 1, 2, 4 and 8 that gets us to 15 (because of the base 2 numeral system) all corner squares must have distinct coloring. In fact that must be true for any 2m by 2n grid (m and n being positive integers), not only squares or multiples of 4: for any of such grids you can obtain the corner pieces by a linear combination of 2 by 2 squares. Just add the whole, subtract the vertical 2*(m-1) by 2*n center strip, subtract the horizontal 2*m by 2*(n-1) middle strip and add back the 2*(m-1) by 2*(n-1) core. Each of these can individually be constructed solely by stacking 2 by 2 squares (elementary to show). Hence, since each 2 by 2 block is a multiple of 15, so is the linear combination of them, which, finally, proves the sum of the corners MUST be a multiple of 15 - and since there’s only one way to get to a multiple of 15 by adding 4 numbers out of {1,2,4,8} the colors of the corners MUST be distinct in ANY 2m by 2n grid constructed by those rules.
@locutusdborg126
@locutusdborg126 2 жыл бұрын
Jesus, you are really smart.
@ryanburkett949
@ryanburkett949 Жыл бұрын
This is simple and genius!
@78rera
@78rera Жыл бұрын
I think he just want tell to their lecture that he watched Mr. Bean too. RGB as a number... Wkwkwk.. What a math jokes
@ZedaZ80
@ZedaZ80 2 жыл бұрын
I really loved the binary representation, though my gut instinct would have been to invert the bits (starting state is 0). The proof would have still worked since we have a maximum upper bound, but having it descending is easier :P The other reason that I like the binary proof is that you don't have to know what happens in that right-most edge case-- even if you can't flip it, the proof still works. It doesn't reach 0, but it can't get smaller, therefore no moves can be made and therefore it terminates
@EwanMarshall
@EwanMarshall 2 жыл бұрын
Yep, also one can consider endianess, that the top bit is the right hand most bit rather than lefthand most bit (this legitimately is something we deal with in computers). The proof still works as long as we don't have wraparound carries... But this is probably something one should consider in the proof.
@ElZedLoL
@ElZedLoL 2 жыл бұрын
But true. 20 cards aka 20 powers (0 through 19) of 2 can add up to a maximum 2^20 - 1 and when strictly increasing the number with every move you must terminate eventually. I like going up cuz a 1 representing a face up feels more natural. But you may also reverse the problem to face up to face down to achieve that.. Whatever ^^
@klausstock8020
@klausstock8020 2 жыл бұрын
Same here - I got very confused at first because I also immediately assigned 0 (zero) to the face-down state. And was bewildered when the movie clip showed the "wrong" binary digits, and a strictly monotonic decreasing sequence instead of a strictly monotonic increasing one. I guess I'm getting too old for this.
@PC_Simo
@PC_Simo Жыл бұрын
I definitely agree 👌🏻.
@frogmanant
@frogmanant 2 жыл бұрын
I really enjoyed this short format, please do more.👍
@captainsnake8515
@captainsnake8515 2 жыл бұрын
I remember watching this video when I was younger, and it partially inspired me to get into math competitions. Glad more people will be able to see Nathan’s beautiful solution!
@Mathologer
@Mathologer 2 жыл бұрын
That's great. I only watched this movie for the first time last week :)
@labibbidabibbadum
@labibbidabibbadum 2 жыл бұрын
Definitely love the short form video option. I have about 50 of your videos in a list to watch later, but I rarely have time for a 45 minute video. (I'm slowly getting through the "mystery of the sums" one... lovely stuff).
@morkovija
@morkovija 2 жыл бұрын
i feel your pain friend!=)
@tastygold
@tastygold 2 жыл бұрын
Recently stumbled back across mathologer videos, finding them so relaxing and interesting at the same time :) keep it up❤️
@dallen521
@dallen521 2 жыл бұрын
For me Nathan’s explanation, explained by you, is the best.
@rusclassic1
@rusclassic1 2 жыл бұрын
For the last puzzle: assign values 1,2,4,-7 to the four colours respectively. Now the sum in any 2n X 2m rectangle must be zero (can split in distinct 2x2). Now if we look at the sum of values of square without corners , it's a sum of two rectangles 2N - 2 X 2N minus inner square 2N - 2 X 2N -2 (due to double counting), this sum is zero, and the sum of entire square is zero. Which means remaining 4 corners sum up to zero which can only happen if they are all distinct values from the set {1, 2, 4, -7} EDIT: interestingly this problem easily generalizes to higher dimension as well, say cubes then will have 8 distinct colours
@koenth2359
@koenth2359 11 ай бұрын
Very nice! It is maybe even more easily seen by the fact that the total sum remains unchanged when we remove any two adjacent rows or columns. This can be done until only the original corners remain. So your method does not only work for squares with side divisible by 4, but for any even-sized rectangle.
@BloobleBonker
@BloobleBonker 2 жыл бұрын
I always enjoy your lovely stuff. Retired physics/maths teacher.
@pion137
@pion137 2 жыл бұрын
I enjoyed this despite it's simplicity at a glance, your explanations are always insightful and provide different and novel perspectives on approaching problems. Please continue with these interlude videos and keep up the great work!
@Mathologer
@Mathologer 2 жыл бұрын
Given the overall positive response I'll definitely make more of these videos in the future.
@formulanews7533
@formulanews7533 2 жыл бұрын
even though you explained your 1st method which was really good , the proof that nathan writes is like tough to understand at the first glance, your graphical representation helped me lot, i am really glad you made this video. Thanks
@PC_Simo
@PC_Simo 10 ай бұрын
I like these short, fun interludes, every now and again 😊.
@ignatiuszaar1349
@ignatiuszaar1349 2 жыл бұрын
Given that you can do the operation on the final card without having to turn a card to the right (since it doesn't exist). The largest possible number of turns to terminate the sequence is equal to [n*(n+1)]/2. edit: If you cannot perform the operation on the last card then the most turns possible to terminate the sequence is given by x=(n-1)*n/2 though the sequence may then terminate with one card left.
@Mathologer
@Mathologer 2 жыл бұрын
Very good, you crossed all the t's and dotted all the i's there. Now on to the final puzzle. That one is doable but is much more of a challenge I think :)
@swerasnym
@swerasnym 2 жыл бұрын
Regarding what happens with the right most card, note that as long as we does not flip the right most card the following things hold: 1) We start with an even number (0) of cards face up, and 2) The two legal moves either keeps the number of face up cards the same, or adds two face up cards. Thus the number of face up cards stays even. Thus by induction we will always have an even number of cards face up. Thus at every step we have an even number the right most card will end up flipped when we terminate without picking it as the leftmost card. Thus the only way for the game to terminate without all cards face up is if we started with an odd number of cards and disallowed picking the right most card.
@rmsgrey
@rmsgrey 2 жыл бұрын
And for a proof: If you look at the available moves, you either keep the same number of face-up cards, but move one of them a step to the left, or you create an additional pair of face-up cards, or, if it's legal, you create a lone face-up card on the far right (note the implied model here treating face-down cards as spaces or holes, and face-up cards as objects). Intuitively, it's obvious that creating face-up cards as far right as possible gives more moves, from which the triangular numbers follow - if you can create just the one face-up card on the far right, that's the same as moving it into the sequence from the right, so the first face-up card can be moved n times, the next, n-1, etc. If they have to enter in pairs, then that's n/2 creation/entrance moves, each of which has the effect of 3 moves from the single-entry version, reducing the number of possible moves by 2 per entry or 2*n/2=n moves total, reducing the total number of moves from the n'th triangular number to the (n-1)'th. Filling in that intuitively obvious bit: number the positions from 1 at the far right to n at the far left. if you create a pair of face-up cards at k+1 and k, with k>1 (so not at the far right) then the card at k-1 is either face up or face down. If it's face up, then you're going from ...DDU... to ...UUU... in just one move, when you could instead go DDU -> DUD -> UDD -> UUU taking three moves and moving where the pair of face up cards gets created one space to the right. If, instead, the card at k-1 is face down, then you're taking one move to go DDD -> UUD, when you could instead go DDD -> DUU -> UDU -> UUD, again taking three moves instead of one, and moving the creation one space to the right. So, if a longest possible sequence of moves were to include turning a pair of cards not at the far right face up as a single move, you could lengthen the sequence by replacing that move with three moves, without affecting the rest of the sequence. That contradicts the assumption that you started with a longest possible sequence, so any longest possible sequence must have all creation of face-up cards happen as far to the right as possible - either card 1 or cards 1 and 2 depending on the rules for that special case.
@rmsgrey
@rmsgrey 2 жыл бұрын
@@chrisamadei2565 One has n+1; the other has n-1, making the two equations differ by a total of n.
@chrisamadei2565
@chrisamadei2565 2 жыл бұрын
@@rmsgrey sorry, Maybe I should put my glasses on before posting
@cmilkau
@cmilkau 2 жыл бұрын
Standard proof without cleverness: because the number of configurations is finite, any nonterminating sequence must return to a previous configuration. Once you turn two cards face up the previous configuration is unreachable. So you can only return to a previous configuration by a sequence of turning one card face up and one face down. However, the one you turn face down must always be to the right of the one you turn face up. There must be at least one "leftmost" move because the line of cards ends on the left. So the card turned face up in this move is never turned face down again, hence such a sequence cannot return to the previous configuration either. #
@1vader
@1vader 2 жыл бұрын
Nice proof but I don't think it requires "no cleverness". It's essentially the same argument as the first proof, just with a different argument for the 2 cards face up.
@krisrhodes5180
@krisrhodes5180 2 жыл бұрын
How about an inductive proof. First, prove that if a sequence of cards of size N terminates no matter how the cards started out, then a sequence of cards size N+1 also terminates no matter how the cards started out. Then prove that a sequence of cards size 1 terminates no matter how the card('s') started out. From these, a forteriori any sequence of all face-down cards must terminate. The 1-case is trivial. As to the induction step, suppose a sequence of N cards terminates (we'll take 'no matter how the cards started out' as understood from here). Now add an additional card to the left. You now have the leftmost card plus the original sequence. The leftmost card _must_ be turned over (if it started facedown) at some point, since the original sequence terminates meaning at some point the left-most card is the only one you can choose. (If leftmost card started face up, then trivially this N+1 sequence terminates because the N sequence does.) Once you do turn over the leftmost card, it's discharged--it can never be turned over again by the rules of the game, and hence all you're now dealing with is a sequence of N cards, which by the inductive hypothesis terminates. QED I think?
@bramkivenko9912
@bramkivenko9912 2 жыл бұрын
Your solution is a unidirectional finite graph. You need to show its finite, which is trivial, but to prove that it is unidirectional requires a complete explanation of state transitions, which is effectively what Mathologer describes anyway. The proof is that you cannot visit a node you already visited because you either have more up cards than before or an up is now in a further left position than it was before. In either circumstance you cannot visit the same node twice. But I guess it's not as compact a solution.
@cmilkau
@cmilkau 2 жыл бұрын
@@1vader It's standard. It requires no cleverness IF you are trained in these kind of things. I basically just wrote it down without much thought. I couldn't have done this with school level math training at all.
@cmilkau
@cmilkau 2 жыл бұрын
@@bramkivenko9912 You are replying to Kris I assume?
@Corwin256
@Corwin256 2 жыл бұрын
I loved this video and would definitely watch more. Your channel is one of my favourites, but sometimes I do kind of wander off for a bit when I don't have time for the long videos, so videos like this would make it easier to keep with it when I'm pressed for time and attention. That said, I also love the longer ones when I have the time, so I wouldn't want to see and end to those.
@pabloagsutinnavavieyra2308
@pabloagsutinnavavieyra2308 2 жыл бұрын
Loooved this interlude. It was simple but make turn on my interior math spark. Hope this really catches on and have more small videos in between the cool ones!
@utkarshpriyam9755
@utkarshpriyam9755 2 жыл бұрын
For the last problem: Define a cell as a single colored square from the original diagram. A 2x2 square is simply 4 adjacent cells in a 2x2 formation. A grid is a rectangular set of cells, defined as having dimensions rxc or r*c, where r is the number of rows and c is the number of columns in the grid. Consider a (2m)*(2n) (row*col) grid with the special coloring. Call the grid G. 1) We can deconstruct G into m*n 2x2 squares which don't overlap, showing that G has m*n cells of each color. 2) Consider every row of G from the second to second-last. This is a (2m-2)*(2n) grid, which we can deconstruct into (m-1)*n non-overlapping 2x2 squares. Let this grid be R. Do the same with the columns to get the 2m*(2n-2) grid C consisting of m*(n-1) non-overlapping 2x2 squares. 3) R and C clearly have an overlap -- call the (2m-2)*(2n-2) overlap grid O. O consists of (m-1)*(n-1) non-overlapping 2x2 squares. 4) R contains (m-1)*n cells of each color, C contains m*(n-1) cells of each color, and O contains (m-1)*(n-1) cells of each color. All of these lead directly from #2/#3, where we deconstruct the grids into non-overlapping 2x2 squares. 5) Now, grid M = G - R - C + O contains only the 4 corners of G. Counting the number of individual cells of each color, we get m*n - (m-1)*n - m*(n-1) + (m-1)*(n-1) = [m - (m-1)]*[n - (n-1)] = 1 * 1 = 1 cell of each color left in M. Therefore, we know that there must be exactly 1 cell of each color in the final set M, which itself is also just the set of the 4 corners of G. --------------------------------------------------------------------------- BONUS: The same argument works "out of the box" for literally any (am)*(bn) grid with a*b colors, as long as the cells you want to prove have unique colors all form an exploded a*b grid and as long as the cells are "spaced nicely" (ie the # of rows (or columns) between any 2 "adjacent" cells is a multiple of a (or b)). ** The original problem is just a special case: a=b=2 and the cells are separated by 2m-2 and 2n-2 cells vertically and horizontally, respectively. An outline of the proof for a=b=3, m=n=3, and the target cells (labeled 1) are evenly spaced around the 9x9 grid: 122212221 344434443 344434443 344434443 122212221 344434443 344434443 344434443 122212221 Note: there are 3*3 = 9 unique colors in this grid G consists of cells numbered 1, 2, 3, and 4 -- 1 set of 9x9 grid -- 9 cells of each color R consists of cells numbered 3 and 4 -- 2 sets of 3x9 grid -- 6 cells of each color C consists of cells numbered 2 and 4 -- 2 sets of 9x3 grid -- 6 cells of each color O consists of cells numbered 4 -- 4 sets of 3x3 grid -- 4 cells of each color M = G - R - C + O = (1, 2, 3, 4) - (3, 4) - (2, 4) + (4) = (1) --> M is the set of all cells numbered 1 TOTAL # OF CELLS PER COLOR: 9 - 6 - 6 + 4 = 1 cell of each color
@harsh8899
@harsh8899 2 жыл бұрын
Woah
@gmnmd
@gmnmd Жыл бұрын
Beautiful! For anyone interested in learning more about this kind of technique, check out Set Equivalence Theory in sudoku.
@NoNameAtAll2
@NoNameAtAll2 2 жыл бұрын
I solved it via expansion to "all starting states eventually result in the final one" + recursion: 1 card is trivial when you have N cards proved and you have N+1: -turning left-most one will never unflip it, so it becomes a N-card problem that is proven -if you don't turn left card, you can only flip in the right N cards, so due to the N-card problem you will eventually run out of moves there, so you have to flip left-most card, thus becoming N-card proven problem, as per previous point This also gives (rough, I think?) upper bound on max amount of moves being: A(N+1)=A(N)+1+A(N), A(1)=1 (i.e. A(N) = 2**(N+1) - 1)
@NoNameAtAll2
@NoNameAtAll2 2 жыл бұрын
saying "expanding problem to all states terminating in final state" is just a way to skip proving that all states are achievable from starting one... but actually such proof is simple same idea - recursion by taking away left-most card: - if left-most card is unflipped, you don't do anything and continue to right N cards as per previous induction step - if it is flipped, algorithm starts with flipping right-most card, then continuously flipping one-by-one to the left (thus "moving" the flipped card leftwards) until you flip the N+1th/left-most card - then continue getting right-most N cards as per induction step
@felipe970421
@felipe970421 2 жыл бұрын
This was my same though when I first watched the clip.
@minirop
@minirop 2 жыл бұрын
-Or you count in binary and you have your answer. 2^n - 1-
@felipe970421
@felipe970421 2 жыл бұрын
@@minirop Nope, not every game state admits a move that subtracts one
@NoNameAtAll2
@NoNameAtAll2 2 жыл бұрын
@@minirop how do you go from e.g. 1000 to 0111 in one move?
@iwersonsch5131
@iwersonsch5131 2 жыл бұрын
The statement in the clip was only that there eventually stops being a possible move, not that all cards are face-up. Also, my interpretation was that if following the instructions on the rightmost card is not possible, then the rightmost card is not an option. Doesn't really mess with the validity of the statement as long as the number of cards is even.
@mashtonish
@mashtonish 2 жыл бұрын
The clip surely has olympiad level quality in playing on the audience's emotions with the visuals, ambience, and timing in delivery of lines.
@BTheBlindRef
@BTheBlindRef 2 жыл бұрын
hardly. It TRIED to do that, but it was laughably bad at it. Every single "worried glance" or "dramatic musical sting" made me say "wait, THAT was supposed to be dramatic? WHY?"
@victorribera5796
@victorribera5796 2 жыл бұрын
Also, the point of leaving the last card only down, if you consider either that one card only is flip, or that no move is possible it is terminated.
@davidgustavsson4000
@davidgustavsson4000 2 жыл бұрын
Exactly. This is why I prefer Nathan's proof, it doesn't assume anything not mentioned in the statement of the problem.
@teeesen
@teeesen 2 жыл бұрын
Burkard’s proof is still fine; it shows that eventually you reach a state where the leftmost 19 cards are face up, at which point no move is possible.
@ilonachan
@ilonachan 2 жыл бұрын
The final puzzle can be solved easily using SET theory. This was initially discovered in the Sudoku world, and the idea has been widely publicized thanks to the amazing youtube channel Cracking the Cryptic. Using this technique it is even easy to show that the corners of any 2m*2n grid have to be different colored! Basically it's about keeping track of two sets of cells, which contain the same amount of numbers/colors of each value. For example, taking the cells A1,A2,B1,B2 and the cells C3,C4,D3,D4 (if you allow me to denote rows by letters and columns by numbers). These are each 2x2 squares, so by definition they must both contain one of each color, making them equal under SET. I'll call these subgrids A1~B2 and C3~D4 respectively. SET now poses that if these two regions overlap in a cell, this cell can be removed from both groups without changing the equality condition. For example, if the overlapping cell is red, and that cell is removed from both sets, the content of both sets changed by an equal amount of red cells, making them still equal. It's also possible to keep track of parts of these sets outside of the grid, which I will do in the following. Consider the first two rows, ie the subgrid A1~B4. This can be split into the 2x2 regions A1~B2 and A3~B4, which means our first set X=A1~B4 contains two times the whole set of red, yellow, green and blue (I'll call that rygb). Now we consider A2~B3, another 2x2 region overlapping X, and we'll also keep track of a second rygb in our head. Let's call this second set Y=A2~B3 + rygb. But now, the cells A2,A3,B2,B3 appear in both sets, so they cancel out. We get X'=A1+A4+B1+B4 and Y'=rygb. But since SET equality was preserved, we know that X' still contains the remaining set of all the colors rygb contained in Y'. Four cells containing four colors must all be different, QED. This was all for the simpler case of a 2x4 grid. But with a bit of clever adding/subtracting of 2x2 regions, it is almost trivial to expand this to any 2m*2n grid size.
@shantanunene4389
@shantanunene4389 2 жыл бұрын
That's pretty nice
@BryanLu0
@BryanLu0 2 жыл бұрын
Nice, but you didn't really prove the general case
@AvatarBowler
@AvatarBowler 2 жыл бұрын
Ayyyy, another CTC viewer. 😁
@Ockerlord
@Ockerlord 2 жыл бұрын
@@BryanLu0 general case 2mx2n: rows and columns are numbered 0,1,2 ... definitions A := (0;1)~(m;n-1) B := (1;0)~(m-1;n) C := (1;1)~(m-1;n-1) D := (0;0)~(m;n) Corners Area = D - A + C - B Since all the areas A,B,C,D are rectangles with even lenght it is trivial that they each contain the same number of each color. adding and subtracting these Areas from each other doesnt change that fact, so the corners must contain the same number of each color.
@rmsgrey
@rmsgrey 2 жыл бұрын
@@BryanLu0 General proof: The OP shows a base case: that the four corners of a 2x4 (and by symmetry 4x2) rectangle must be the four different colours. Induction: for a 2mx2n rectangle, assume it's been shown that the four corners of any strictly smaller rectangle of the same type (ie 2jx2k whenever j
@TaranovskiAlex
@TaranovskiAlex 2 жыл бұрын
The solution to the square problem is kind of very similar to the interview question "prove that you can't assemble a chess board from 2*1 elements if the resulting board is missing 2 opposite corners" - suppose you have a square 2*2, square has all different colors. The natural way to expand such field while preserving the invariant - is to "copy" the "next after neighbor" row/column. Thus you will end up with the situation when the invariant of "4 different colors in the square 2*2" is preserved for every 2*2 square, as well as the corners of your grid. Given your definition of the problem - the corners will always be different for any 2n grids - or something like that. 2*2, 2*4, 4*4, 4*6, 6*6, 6*8, 8*8 etc
@rudrasingh2732
@rudrasingh2732 2 жыл бұрын
This experiment results in positive, mathologer! This was the most fun mathematics video I had watched on KZbin in a while 😀
@QuakeJoz
@QuakeJoz 2 жыл бұрын
Solution to the final problem: We have a 2Nx2N grid. Since the sides are even, we can split the whole grid into distinct 2x2 blocks, and since each block has one of each colour, the total number of blocks with a given colour is A=N^2. Now consider the grid without the top and bottom row - since this still has even dimensions, we can also split into 2x2 blocks again, this time there B=N*(N-1) of each color in this section. The same applies to columns. If we remove both the outer rows and columns, leaving the square in the middle, we still have an even dimension on each side, so again we can count that there are C=(N-1)^2 squares of each color. We can now calculate the number of squares with a given color in the set of 4 corner squares like so: First take the whole grid, subtract the count in the inner rows & columns, and add back in the central square - this give A-2B+C as the final count. You can expand the algebra and see this is 1, or just note that the same formula gives the count of each colour, so there must be 1 of each. BTW this proof works for 2Nx2N not 4Nx4N, maybe there's a mistake, or maybe there's just a stronger result
@eggegg9026
@eggegg9026 2 жыл бұрын
Yeah I think Mathologer wanted to say 2n × 2m for all n,m≥1.
@kaloan999
@kaloan999 2 жыл бұрын
Great elementary proof right there!
@davidhicks8290
@davidhicks8290 2 жыл бұрын
Damn, you beat me. There is a prettier proof for mathologers stated question but yours is stronger. Love the proof too! I would state that you add back the inside square because it gets double counted. Took me a minute to figure out why you did that.
@rfMarinheiro
@rfMarinheiro 2 жыл бұрын
That is a pretty elegant solution! My first instinct was to apply induction on the number of cards. Base case: game with two cards always ends (easy to show all cases). Induction step: if a game with n cards ends, a game with n+1 cards should also end. The proof relies on the fact that once the leftmost card is moved it will be stuck as face up until the end. If that card is never touched then all you have is a n card game that finishes according to our hypothesis. When you touch it you now have a n card game that should also finish because of the hypothesis. This works but is much more verbose :D
@TheEternalVortex42
@TheEternalVortex42 2 жыл бұрын
One problem with using induction is that after some amount of moves you have a state that differs from the starting one. So you need a stronger argument that given *any* starting state the conclusion holds. If you do that then you can say that either a) the leftmost card gets picked and then use induction on the remaining n cards at that point, *or* the leftmost card never gets picked and then you can use induction on the remaining n cards as well (however this latter case doesn't work if you want to show it ends in the all face up arrangement).
@stevecarter8810
@stevecarter8810 2 жыл бұрын
This is the intuitive approach that my wife and I both arrived at. Our formalisation skills failed us at that point.
@annatait6577
@annatait6577 2 жыл бұрын
It fits the format of a proof,.
@cahdoge
@cahdoge 2 жыл бұрын
For the Bonus question I also have nice solution. You can also think of it as building a 2D crystal. Though the 2x2 grid is the smallest posibble structure, the 4x4 cell is basically your unit cell describing your crystal in full. And sice you are not allowed to rotate only to translate your unit cell all the properties the grid has are being conserved, including the outer most corners always being the same colours.
@tassie7325
@tassie7325 2 жыл бұрын
I had seen a clip of this part of the film a few times, and by far the most common complaint was that it is impossible to hear what is being said because the music is to loud (directors putting art over content). Fortunately, your clip resolves this problem - thank you.
@tpog1
@tpog1 2 жыл бұрын
To answer the question in the title: Yes, I did understand the problem (which I haven't seen before) and the still image you showed before the clip immediately gave me the solution when I heard the explanation of the problem. I still very much enjoyed the entire video, like I always do ;). Edit: Answer to the question for maximum number of step as a comment to prevent spoilers!
@Mathologer
@Mathologer 2 жыл бұрын
The video is meant to be super accessible, but at the same time a treat for all my cluey regulars. And for the really hardcore ones that last 4-color puzzle should be a real challenge :)
@tpog1
@tpog1 2 жыл бұрын
Answer to the maximum number of steps: n(n+1)/2, so 45 in the case of n=10.
@PeterBarnes2
@PeterBarnes2 2 жыл бұрын
I've got a proof for the last problem distinct from ilonachan's very elegant sudoku-style proof, inasfar as grid-puzzle proofs can be distinct, giving the same fully general 2n*2m result. I) Any solution must have an "Alternating Orientation" (equivalent solution under reflection over a diagonal or 90° rotation) where each row alternates between two colors, and the sequence of rows alternates between two such pairs of colors. II) a. For an even number of columns, an alternating orientation of a solution must have different colors for the first and last columns in each row. b. For an even number of rows, an alternating orientation trivially has different colors between the first and last rows. c. The colors in each of the four corners of an alternating orientation must be different. III) Reflection along the diagonal or rotation by 90° preserves both the property of being a solution, and the span of the colors in the corners. (Trivial) Proof of I: Ia) If the first row alternated over a pair, the second row must contain the complement pair; and that row must therefore alternate, as, trivially, two adjacent cells cannot share a color, and there are only two colors in the row. Inductively, each successive row must also contain the complement pair to the previous row, and must itself alternate. This satisfies the definition of an alternating orientation. Suppose there is a solution which does not have an alternating orientation. By Ia, the first row does not alternate over a pair. Without loss of generality, it can be shown that the following configurations remain: i. abcd[...] ii. abcb[...] iii. abac[...] Where [...] represents any sequence of successive terms, for grids of more than 4 columns. We shall first assume configurations i and ii, together. Both configuration i and ii start with the same three colors, and we may say they both satisfy of configuration 'abcx[...],' where 'x' is undefined. As no steps of the remaining steps do not depend on cells in columns 3 or later for this orientation, configurations will be denoted with only the first three color values. Cell (2, 2) is part of both the top-left 2x2 square, and the top-center 2x2 square. It must therefore not be the same color as the first two or second two cells in row 1. As all three colors are represented in those three cells, cell (2, 2) must be the 4th color. Cells (1, 2) and (3, 2) are now determined, as they each have 3 colored neighbors. In particular, row two is now in a configuration of 'cda.' This configuration is isomorphic to configurations i. or ii. of row one. Therefore, each row can be determined inductively. In particular, row three is also in a configuration 'abc,' which is the same as row one. If we look at column 1, we find it must alternate between colors 'a' and 'c.' This means that if we reflect over the diagonal, we must have a solution where the first row, equivalent to the original solution's first column, must alternate over the pair of colors 'a' and 'c.' This satisfies the condition of Ia), and so this reflected solution must be an alternating orientation. This means the original solution had an alternating orientation, contradicting the premise for configurations i and ii. We may use a similar argument for configuration iii, but shifting our perspective over by 1 column. We first remove column one from the solution, and observe that we now have a configuration isomorphic to configuration i or ii. As removing a column does not alter the property of being a solution, as it does not affect 2x2 grids not intersecting that column, the argumentation for configurations i/ii follow. If we take the resultant alternating orientation, and then reflect this solution vertically so that the top row is now at the bottom, we may notice that our new top row is also alternating, as given by Ia. If we try to replace an appropriately reoriented row at the bottom corresponding to the column we removed here, the solution must still satisfy Ia, as the new top row is not changed. The property of having an alternating orientation is trivially preserved under horizontal and vertical reflections. As such, this re-appended row must still be alternating, and our overall solution still has some alternating orientation. I: QED QED (Sorry for the haphazard alterations to the proof of I, but I realized I needed to generalize it to get the full 2n*2m result, but that proved non-trivial.)
@PeterBarnes2
@PeterBarnes2 2 жыл бұрын
I could've reworked 1a to make it way easier to state the case for configuration iii, but now that I've rewritten that part multiple times I'm too lazy to.
@brooneil1632
@brooneil1632 Жыл бұрын
I so appreciate this.
@drewshell2124
@drewshell2124 2 жыл бұрын
I really like these interludes and hope you will continue to do them occasionally.
@edwardhuff4727
@edwardhuff4727 2 жыл бұрын
Edit: note that for this answer I assumed you can turn over ANY two cards so long as both are face down, since that's the only rule explicitly stated. It's supposed to be a joke. "Let's start with 10 face down cards and always turn over two face down cards." I took that literally as a new problem. Min = max = 5.
@michaelwang1730
@michaelwang1730 2 жыл бұрын
NO, min is 3 because you turn over cards 2-3, 5-6, 8-9 and you're done Edit: oh wait I misinterpreted it, all cards have to end up face up. never mind
@tobiaswagner5496
@tobiaswagner5496 2 жыл бұрын
Min is 5, but max isn't 5. Say the right most 2 cards (#9 and #10) are flipped over first. In the next move you can then flip over cards #8 and #9. So now #8 is flipped, #9 is face down, and number #10 is flipped. Next flip #7 and #8, so now #7 and #10 are face up, and the rest are face down. Continue this pattern and it takes 9 total moves (counting the first #9 and #10 flip) to arrive at the configuration that #1 and #10 are flipped while the others are face down, which is already larger than 5 moves. I don't want to just hand over the answer but hopefully you can now see the pattern at how to find the maximum number of moves possible. Remember, each move needs to be as inefficient as possible to arrive at the maximum possible moves.
@Autosvezzamento1
@Autosvezzamento1 2 жыл бұрын
@@tobiaswagner5496 , but can't you make as many moves as you like? You just keep flipping the same two cards, or anyway go in a circle. Are there limitations on the kind of moves I may make?
@tobiaswagner5496
@tobiaswagner5496 2 жыл бұрын
@@Autosvezzamento1 Because of the rules of the card flips, every move is a move towards the solution in this problem. It isn't possible to go back to a previous state and so there aren't any cycles. Some moves though will get you to the solution faster than others.
@GiantKush
@GiantKush 2 жыл бұрын
Nathan's digit proof was so much more elegant. The faces (mathologer's) proof was just based on observation.
@mathlegendno12
@mathlegendno12 2 жыл бұрын
I agree, I was quite surprised by the proof and I quite liked the movie clips I watched
@Mathologer
@Mathologer 2 жыл бұрын
Which proof I would choose to explain things would very much depend on my audience. If I was dealing with a layperson with no particular interest in math I'd definitely use the first proof. With people who can appreciate some mathematical subtlety I'd mention the second way of looking at things :)
@danielyuan9862
@danielyuan9862 2 жыл бұрын
Usually, finding an elegant proof involves thinking about other proofs that are based on observation. As a math olympiad person myself, when I see a solution to a problem that was done using observation, I usually want to find a shorter and more elegant version of the proof so I can save some time writing the proof. :/
@FritsvanDoorn
@FritsvanDoorn 2 жыл бұрын
I like the shorter versions more. I was asking myself what could be the practical use of this subject besides the fun of understanding it. Thank you.
@Benom8
@Benom8 5 ай бұрын
I know I'm very late here, but just wanted to comment regarding the special colouring question. As others have pointed out this works for 2n×2n or even 2n×2m, not only 4n×4n. Sketch proof, by contradiction, assuming 2 corners are red. There are (n×m/4) -2 reds left for the rest of the grid. The ones removed belong to only 1 2×2 square each, leaving (n-1)(m-1)-2 to cover with the remaining reds. At most (n-2)(m-2)/4 reds can belong to the in interior cells of the original square. These can cover up to 4 2×2 subsquares each. So, at least (n×m/4) -2 - (n-2)(m-2)/4 reds must be on the exterior cells of the original square and only belong to at most 2 2×2 subsquares. These facts combine to give an upper bound of nm -n -m -2 remaining subsquares that include a red. But there are nm-n-m-1 of these subsquares. So it's not possible to complete the colouring.
@xCorvus7x
@xCorvus7x 2 жыл бұрын
11:29 The maximum number of steps for ten cards is 55. The first step, when all cards are face-down, has to introduce at least one face-up card and this minimum is achieved when turning the right-most card. This is strategically convenient, since we can only "move face-up cards" to the left, which is the only move that doesn't net an additional face-up card: i. e. adding more of these moves inbetween the net addition of face-up cards is the only way to prolong the game. (Obviously, to stall the addition of further face-up cards like this requires there to be already one face-up card but of this is taken care by the initial step.) Now the most we can prolong the addition of the second face-up card is to move this first face-up card all the way to the left, which takes nine steps (with the initial step ten in total). Adding the second face-up card - again at the right-most position - is the eleventh step, and moving it as far left as it goes takes another eight, since the left-most position is already occupied by a face-up card. So each further face-up card gives us at most one less step than the preceding one. The first card gave us ten steps, so the total will be 10+9+8+7+6+5+4+3+2+1, the tenth triangle number, 55.
@kubastefanski5538
@kubastefanski5538 2 жыл бұрын
Soooo n(n+1)/2 where n is the number of cards :D
@xCorvus7x
@xCorvus7x 2 жыл бұрын
@@kubastefanski5538 Precisely. As some one else pointed out, if we cannot turn the right-most card because it has no neighbour, we lose the first n steps (the steps involving that card) so then the answer is the (n-1)th triangle number. Note that in this case we turn the card in the next to right-most position n-1 times. Thus we can only reach a state of all face-up, or zero, if n-1 is odd, because turning the next to right-most card an even number of times will result in the right-most card being turned face-down for every time we turn it face-up.
@roccov3614
@roccov3614 2 жыл бұрын
Yeah, only took me a couple of seconds to figure that one out. I'm used to playing a puzzle game that it helps to know what the digits from 1 to 9 add up to, so I already knew it was 45. So I just added 10 to it and got 55. Nice explanation though.
@xCorvus7x
@xCorvus7x 2 жыл бұрын
@@roccov3614 Thank you. Though, adding up the numbers seems trivial compared to finding out what numbers to add. Could you describe these puzzles?
@felipe970421
@felipe970421 2 жыл бұрын
I'm not convinced by this argument (although the conclusion is correct). This shows that a greedy algorithm that maximizes face-down cards at every turn ends in n*(n+1)/2 moves, but another algorithm could conceivably get more mileage.
@JohnLee-ue6gy
@JohnLee-ue6gy 2 жыл бұрын
First off, the video wasn't explicit about the condition of 'terminate.' This can confuse some, but you can infer it from the condition of choosing a facedown card, which infers that if there are no facedown cards there is nothing suitable to choose. From there, it's even simpler than math[s]. It's logic. If you have a finite set, and your task is to find one thing in a certain condition, change that condition and also change the condition [regardless of what that condition is] of a related thing, eventually you will run out of things in the [unchanged] condition, because the one definitive move of every action is from unchanged to changed.
@Mmmm1ch43l
@Mmmm1ch43l 2 жыл бұрын
but that doesn't work though let's say the cards are aligned in a circle, such that there's always a card to the right of any card, then it's easy to see that this does not have to terminate but your proof doesn't distinguish between these two scenarios (so it has to be incorrect)
@fewwiggle
@fewwiggle 2 жыл бұрын
As Michael points out, you haven't rigorously proved it. The stumbling block is that cards can change back and forth numerous times (perhaps forever?), so you have to PROVE termination.
@elfakyn
@elfakyn 2 жыл бұрын
For this proof to work you have to prove that the graph of state changes is acyclical.
@1vader
@1vader 2 жыл бұрын
Also, logic is ofc part of maths. Every mathematical proof is essentially just logic.
@AvidAstronomer
@AvidAstronomer 2 жыл бұрын
Love the shorter video because I don't always have a lot of time to finish your videos. I generally watch short videos like this over breakfast
@peterjamesfoote3964
@peterjamesfoote3964 2 жыл бұрын
I really liked this video. I majored in Philosophy in part because it allowed me to escape some math phobia. This one was both easy to understand but still mind expanding in teaching a new way to think about math.
@svensorensen7693
@svensorensen7693 2 жыл бұрын
Love the shorter format, hope to see more! Alright so the maximum number of moves with 10 cards: My first thought is to treat it like a binary number and simply subtract 1 each time, but I quickly realized that doing this would require moving more than 2 cards at once. Then I realized that the maximum number of moves would be to only turn a face down card if there is a face-up card to the right. (This assumes your bound rule where turning the right-most card only turns 1 card. It's then just a matter of turning the right-most card and then "moving" it to the left as far as it will go. Which takes 10 moves. After that, it is impossible to turn the left-most card, effectively making 9 cards. Repeating the process then takes 9 moves. Continuing the process, then will be 10+9+8+7+...+2+1 moves, which totals 55. I then played around a bit, and realized that there's another strategy of moving the face-down cards to the right, which accomplishes the same thing in reverse, 1+2+3+4+...+9+10 moves, so 55 again. No idea how to solve the last problem, good luck to whoever wins the T-shirt!
@michaelthomas6419
@michaelthomas6419 2 жыл бұрын
He said you can only turn over two face down cards at a time so wouldn’t the max moves also be 5 or did I not understand the problem?
@pinball1970
@pinball1970 Жыл бұрын
@@michaelthomas6419 Thats way I read it
@WarpRulez
@WarpRulez 2 жыл бұрын
If I'm being completely honest (which is something I strive to be), I have to admit that your longer videos are oftentimes quite a test of my patience and endurance. At some point the amount of information (which is often new) is so much that it's hard to keep track of it, and it starts going over my head. Shorter snippets are much easier and nicer to digest.
@qazyguy
@qazyguy Жыл бұрын
Exactly! Sometimes we want a Banquet, sometimes we want a Snack.
@pedrosso0
@pedrosso0 11 ай бұрын
@@qazyguy If that's so, then we have a variety. So wae can have either
@davidandrade5572
@davidandrade5572 2 жыл бұрын
Amazing, continue with this!
@arachn01d
@arachn01d 2 жыл бұрын
Ive been following mathologer for a year now. It was only last week that I found your name and realised that you are the author of "the mathematics of juggling" thank you for both the excellent videos and the excellent book!
@Mathologer
@Mathologer 2 жыл бұрын
For other gems have a look at Marty and my website www.qedcat.com :)
@3bnepat
@3bnepat 2 жыл бұрын
Another way to solve: If the game doesn't terminate we must have a cycle of moves that repeat. Which we don't because any move either creates new face up cards or moves one to the left, both we can only do finite times with finite cards, so we won't be able to afford either eventually.
@FiniteSimpleFox
@FiniteSimpleFox 2 жыл бұрын
This is essentially the reverse of the argument that was being used in the film
@3bnepat
@3bnepat 2 жыл бұрын
@@FiniteSimpleFox yeah
@bowtangey6830
@bowtangey6830 2 жыл бұрын
👍
@olli3686
@olli3686 2 жыл бұрын
Nathan's problem: Prove a sequence of "1"s for face-down cards terminates in a sequence of "0"s for face-up cards. Only valid moves are "11" becomes "00" (net of +2 face-up cards or -3 in binary) , "10" becomes "01" (net of +0 face-up cards or -1 in binary), and "1" becomes "0" (net of +1 face-up cards or -1 in binary). Each of the moves results in [0 to 2] face up cards or [-3 to -1] in binary.
@olli3686
@olli3686 2 жыл бұрын
Additionally, for n cards, the sequence may be completed from ceiling(n/2) to n*(n+1)/2. For 8 cards, our minimum solutions take 4 turns while our maximum solutions take 36 turns. // algorithm to reach a solution with a maximum amount of turns. s = '11111111' while '1' in s: if s[-1:] == '1': s = s[:-1] + '0' else: s = s[:-1-s[::-1].index('1')]+'01'+'0'*(s[::-1].index('1')-1)
@mikepennington8088
@mikepennington8088 2 жыл бұрын
I like the short format. Good for when I don't have a lot of time for the regular long form and just as thought provoking and educational. For me, I saw the two proofs as the same. But then, being a computer scientist for more than forty years, the up vs down state of the cards just naturally maps on to an equivalent string on ones and zeroes.
@terryjwood
@terryjwood 2 жыл бұрын
I didn't know you had another channel, "Mathologer 2"! Thanks for mentioning it!
@shantanunene4389
@shantanunene4389 2 жыл бұрын
For the last problem, instead of the 4 colours we label each square with the numbers 1,2,3 or -6. Then sum of 4 squares is 0 iff the consist of 4 different numbers. Label the squares of the grid in the form (i,j) where (1,1) is the topmost leftmost square. For any i,j
@DS-xh9fd
@DS-xh9fd 2 жыл бұрын
Your choice of 1,2,3,-6 doesn't work, because 2+2+2+(-6)=0. But 1,2,4,-7 works.
@IEIM64I
@IEIM64I 2 жыл бұрын
2 + 2 + 2 - 6 = 0 use different labels
@eggegg9026
@eggegg9026 2 жыл бұрын
Very nice solution! It is also possible to completely analyze the possible configurations. For an n×m grid (with n,m≥2), there are 6×(2^n+2^m-4) possible configurations. Let's prove that. Call our four colors A,B,C,D. Remark first that the whole grid is determined by the upper row and the leftmost column. By permuting the colors in the grid, we can fix the colors of the cells in the upper left corner. So let's suppose the first row starts with AB and the first column starts with AC. If we put in the first row ABABABABAB... and in the first column ACACACAC..., we get a coherent grid (no contradiction when we fill it). Any other grid is obtained by modifying this "base" grid. Anyway it's a bit annoying to explain actually... I give up. We cannot modify both "rows and columns" at the same time, so we have 2^{n-2} possibilities if we modify columns, 2^{m-2} possibilities if we modify rows, and 1 possibility in the intersection. We also have a factor 4! because of the initial reduction, and this gives 4! × (2^{n-2} + 2^{m-2} - 1) = 6 × (2^n + 2^m - 4). What about the same problem in 3d? Your solution still works but I don't know if we can understand all possible configurations.
@eggegg9026
@eggegg9026 2 жыл бұрын
@@IEIM64I You need the labels to be different. But anyway, this is not essential to the solution, you can also just use x,y,z,w and say that x+y+z+w=0.
@IEIM64I
@IEIM64I 2 жыл бұрын
@@eggegg9026 I'd argue that it is essential to the solution, as using 1,2,3,-6 in this case only tells us that the four corner squares either are all unique, or consists of 3 identically colored squares. When solving things with invariance, never assume that just because an invariant is found, you'll end up proving precisely what is asked. In this case however, we are lucky enough that there are many sets of numbers that can prove the corners are all unique. Edit: i didnt mean to come of as derogatory. The iff sum is 0 the tiles are unique, is whats actually important. It's just that i think people should be very careful about almost proofs, as its not always clear that the same method can get you all the way.
@emmettnelson7260
@emmettnelson7260 2 жыл бұрын
The problem in that clip is much easier than basically every IMO problem on the test, though Nathan’s solution was much more elegant than mine, which used induction and didn’t turn the cards into numbers.
@catalinbadalan4463
@catalinbadalan4463 2 жыл бұрын
That's a Math thing, it works in a infinitely (countable) number of ways.... :)
@FlummoxTheMagnificent
@FlummoxTheMagnificent 11 ай бұрын
Wow, I’m impressed I understood that without an explanation… I never would have thought of the solution, but it made perfect sense to me.
@whateverppl1229
@whateverppl1229 2 жыл бұрын
7:42 I'm glad you mentioned it because I noticed it and was curious. Just flipping the one card/number makes sense.
@philiphendrix7140
@philiphendrix7140 2 жыл бұрын
The max number would be 55. First, you would start by flipping over the card all the way to the right. Move that flipped card to the left by flipping the card directly to the left of it (this will flip the card to the left so that it faces up, and flip the card all the way to the right back down, effectively moving the flipped card to the left). Keep doing this until the flipped card is all the way to the left. This takes 10 steps. Now you effectively have the same situation but with 9 cards, not 10. Do this over and over again, and you eventually reach 10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1, which would equal 55.
@jagadishgajurel2597
@jagadishgajurel2597 10 ай бұрын
for this you have to imagine a 11th card on the right of 10th card and you flip a imaginary card every time you flip the 10th card.
@PC_Simo
@PC_Simo 9 ай бұрын
@philiphendrix7140 Exactly 🎯! I’m glad I’m not the only one, who got this solution. Gives me more confidence in mine. 🙂👍🏻
@PC_Simo
@PC_Simo 9 ай бұрын
@@jagadishgajurel2597 You can, if you want to. Either way, in this video, it was agreed that turning the far-right card face up involves simply turning over that 1 card.
@Tehom1
@Tehom1 2 жыл бұрын
On the 4 corners question: Lemma: the 2x2s must repeat in the obvious way (no reflections, rotations, permutations) Consider a 2x2 satisfying the condition and the 1x2 domino to the left of it. Now look at a 2x2 that is shifted one place to the left, thus containing the domino. Since it must satisfy the condition too, it can't repeat any colors in the 1x2 domino that both 2x2's share. This only leaves the colors in the domino on the right side of the original 2x2. Thus all columns must be composed of 2x1 dominoes that contain the same 2 colors as the dominoes 2 steps to the right of them, and by the left of them by the obvious substitution. So all columns must contain the same sequence of 2x1 dominoes. But we can repeat the same argument with the original 2x2 shifted 1 step upwards. Thus we have 2 overlapping sequences of dominoes that agree leftwards/rightwards on the set of 2 colors. This fixes not only the set of colors but also the ordering. Thus columns are identical to other columns 2 steps to the left or right. We can also repeat the same argument vertically, so all rows match rows 2 steps up or down. This implies that not only do the columns agree left/right, they also repeat the same 1x2 domino over and over. By the same argument, rows repeat a 2x1 domino endlessly. But that means that any 2x2 exactly repeats the 2x2 that is 2 steps left , right, up, or down. Thus 2x2s repeat in the obvious way, Lemma QED. Since the grids were all 4n x 4n, we can subdivide it exactly into 2x2 blocks in the obvious way. (Actually only requires 2nx2n alignment). Since all 2x2's are identical, the corner 2x2's are identical. But the top-left corner of the grid is the top-left box of the repeated 2x2, top-right is the top-right etc, in a 1-to-1 mapping. And those are all different colors, by our original condition. So the corners of the grid are all different colors, QED.
@Alex_Deam
@Alex_Deam 2 жыл бұрын
Unless I've misunderstood, I don't think this proof is correct. Here's a counterexample: Row 1: BRBR Row 2: YGYG Row 3: RBRB Row 4: GYGY Notice that the 2x2 in the top corners have BR in the top row and YG in the second row, but the 2x2 in the bottom corners have RB in their top row and GY in their bottom row. So I think maybe you were on the right lines for the proof but there's a special kind of permutation that's allowed when you translate by 2 steps.
@Tehom1
@Tehom1 2 жыл бұрын
@@Alex_Deam Yes, your counterexample seems to be correct. I was too hasty in assuming that I had ruled out all permutations.
@xCorvus7x
@xCorvus7x 2 жыл бұрын
Isn't the arrangement shown in the video like Alex's, with the lower squares of four being symmetric but not identical to the upper ones?
@VaradMahashabde
@VaradMahashabde 2 жыл бұрын
@@Tehom1 as far as I can tell, you are on the right track, and absolute repetition is much more stronger than needed to prove the needed result anyway. Edit : actually maybe 2x2s don't repeat but 4x4s do? due to there only being 4 colors. As far as I can see, the lemma fails when the overlapping 2x1 dominoes have the same pair of 2 colors, but that kind of repetition implies row or column copying throughout the grid. I don't think it's possible to compose two different grid layouts together in a larger grid with strong 2x2 condition.
@darrellshoub7527
@darrellshoub7527 2 жыл бұрын
loved thaT FILM ,,,,,,,,,,,,,,,,,,,,AND LOVED YOUR VIDEO !!!
@davea136
@davea136 2 жыл бұрын
I very much enjoyed this and would like to see more like it.
@DavidBeaumont
@DavidBeaumont 2 жыл бұрын
The last question is just a recursive argument starting with a 2x2 grid which must satisfy the different corner criteria. Each double size grid must satisfy the criteria inductively because there are always 4 tilings (top, bottom, left, right) which preclude repetition in the corners by mirror symmetry.
@Xeridanus
@Xeridanus 2 жыл бұрын
Have a look at the grid again, the bottom row isn't the same as the 2nd row.
@1001avventura
@1001avventura 2 жыл бұрын
Longer videos are great, but this format is interesting too... and we're going to enjoy mathologer videos more frequently! A question: do you use a particular (custom) software to create the animations of the "math autopilots"?
@ryanodonnell2726
@ryanodonnell2726 2 жыл бұрын
Pretty sure it's PowerPoint.
@polettix
@polettix 2 жыл бұрын
@@ryanodonnell2726 me too, I think Mathologer said that, or maybe 3b1b pointed this out in a video
@ViliamF.
@ViliamF. 2 жыл бұрын
@@ryanodonnell2726 Yep, he occassionally mentions the number of slides of the presentation, which is the video.
@VaradMahashabde
@VaradMahashabde 2 жыл бұрын
@@polettix yes, I think in pi is transcendental video, where he complained about having to make too many slides :D
@MM-cr7dq
@MM-cr7dq 2 жыл бұрын
Thanks Mathologer - I enjoy the shorter vids from time to time, really enjoy watching your longer vids. Misses Mac's is the super pi :0)
@dylan7476
@dylan7476 2 жыл бұрын
Monash engineering student here, I'm a big fan of your videos and didn't even realise you taught here until now! Might have to pop in and say hi one day if covid allows haha
@ryanheisler9648
@ryanheisler9648 2 жыл бұрын
I liked this video, easier to understand than the usual one. It has one failing as a simple explanation, though. If someone doesn't know what binary numbers are, they probably also don't know that everyday, base-10 numbers are "decimal" numbers. That's a vocabulary word you only need if you also know about other base systems like binary or hexadecimal.
@IPlayWithFire135
@IPlayWithFire135 2 жыл бұрын
I'm sure the vast majority watching this have had something like computer science 101 at some point.
@alexandertownsend3291
@alexandertownsend3291 2 жыл бұрын
The assumption is that if you plan on being in the mathematical olympiad you would know how binary works.
@EwanMarshall
@EwanMarshall 2 жыл бұрын
@@alexandertownsend3291 Yeah, pretty much guarantee anyone in a Mathematical Olympiad can work in binary, my problem is doing it on the clock, not the Mathematics involved. When I did the forrunners here.
@PvblivsAelivs
@PvblivsAelivs 2 жыл бұрын
"Did you get it?" Yes, I got the same answer. My interpretation was that turning over just the right-most card was not a legal move. Even if it were, the same argument leads to termination. With 10 cards, and assuming the rightmost card can not be flipped by itself, the maximum number of moves is 45. If you do allow the rightmost card to be flipped by itself, the answer as 55. Sadly, I saw the answer video before this one.
@RedMi-gn4qm
@RedMi-gn4qm 2 жыл бұрын
Hi , your proof was nicer :) and please make more short video. I really enjoy all your videos. Shorter videos are also nice. Thanks a lot Dr. Burkard Polster.
@magiquemarker
@magiquemarker 2 жыл бұрын
Thanks Prof!
@QuotePilgrim
@QuotePilgrim 2 жыл бұрын
I'm actually surprised and pleased with myself for being able to understand the solution from the clip alone, haha. Of course it is such a simple that anyone should be able to understand it, was is not for he using a binary number representation, and most people being unfamiliar with binary. If, for instance, he decided for no particular reason to use 0 and 9, everyone who isn't familiar with binary would immediately have an easier time understanding it. You can also describe the solution without using any numbers at all. You can just use the letters D and U, and show that the only two things that can happen to the sequence of letters is two Ds turn into Us, or a D swaps places with a U to its right. As a result you either end up with two Ds next to each other, or they are separated by some run of Us. In the latter case you can move the rightmost one until its all the way to the right, at which point the only remaining option is to move the leftmost D closer to the rightmost one until you're back to the former case, meaning you must turn both Ds into Us.
@gen9695
@gen9695 2 жыл бұрын
For the maximum number of moves question: Consider the cards in their binary version, so starting with 1111111111 This is also the highest possible value in binary that can be represented on these cards. We can represent this as 1023 in decimal. Now, counting turning over the right most card, there are 3 possible ways we can remove value from our total, being (let n represent the position of the left card being turned, numbered from right to left starting with 0): Playing a 11 (subtracting 2^n + 2^n-1) Playing a 10 (subtracting 2^n - 2^n-1) Playing the right most 1 (subtracting 1) Now, according to Nathan's proof you cannot play a move which increases the value, So therefore the maximum number of moves is also the set of moves by which the minimum value is subtracted per turn Now, of our 3 possibilities, subtracting 2^n + 2^n - 1 will always be unfavorable to 2^n - 2^n - 1 Therefore, the only situation we would ever play a 11 is if there were no 0s on the board. However, if that were to be the case, then the rightmost card would be a 1, meaning subtraction by 1 is possible. Therefore, in our ideal system of moves we would never play a 11. Now, following that we play mostly 10s with a 1 whenever possible, the moves would appear thusly (For convenience I'll just write 5 1s) 11111 11110 11101 11100 11010 11001 11000 And so on As you can see, a pattern is followed If the type of move is listed out in order, you get 1 10 1 10 10 1 In fact, the number of 10s played before the next 1 equals the position number of the farthest left 0 (including the move that makes the 0) So finally, The maximum moves played would be (and this is for any number of cards n) The summation of the natural numbers from 0 to n - 1(the number of 10s played), plus n (the number of 1s played) Or, n(n-1)/2 + (n) Which can be simplified to n(n+1)/2 (which one might recognize as the triangle numbers) Which in the case of n = 10 is 55 moves. This prolly wasn't the best possible argument, but it was my attempt at it nonetheless. Thanks for reading all this
@glennrowe2736
@glennrowe2736 2 жыл бұрын
The shorter relaxing video was great, so yes please do include more of these.
@zoltanposfai3451
@zoltanposfai3451 2 жыл бұрын
Final problem: Tile the whole plane and move the 2x2 cover to the position that covers the four corners. You only need to demonstrate that you can "cross the boundary", which is easy to show as we have alternating pairs when we move the 2x2 cover horizontally or vertically and we have an even by even setup.
@Mathologer
@Mathologer 2 жыл бұрын
It actually no clear from the start that every special coloring of the square grid arises from a special coloring of the plane :)
@Xubono
@Xubono 2 жыл бұрын
12:55 you mention your Mathologer T-shirt shop. It would be nice to have a direct link in the description. Love the short videos and the long videos. Something missing in the proof … it isn’t really specified what happens when you get down to just the last digit .. 00001. Of course, this can only happen if there are an ODD number of cards, and all the examples chosen have an even number of cards so will always get to zero. But and odd number of cards will always finish at 0000…001. So either the question could be reposed as “for any positive even integer number of cards”, or the special case of the rightmost card as the only face-up card needs to be formally considered / have its own rule.
@animowany111
@animowany111 2 жыл бұрын
The solution to the puzzle at the end is easy, you can consider scanning across 2-wide columns and 2-high rows. Each time you move the square, you know the colors in the newly covered squares have to be exactly the ones as just left. This gives us half the solution for free, since it it implies corners along an edge must be different, since the rows and columns have different parity. It's not a full solution because it doesn't exclude the case where a color is the same on one corner and the one opposite it. You can use an inductive argument to prove this. If the opposite corners really have the same color, then that forces the inner cell of the 2x2 squares at the other corners to have that color (by similar row/column parity reasoning). This means we have a (N-2)x(N-2) square with same colored opposite corners. In the 2x2 case, this is excluded by the puzzle's rules. Thus we can form an inductive argument, (1) a 2x2 square trivially cannot have the same color on opposite corners, (2) a (N+2)x(N+2) square cannot have opposite corners with the same color, as that would require the NxN square inside it to have opposite corners with the same color. Note that this only applies to grids of even sizes. Although I think that proves more than you wanted now that I rewatch that. I'm still confident in my solution and that it holds even in cases like 6x6. Here's a diagram to help visualize the tricky case for 6x6: a_?_?_ __?_a? ??a___ ___a?? ?a_?__ _?_?_a
@adarshmohapatra5058
@adarshmohapatra5058 2 жыл бұрын
I really like your solution! The first part came to my mind naturally like if the first 2 elements in the top row are AB, then the first 2 elements of the second row have to be CD, then 3rd row has to be AB or BA, then 4th row is CD or DC. Like this: A B ? ? C D ? ? A B ? ? C D ? ? So it is guaranteed that 2 corners on the same edge have to be different. But I couldn't think of why the 2 opposite corners cannot have the same color. Then I saw your explanation and after some thinking it made sense!
@adarshmohapatra5058
@adarshmohapatra5058 2 жыл бұрын
There are parts of it which you haven't explained completely, like the part: "If the opposite corners really have the same color, then that forces the inner cell of the 2x2 squares at the other corners to have that color (by similar row/column parity reasoning)." so I will explain that part (the parity reasoning) for anyone concerned. Let us label the rows from 1 to N (left to right) and the columns from 1 to N (top to bottom). Let any cell be labelled (x, y) where x is it's row number and y is it's column number. So (1, 1) is top-left, (1, N) is top-right, (N, 1) is bottom-left, (N, N) is bottom-right. [ We also take N to be even for now] . Now what the highlighted statement means is that for an NxN grid, if (1, 1) and (N, N) are the same color, then (2, N-1) and (N-1, 2) are guaranteed to have the same color. Proof: If we assign (1, 1) & (2, 1) some colors C1 & C2 respectively and keep going right, then (1, 2) & (2, 2) have to be different colors C3 & C4, then (1, 3) & (2, 3) have to be the same colors C1 & C2 again. So on till (1, N-1) & (2, N-1) have to be the same colors C1 & C2. Now it is given that (N, N) is also the same color C1. Let (N, N-1) be color C3 (it doesn't matter if C2 = C3 or not). Now we will do a similar process as before, except we'll keep going up. That means (N-1, N-1) and (N-1, N) cannot be those 2 colors. Then (N-2, N-1) and (N-2, N) have to be colors C1 & C3 again. And so on till (2, N-1) and (2, N) have to be the same colors C1 & C3 again. Also (1, N-1) and (1, N) cannot be the same colors. We showed earlier that either (1, N-1) or (2, N-1) has to be C1. We have showed now that neither (1, N-1) nor (1, N) can be C1. So that means (2, N-1) definitely has to be C1. Similarly you can show that (N-1, 2) is also C1.
@adarshmohapatra5058
@adarshmohapatra5058 2 жыл бұрын
And don't worry about grids of odd sizes. I tried it with 3x3 and got this: A B A C D C A B A So it's not true for 3x3 grids and that seems to suggest that it is not true for any NxN grid where N is odd. In fact from a little induction similar to what you did for even grids, I think we can prove it's not true for any odd-numbered grid. In fact you can use parity to construct the following grid for odd N which proves that it is not true: A B A B ... A C D C D ... C A B A B ... A C D C D ... C . . . . . A B A B ... A Here all 4 corners are same.
@animowany111
@animowany111 2 жыл бұрын
@@adarshmohapatra5058 Yep, although note that odd-sized grids don't *have* to have the same color in each corner (or opposite corners). If you start with the repeating AB/CD tile solution, you can shear one of the sides so you end up with: A B ... B C C D ... D A . . . A B ... B C You can't perform this shear both horizontally and vertically as that would break the puzzle invariants, but as is you can choose columns (or rows) to shift to get what I assume are all possible solutions (I haven't proven that).
@kunaalbatkulwar
@kunaalbatkulwar 2 жыл бұрын
Wow beautifully explained.
@Locke99GS
@Locke99GS 2 жыл бұрын
The method that pops in my head when I first heard the problem (in the clip you showed just now - I've never seen the movie or the clip on KZbin) is more one of chance, I guess. I'm no math-guy or anything, but I did do work with computers and often have to look at gobs of logs or whatever and tease out trends and patterns when troubleshooting systems issues, or when looking at debug output in a tool I might be writing. If you always select a face down card to turn, that card will have a 100% chance of turning to face up. The card to its right has a less than 100% chance of turning to face up, as it may or may not be face down when it was conditionally flipped. To me it seems natural that this can only trend toward all cards becoming face up.
@PC_Simo
@PC_Simo Жыл бұрын
I like the binary-proof; because it’s elegant, and doesn’t require you to know much of the dynamic. On the other hand, your proof, Mathologer, is possibly more intuitive, once someone points it out to you. 👍🏻
@roboknight
@roboknight 2 жыл бұрын
Do love your videos. This one was especially nice. I'd even like to see short ones like this related to historical mathematics. I especially like the "non-binary" solution to this, not because binary is unfamiliar, but sometimes I just want to get away from the digital because I like trying to understand how people think about these problems. I especially like seeing how different skillsets reveal solutions to complex problems, many times without the exhaustive simulation we often resort to today.
@Electronieks
@Electronieks 2 жыл бұрын
I like every vid you upload
@nicolaslegrumeau5771
@nicolaslegrumeau5771 2 жыл бұрын
Nice format. I appreciated. I don’t always time to look at 45 mns video. Greetings from Paris ( France, not Texas… )
@andlabs
@andlabs 2 жыл бұрын
11:00 The maximum number of moves is 5. The rules say that you always turn two *face-down* cards, which renders them face-up, removing them from play. Since there are 10 cards total, this gives you exactly 5 moves. It also does not say you have to turn two *consecutive* cards, so there is no boundary problem here. It also has no rules for what to do about face-up cards; in fact, given all of the above, if you were to be able to flip face-up cards arbitrarily, then there would be no maximum (just repeatedly flip the same card over and over again forever). We must therefore assume, given we want to end with face-up cards, that face-up cards cannot be touched.
@kevinmartin7760
@kevinmartin7760 2 жыл бұрын
I originally thought that as well, that it was a new game and that the "flip two face-down" cards was the rule to use for the game. I think the proper interpretation of how he stated the problem is that it is still under the card-flipping rules of the original problem, but he was pointing out that if one *chooses* to flip two face-down cards for each move it takes 5 moves to flip them all. To get this result you also must choose an even-numbered (with 0-based indexing) card as the left one of the pair to flip; otherwise you get isolated face-down cards that will require extra moves to flip. Essentially he was saying "the minimum is 5 (here's how) but what is the maximum?"
@hrysp
@hrysp 2 жыл бұрын
@@kevinmartin7760 He says you always turn two face down cards up. If you have to do that five moves is the only number to finish. No other moves are allowed.
@hrysp
@hrysp 2 жыл бұрын
Aha I got it from another comment. He just showed how to get to the shortest solution.
@Dyakon_Ignat
@Dyakon_Ignat 2 жыл бұрын
yes please. make more such.
@danuttall
@danuttall 2 жыл бұрын
In the coloured 4x4 grid, one way to show that the corners have different colours is to first mark the corners so we can keep track of them through a few simple transforms. Move all the colours one column to the right, will the right-most column being moved to become the new left-most column. We can then check that the 2x2 pattern of differing colours still applies in this new configuration. Now move all colours up one row, moving the top row down to the bottom. Again, a quick check shows that the 2x2 colour pattern still applies. In fact you will also find that the colour tiles that we marked, which used to be at the corners, are now together in one of the 2x2 colour pattern squares in the bottom-left of the 4x4 grid, and still fitting the requirement that the 2x2 grid has all four colours on its tiles. Therefore, when the tiles were in the original configuration, the 4 corners had to be different colours.
@StephanHradek
@StephanHradek 2 жыл бұрын
The explanation in the movie was very clear to me. But yours was equally well explained.
Monster dropped gummy bear 👻🤣 #shorts
00:45
Yoeslan
Рет қаралды 9 МЛН
Duck sushi
00:54
Alina Saito / 斎藤アリーナ
Рет қаралды 36 МЛН
Why is this number everywhere?
23:51
Veritasium
Рет қаралды 6 МЛН
The ultimate tower of Hanoi algorithm
39:23
Mathologer
Рет қаралды 221 М.
Oxford University Mathematician REACTS to "Animation vs. Math"
26:19
Tom Rocks Maths
Рет қаралды 1,9 МЛН
Why is calculus so ... EASY ?
38:32
Mathologer
Рет қаралды 1,5 МЛН
X+Y (Clip) - Nathan solves math problem | Pinnacle Films
2:52
PinnacleFilmsSales
Рет қаралды 45 МЛН