The Square-Sum Problem - Numberphile

  Рет қаралды 604,863

Numberphile

Numberphile

6 жыл бұрын

Matt Parker discusses a problem involving Square Sums. Go deeper with extra footage: • The Square-Sum Problem...
More links & stuff in full description below ↓↓↓
More Matt Parker on Numberphile: bit.ly/Matt_Videos
Matt's projects and other stuff: standupmaths.com
This problem is discussed in Matt's book: amzn.to/2mksdD5
Thanks to Charlie Turner - more from her in Part 2: • The Square-Sum Problem...
Parker Square T-Shirts: bit.ly/ParkerSquareTshirt
Discuss on Brady's subreddit: redd.it/7pnbqm
Numberphile is supported by the Mathematical Sciences Research Institute (MSRI): bit.ly/MSRINumberphile
We are also supported by Science Sandbox, a Simons Foundation initiative dedicated to engaging everyone with the process of science.
NUMBERPHILE
Website: www.numberphile.com/
Numberphile on Facebook: / numberphile
Numberphile tweets: / numberphile
Subscribe: bit.ly/Numberphile_Sub
Videos by Brady Haran
Patreon: / numberphile
Thank you to these Patrons:
Jeremy Buchanan
Arjun Chakroborty
Jeff Straathof
Susan Silver
Yana Chernobilsky
Christian Cooper
James Bissonette
Ken Baron
Bill Shillito
Tony Fadell
Ryan Mehendale
Turner Lehmbecker
Bernd Sing
Dr Jubal John
Thomas Buckingham
Ole Kristian Merli
Tianyu Ge
BITISM CO
Joshua Davis
Steve Crutchfield
Jon Padden
Kristo Käärmann
Vali Dobrota
D Hills
Eric Mumford
Charles Southerland
Arnas
Ian George Walker
Paul Bates
Tracy Parry
George Greene
Igor Sokolov
Alfred Wallace
Brady's videos subreddit: / bradyharan
Brady's latest videos across all channels: www.bradyharanblog.com/
Sign up for (occasional) emails: eepurl.com/YdjL9

Пікірлер: 963
@mayabartolabac
@mayabartolabac Жыл бұрын
I would like to thank Robert Gerbicz for his solution to the conjecture in the video, and HexagonVideo for explaining it well in video form. Cheers everyone!
@phyphor
@phyphor Жыл бұрын
Came here to say something similar so will instead just add my voice to support this comment.
@1224chrisng
@1224chrisng Жыл бұрын
It's an especially elegant proof, the idea of transforming one sequence into another and preserving its structure, though the bit from 4900 and onwards is a beyond me
@RobotProctor
@RobotProctor Жыл бұрын
Ninja pairs ftw
@ShantanuAryan67
@ShantanuAryan67 6 жыл бұрын
square in title and parker in thumbnail do not go very well together
@SteamPunkLV
@SteamPunkLV 6 жыл бұрын
xD
@K1lostream
@K1lostream 6 жыл бұрын
Still want me a Parker square t-shirt! (And a Parker circle one - remember that?!)
@standupmaths
@standupmaths 6 жыл бұрын
ಠ_ಠ
@wynautvideos4263
@wynautvideos4263 6 жыл бұрын
Treleleleleoellelele
@UltraLuigi2401
@UltraLuigi2401 6 жыл бұрын
The 'Give it a go' screen has a Parker Square in the background.
@mattcelder
@mattcelder 6 жыл бұрын
I don't appreciate Matt starting us off with a Parker sequence of numbers. It was almost right when he told us to give it a go.
@juandiaz3651
@juandiaz3651 6 жыл бұрын
0:59 suspicious Parker square...
@rosebuster
@rosebuster 6 жыл бұрын
Parker square is all about giving things a go and not getting upset that you failed. :P
@robmckennie4203
@robmckennie4203 6 жыл бұрын
Matt's really playing with fire here, he needs to stay away from the square topics
@KyleJMitchell
@KyleJMitchell 6 жыл бұрын
What would that help? The comments for videos he's in are asinine no matter what he's discussing.
@joshyoung1440
@joshyoung1440 2 жыл бұрын
@@KyleJMitchell not sure if you caught the whole Parker square thing
@nif4345
@nif4345 2 жыл бұрын
Why?
@sneddypie
@sneddypie 2 жыл бұрын
@@joshyoung1440 i think he did
@Noughtgate
@Noughtgate Жыл бұрын
Silence, he's in his element
@munjee2
@munjee2 6 жыл бұрын
Ahem , *The Parker Square-Sum Problem*
@DrDress
@DrDress 6 жыл бұрын
I hadn't even seen the video, but was gonna write this. An hour too late I guess.
@htmlguy88
@htmlguy88 6 жыл бұрын
To be fair it can be related to it.
@ethanpfeiffer7403
@ethanpfeiffer7403 6 жыл бұрын
We all were thinking that.
@anticorncob6
@anticorncob6 6 жыл бұрын
I actually thought that the video was going to state that they found a magic square with perfect squares.
@nickcorrado5105
@nickcorrado5105 6 жыл бұрын
I believe the aborted beginning (8, 1, 3, 6, 10) he gives you is known as the Parker Square-Sum.
@tovarischkrasnyjeshi
@tovarischkrasnyjeshi 6 жыл бұрын
One of my favorite logic puzzles in video games is apparently basically finding hamiltonians. In Oracle of Ages, there's a few rooms where you're expected to walk over every tile (turning it a different color), and in the Minish Cap as well. Something similar in Link's Awakening, where you push some strange tile machine around in turtle rock, filling up all the holes to get keys. Not really numbery in those games unlike this, but for some reason I just really like those puzzles.
@AlphaFX-kv4ud
@AlphaFX-kv4ud 26 күн бұрын
There's one of those in pokemon
@AvidAstronomer
@AvidAstronomer 6 жыл бұрын
I solved it basically in the same way, but by tabulating the different ways each square number could be made. I then counted the number of times each number appeared. 8 and 9 appeared only once each, so they must go on the ends of the line. 1 and 3 appeared 3 times, but they can only touch 2 others if on a line, so we must ignore the pairing {1,3} to make 4. This leaves one unique chain.
@stereobub
@stereobub 6 жыл бұрын
You can also just go through them and look at the "square neighbours" they have - it's really easy to check since the only reachable squares are 4,9,16,25. Then you will see that 8 and 9 only have a single neighbour. For any set of numbers where exactly 2 numbers only have one neighbour, this thing is possible. So you don't even need to draw graphs or guess random ways through them. :)
@AvidAstronomer
@AvidAstronomer 6 жыл бұрын
You can't rule out there being a closed cycle at some point in the future though. That wouldn't be solvable and also could still have 2 numbers that are alone.
@stereobub
@stereobub 6 жыл бұрын
True, I didnt think about that! Fortunately it looks like from 14 upwards no closed cycles show up - the only way to introduce that would be if bigger numbers didn't connect in any way to the previous ones but only to themselves, and that seems unlikely... although I can't prove that for now.
@grojan808
@grojan808 6 жыл бұрын
Solved it the same way
@antroflux8969
@antroflux8969 6 жыл бұрын
I randomly guessed a few times, and got it right so I didn't have to do any of that lol... Though thats what I would have resorted to...
@Jussi_Huhtiniemi
@Jussi_Huhtiniemi 6 жыл бұрын
that sneaky parker start
@JSHanta7
@JSHanta7 6 жыл бұрын
I see Matt Parker, I click the video
@numberphile
@numberphile 6 жыл бұрын
Well now I know how to Rick Roll you!!!
@PW0610
@PW0610 6 жыл бұрын
How to subtly give ideas for April Fools
@nikitacunskis1853
@nikitacunskis1853 6 жыл бұрын
a clickbait for math geeks
@phaustho
@phaustho 6 жыл бұрын
Now isn't that the main reason why we're all here? :P
@elmajore4818
@elmajore4818 6 жыл бұрын
Would that be a slightly not perfect lure ... a parker lure including parker unable to not include and therefor not wrong. This sentence is false. o.O
@DomikaClarke
@DomikaClarke 6 жыл бұрын
This was a really fun problem to get my brain going at 6am! I made a list from 1 - 15 and wrote next to them all of the possible combinations that would equal 4, 9, 16 and/or 25 and saw that 8 and 9 only had one possible combination so I knew they had to go at the end. It was pretty quick to fill in the rest although I got stuck going from the 9 end at the number 3 and had to go from the 8 end (remembering that 1 had to go with 8). I ended up with the correct order but backwards from what was later shown in the video haha. I also like my list of numbers a little more than the graph since that looks like it'll get pretty messy once you start crossing lines and making curved ones and such. It's a really cool visualisation, though! Thanks for the video and the little puzzle ^^
@zamp42
@zamp42 6 жыл бұрын
1:01 I see what you did there.
@sibax7776
@sibax7776 6 жыл бұрын
PARKER SQUARE!!!!!
@liborkundrat185
@liborkundrat185 6 жыл бұрын
Does anyone know the name of the music - it's so soothing!
@ciscoortega9789
@ciscoortega9789 6 жыл бұрын
The thumbnail spoiled it!! I wouldn't have immediately thought of finding a Hamiltonian path but the graph in the thumbnail gave it away :P
@Sam_on_YouTube
@Sam_on_YouTube 6 жыл бұрын
I started with the fact that 15 has to be between 1 and 10 because it can only sum up to 16 or 25. I continued on a chain from 10 using the only possible choices. Once I had 3 used, I picked 8 next to 1 as the only possible choice and continued on from 3 again (since 8 is a dead end). And it worked out: 9,7,2,14,11,5,4,12,13,3,6,10,15,1,8
@Tiptop9278
@Tiptop9278 6 жыл бұрын
YES!! Matt's back! I've been making my way through his numberphile playlist for the past week or so
@standupmaths
@standupmaths 6 жыл бұрын
Fear not for I am always with you.
@aspden8809
@aspden8809 6 жыл бұрын
I got Matt's book for Christmas. It was my favourite gift :)
@nicosmind3
@nicosmind3 6 жыл бұрын
I love how Parker Square is now a thing :)
@steliostoulis1875
@steliostoulis1875 6 жыл бұрын
Normie
@ryanmahon1
@ryanmahon1 6 жыл бұрын
A thing 2+ years running
@Jivvi
@Jivvi 4 жыл бұрын
4+ years now.
@gouravchouhan1790
@gouravchouhan1790 3 жыл бұрын
5+ years now
@agnesgalvin3930
@agnesgalvin3930 6 жыл бұрын
I managed to figure it out with 10 mins of concerted effort, I figured that he would give a false start, so I just wrote out 1-15 chose 8 as a starting place (it was in the middle) and went on from there. I did attempt it at first with 1 at the start, which was not a great idea, and led to many minutes of just staring angrily at the paper...
@hermimonk2748
@hermimonk2748 6 жыл бұрын
Fun puzzle! I always love these videos. Keep up the great work!
@6099x
@6099x 6 жыл бұрын
love matt in these numberphile vids, such a cheerful maths guy
@Calumba1904
@Calumba1904 6 жыл бұрын
I almost got it but a couple of numbers were in the wrong place. I called it The Parker Sequence.
@DaTux91
@DaTux91 6 жыл бұрын
I went with the way I intuitively thought it would work, if it worked at all. So I started with 1 and then took the highest possible number to pair up with it, then the lowest possible number to pair up with that one, then the highest again, and so forth. This gave me 1, 15, 10, 6, 3, 13, 12, 4, 5, 11, 14, 2, 7, 9. Then I slapped the remaining 8 in front and Bob's your uncle. Didn't watch the rest of the video yet and I don't know if this is significant in any way, but I notice that the squares form a pattern: 9, 16, 25, 16, 9, 16, 25, 16, 9, 16, 25, 16, 9, 16.
@iman3508
@iman3508 6 жыл бұрын
Yeah I got the same sequence
@RWBHere
@RWBHere 6 жыл бұрын
The pattern of squares should change in interesting ways as the available integer set becomes larger.
@keeperofthegood
@keeperofthegood 6 жыл бұрын
Not only the squares. And not only a pattern. When you make an ordered list of possibles [1,3][2,2][1,3] in rows for squares 4 9 16 25 etc there is oscillations both when just listed 1 to 25 or listed in solution order. Also as you approach a point of it failing the pattern breaks.
@glarynth
@glarynth 6 жыл бұрын
When I paused the video I wrote 1 through 15 in a circle clockwise and then added the edges. The result is approximately a square grid (if you ignore the [1, 3] link, which isn't used anyway). The horizontal edges are the ones that sum to 16, while the verticals are 25 on the left, 9 on the right. As you trace the path, you have to alternate horizontal with vertical, and left-side with right-side. So there's at least some geometric significance to the pattern. Try it!
@TheReligiousAtheists
@TheReligiousAtheists 6 жыл бұрын
DaTux91 I did it by getting rid of all the square numbers first. So I crammed them in as soon as I could. My sequence was 9,7,2,14,11,5,4,12,13,3,6,10,15,1,8. I got it right the first time itself using this method. I left out 1 for later, though, because it's pretty easy to link various numbers using 1. My pattern was 16 9 16 25 16 9 16 25...
@yakov9ify
@yakov9ify 6 жыл бұрын
Matt gave the same problem when he met our school! Thnx for the amazing day Matt.
@JPaulDiLucci
@JPaulDiLucci 6 жыл бұрын
Parker always gives great exposition, enthusiastic and enlightening
@Electronieks
@Electronieks Жыл бұрын
Solved today
@km-sc4kz
@km-sc4kz 6 жыл бұрын
The first time I tried this, I started with 8, 1,15 - and so because there was only one path-I got it on the first go, this is really cool!
@purplekiwis16
@purplekiwis16 6 жыл бұрын
This whole video is so interesting to me. When the puzzle was first explained at the beginning, I really didn't think it would be that difficult. But once I thought about it and tried doing it out in my head I realized how difficult it really is. I think it's so cool how at first glance it really doesn't seem all that challenging when in reality it actually takes a lot of dedication and it must be perfect. What confused me the most about this is how it works up to any number, not just 15. This video inspired me to try solving this puzzle which I quickly gave up on out of frustration.
@cortster12
@cortster12 6 жыл бұрын
I would bave never come up with such a solution. Brilliant.
@bokkenka
@bokkenka 6 жыл бұрын
"I deliberately and meanly gave you a -- umm -- a starting point that does not work." "Why would you do that?!" "Because I am angry at the world about my hairline."
@to2podemosaprender630
@to2podemosaprender630 4 жыл бұрын
Hahaha
@ZePeniz
@ZePeniz 6 жыл бұрын
That sneaky Parker square
@jameswilson8270
@jameswilson8270 5 жыл бұрын
Amazing channel! Thanks guys!
@featheredice
@featheredice 6 жыл бұрын
This is actually a very similar topic to what I did my dissertation on. I was looking for patterns amongst numbers such that a + b^2 = c^2 a - b^2 = d^2 where a,b,c,d are all natural numbers and b^2 is the next square number below a such that no number (we'll call e) exists where b^2 < e^2 < a
@janeerland6449
@janeerland6449 6 жыл бұрын
@Numberphile Where is the video on the new biggest known prime number?
@TaiFerret
@TaiFerret 6 жыл бұрын
There is no biggest prime number.
@janeerland6449
@janeerland6449 6 жыл бұрын
TaiFerret 'known'
@shadowshedinja6124
@shadowshedinja6124 5 жыл бұрын
@@janeerland6449 there is no biggest known prime. There are mathematical formulas that give a prime number for any positive integer input (though none yet that list every prime).
@I1am2me3DuhP
@I1am2me3DuhP 5 жыл бұрын
He means the biggest prime that's currently been found. We know that they keep going, but mathematicians (and this very channel) frequently like to discuss when the new largest "known" prime is determined.
@shadowshedinja6124
@shadowshedinja6124 5 жыл бұрын
@Keks 257 any prime above 3 can be described by either 6x+1 or 6x-1
@3ckitani
@3ckitani 6 жыл бұрын
I can tell what will happen in the comments just by looking at the thumbnail and the title of this video.
@subhoghosal7
@subhoghosal7 6 жыл бұрын
@Numberphile I have a question on the execution of the code of finding hamming path. It is known that the problem is NP-Complete and as you shown your program can compute the Ham-path quite quickly. I used standard SAT solvers, for the same problem, but could not reach any closer to the speed you are showing. Can you provide the tools you used?
@orthoplex64
@orthoplex64 6 жыл бұрын
I solved it by writing a program to iterate permutations of (1,2,...,14,15) with early pruning. Associating numbers with lists of numbers that can be added to them to make squares occurred to me only as an optimized alternative to checking each remaining element; I didn't realize you could just make a graph out of it and find solutions as paths
@franzscheerer
@franzscheerer 8 ай бұрын
It is much faster than to go through all permutations.
@idjles
@idjles 6 жыл бұрын
i just came for the Parker Square jokes..
@ElliottLine
@ElliottLine 5 жыл бұрын
Something really cool happens if you use Fibonacci numbers instead of Square numbers. You can string together all of the numbers from 1 to Fn -1 and the pair sums will just F(n-1), Fn and F(n+1). For example, up to 20 is 17,4,9,12,1,20,14,7,6,15,19,2,11,10,3,18,16,5,8,13 and the pair sums will be 21,13,21,13,21,34, etc.
@franzscheerer
@franzscheerer 8 ай бұрын
Lets list the first Fibonacci numbers 1,1,2,3,5,8,13,21,34 so that we can check it.
@franzscheerer
@franzscheerer 8 ай бұрын
Can you prove that?
@franzscheerer
@franzscheerer 8 ай бұрын
Yes, the last two numbers are Fibonacci numbers. I can add them to find the next Fibonacci number. So I can extend this list by the following Fibonacci numbers.
@radreonx5386
@radreonx5386 6 жыл бұрын
I solved this in about 5 minutes. Before I watch the rest of the video, I'd just like to say how I did it. So I first added 14 and 15, the two largest numbers and got 29. Therefore the largest square number that can possibly appear is 25. I then took a random number from the list, e.g. 11, then went, well, 11 can form 25 or 16 (both greater than itself, of course) with two other numbers, which will be 5 and 14. This means 5 and 14 will be on either side of 11. Then I did the same thing for 5 and 14, finding the two numbers that they will be in between, one of which will be 11. Repeating this process is quite easy and the chain quickly formed. There are two particular numbers that I came across when doing this, which are 3 and 9 (1 also, but by the time I got to 1 there was only 8 left); 9 only worked with 7 for 16, and since there's no 0 or 16, it must be on one end of the chain, or string. Eventually things pieced together and gave me the answer (I think that's right, I'm gonna hope he doesn't say that it's actually impossible and I did or understood something wrong). So now I'll go finish the video and see if they did it the same way :) Edit: I meant 8, 3 was already used so it wouldn't be the other end. Idiot.
@SchutzmarkeGMBH
@SchutzmarkeGMBH 6 жыл бұрын
I've literally done this yesterday after reading in Matts book.
@GreenMeansGOF
@GreenMeansGOF Жыл бұрын
This problem has now been solved!🥳
@TTnarg1
@TTnarg1 Жыл бұрын
yes, see video by HexagonVideos
@PasseScience
@PasseScience 6 жыл бұрын
Cycles are clearly more fun than path. Give us a value with an hamilonian cycle!
@Cernoise
@Cernoise 6 жыл бұрын
I wrote a script to generate square sums graphs in OmniGraffle when I read about this in your book, and I started work on a script to try to find a Hamiltonian path through any given OmniGraffle graph, but I got distracted by another project. I did solve some big square sums graphs but it didn’t work on all the ones where it’s possible because I didn’t get around to adding proper backtracking.
@johnchessant3012
@johnchessant3012 6 жыл бұрын
Two Matt Parker videos in one day? Awesome.
@dermathze700
@dermathze700 6 жыл бұрын
The thumbnail gave it a bit away how you can solve it (even though it had different numbers): 9,7,2,14,11,5,4,12,13,3,6,10,15,1,8
@cilingirc
@cilingirc 6 жыл бұрын
Der Mathze omg , is there only one way to solve ? I find it same
@theboss112358
@theboss112358 6 жыл бұрын
Technically 2 but you can reverse it.
@mattasker1914
@mattasker1914 6 жыл бұрын
Something something Parker Square something something.
@felicitas206
@felicitas206 6 жыл бұрын
MattTheCatThatShatInTheHat I had a good laugh at that
@brokenwave6125
@brokenwave6125 6 жыл бұрын
Please stop
@julianbufarull7602
@julianbufarull7602 5 жыл бұрын
The new Parker Square update is looking great!
@SquirrelASMR
@SquirrelASMR 2 жыл бұрын
What about finding one that cycles for higher numbers? So the first and last also look around to add a square number?
@kujmous
@kujmous 6 жыл бұрын
Hamiltonian? I'm not throwing away my, plot! I'm not throwing away my, plot!
@bwayagnes2452
@bwayagnes2452 6 жыл бұрын
kujmous 😂😂😂 omg HAHAHAHA
@callumwilliams2172
@callumwilliams2172 6 жыл бұрын
What if instead of squared number it's a cubed number
@baguettely
@baguettely 6 жыл бұрын
Callum Williams I've gone up to 100 and it's not worked thus far, apart from a list 1 number long. Cuz, you know- 1. It looks as though it's either going to be a pretty massive number or impossible. I have no proofs or anything though. :/
@andrewxc1335
@andrewxc1335 6 жыл бұрын
It's pretty boring; there aren't a lot of connections for any of the lower cubes, and eventually, they may get added in, but like I said... boring. I'm actually adding them by pairs: 27 is 1+26 or 2+25 or 3+24 or ... , so it may make the whole thing harder.
@carabarnes1254
@carabarnes1254 6 жыл бұрын
8 27 64 125 I would try with 124 numbers does that work?
@baguettely
@baguettely 6 жыл бұрын
Ooh, I want to do the prime one now...
@baguettely
@baguettely 6 жыл бұрын
cara cara orange it doesn't unfortunately. They just hang together in little clumps of 4s or so.
@yungml
@yungml 6 жыл бұрын
Did it! Paused at 0:58 9,7,2,14,11,5,4,12,13,3,6,10,15,1,8. So the pattern of sums goes: 16, 9, 16, 25, 16, 9, 16, 25... and so on
@refeez3700
@refeez3700 6 жыл бұрын
Excellent problem, clear explanation. What more could you ask for on a foggy Friday morning, right?! Cheers!
@albertb8999
@albertb8999 6 жыл бұрын
0:08 Best editing I've ever seen
@albertb8999
@albertb8999 6 жыл бұрын
And the most useful one!
@agrajyadav2951
@agrajyadav2951 Жыл бұрын
Well guess what Matt merry Christmas the problem's been solved
@jbeninson
@jbeninson 6 жыл бұрын
I started by listing the possible squares: 4, 9, 16, 25. These are the only options that could result from adding two numbers between 1-15. Then I looked at possible pairings and I realized that 8 can ONLY pair with 1. The only way to get to another square using 1-15 would be to add 8 to itself, which isn't allowed. Based on that, I knew that the number line had to start 8, 1... After that, there was only one question: Does 1 pair with 3 to make 4 or 15 to make 16. I tried 3 first and ran out when I hit 9 (8 1 3 13 12 4 5 11 14 2 7 9). Since that didn't work, the only other option was to pair 1 with 15.
@Xelianow
@Xelianow 6 жыл бұрын
While talking about hamilton graphes: Does anyone know whether there exists a easy test on whether a grid graph has a hamiltonian path? I know that there does not exist an easy test for hamiltonian paths in graphs in general, but does it exist for grid graphs?
@AtlasReburdened
@AtlasReburdened 6 жыл бұрын
I'm going to ignore the fact that it is believed to work ad infintum past 25 and focus exclusively on the fact that it works for 42.
@AnirudhGiri
@AnirudhGiri 6 жыл бұрын
When will you make a video on the Parker Square-sum problem?! :D
@brokenwave6125
@brokenwave6125 6 жыл бұрын
Andrew S Please stop. Youre not clever or funny.
@elfro1237
@elfro1237 3 жыл бұрын
Broken Wave look in a mirror
@828burke
@828burke 6 жыл бұрын
For once I solved one before watching through! my order is 9-7-2-14-11-5-4-12-13-3-6-10-15-1-8. I found it by making a grid, with 1-15 on one side, and 1, 4, 9, 16, and 25 on the other (as 36 is greater than 29, or 14+15) and writing in the number required to sum to the top square with the left number. crossing out all cases where the number was outside of 1-15, or the number was the same as the side number (2+2=4), i was left with one case where the number could only sum with one number : 9, with 7. I then made a tree diagram, using the numbers as a choose-your-own-adventure book guide. where there were two possible choices, i followed them both until one terminated (by not having an option that was not already used.)
@travishayes6037
@travishayes6037 6 жыл бұрын
such a badass problem and awesome solution
@IceMetalPunk
@IceMetalPunk 6 жыл бұрын
I've apparently forgotten some important bits of my graph theory course during my computer science degree, because I'm now wondering if it's possible to efficiently calculate (a) whether a Hamiltonian path exists for any given graph and (b) what one example of such a path is for that graph. I know the TSP is NP-complete, but that's specifically looking for the *shortest* Hamiltonian; I don't remember if there was a verdict on calculating *any* Hamiltonian...
@joshuatilley1887
@joshuatilley1887 6 жыл бұрын
all hamiltonian paths are the same length
@littlebigphil
@littlebigphil 6 жыл бұрын
"In general, the problem of finding a Hamiltonian path is NP-complete (Garey and Johnson 1983, pp. 199-200), so the only known way to determine whether a given general graph has a Hamiltonian path is to undertake an exhaustive search." - Wolfram MathWorld, "Hamiltonian Path" TSP is looking for a Hamiltonian cycle, not a path. Hamiltonian paths aren't the same length on a weighted graph.
@s1ddh4r7h.p
@s1ddh4r7h.p 6 жыл бұрын
Where's the next calculator unboxing video at
@WaffleAbuser
@WaffleAbuser 6 жыл бұрын
Is there a sequence for this in OEIS? Number of Hamiltonian paths for n nodes?
@yotsuyuyagiyama2443
@yotsuyuyagiyama2443 2 жыл бұрын
I made a chart of the “factors” of each number, then I used those to make a “factor tree” and I got my answer!
@pauljmorton
@pauljmorton 6 жыл бұрын
Goes through all the vertices ALEXANDER HAMILTONian path
@baguettely
@baguettely 6 жыл бұрын
A jacksfilms + numberphile viewer? Is this for real?! 😂
@oldcowbb
@oldcowbb 6 жыл бұрын
me me big boy
@baguettely
@baguettely 6 жыл бұрын
oldcowbb me me math boy
@yeremiafrans9425
@yeremiafrans9425 6 жыл бұрын
Me me number boy
@bwayagnes2452
@bwayagnes2452 6 жыл бұрын
XD
@IvanMiletic
@IvanMiletic 6 жыл бұрын
It's actually pretty easy. I started with 15 because it only makes a square with 1 and 10, and I just went in both directions and branched out from each next number to all possible "partners". Took me about ten minutes. Edit: Just realised that I sould've started with 9 cause it makes a square with only 7.
@sashulkagyl4781
@sashulkagyl4781 6 жыл бұрын
Ivan Miletic or you could start with 8 and 1
@GoScience123
@GoScience123 6 жыл бұрын
I found all the possible sums to make a square for each number and that left me knowing that 8 and 9 only added with one other number to make a square. This allowed me to put those at the ends, then work my way inwards with the other numbers. I finished in the same amount of time. It's cool to see how many diff ways people went about solving this.
@EmanuelsWorkbench
@EmanuelsWorkbench 6 жыл бұрын
Love the SET game on the shelf in the background! :-)
@johnchessant3012
@johnchessant3012 6 жыл бұрын
But can you draw the square-sum graph with no edges crossing? If you can't, can you do it on a coffee mug? (Notice the utilities coffee mug in the background.)
@alexandergallon8850
@alexandergallon8850 6 жыл бұрын
I spy a utilities mug in the background. #shamelessproductplacement #gocheckoutmathsgear
@SimonClarkstone
@SimonClarkstone 6 жыл бұрын
That's been around in the videos for ages. It took me a while to request what it was.
@peppybocan
@peppybocan 6 жыл бұрын
Parker Square Number!
@emilyrln
@emilyrln 6 жыл бұрын
If you put the numbers in a circle, it’s easier to visualize the path as it bounces around and around... very neat problem! Thx for sharing! :D (I love it when I can actually solve these... so often I get stumped or run out of patience, but this was a fun little puzzler!)
@kale.online
@kale.online 6 жыл бұрын
I see Matt Parker, I tune in for a good mornings working out
@NKP723
@NKP723 6 жыл бұрын
Feels similar to the 7 bridges of Konnsburg
@MisterAppleEsq
@MisterAppleEsq 6 жыл бұрын
Check the bonus video, he mentions that.
@Shadow81989
@Shadow81989 6 жыл бұрын
It's easier though. Took me under 5 minutes, most of that was just creating a table, to list for each of the numbers, which of the other numbers add to a square. Figuring out the solution took about a minute after that list was done, as there are no choices, no trial and error...
@viktor6417
@viktor6417 6 жыл бұрын
Best I did was 15,10,6,3,13,12,4,5,11 :(
@rayp526
@rayp526 6 жыл бұрын
You're on the right track, keep going! :)
@VansSk8r990
@VansSk8r990 5 жыл бұрын
I went about a different way actually! Looking at which numbers fit with just one other number (with the original 15). I realized that 8 only pairs with 1 and 9 works solely with 7. Knowing that, I went off starting with 8 and came up with the same order as in the video. Neat puzzle! I’m going to have to challenge my pals with this one to see if they can solve it.
@Lootiehootie
@Lootiehootie 6 жыл бұрын
Took me about a minute. I noticed that starting from the ends (1 and 15) and working inward, every number except for eight could be used to add to 16. Similarly, all numbers eight and below could be used to make nine and all of the ones greater than nine could be used to make 25. I then started with eight and matched up the 16-pairs like dominoes. 8,(1,15),(10,6),(3,13),(12,4),(5,11),(14,2),(7,9)
@benjames9153
@benjames9153 Жыл бұрын
i got that too!
@sebastianespejoloyaga7603
@sebastianespejoloyaga7603 6 жыл бұрын
#ParkerSolution
@sebastianespejoloyaga7603
@sebastianespejoloyaga7603 6 жыл бұрын
Because you don't have a way to go to every path, you can't go through 3 and 1.
@alephnull4044
@alephnull4044 6 жыл бұрын
It's very easy because 9 must be at one endpoint, then all the other numbers are uniquely determined. So you can even conclude there are only two such sequences.
@FinetalPies
@FinetalPies 6 жыл бұрын
More than that, 8 must go on the other end.
@alephnull4044
@alephnull4044 6 жыл бұрын
That's included in what I said - all the other numbers are uniquely determined.
@JamesSpeiser
@JamesSpeiser 6 жыл бұрын
nice
@TheBlazeThrower
@TheBlazeThrower 6 жыл бұрын
Yeah, that's how I solved it in a minute or two
@tgwnn
@tgwnn 6 жыл бұрын
Aleph Null It's not really included in what you said. You could have a series in which a number with 2 possible neighbours needs to go to the other end out of necessity.
@davideographer4410
@davideographer4410 6 жыл бұрын
Solved it in 10-12 minutes! Here's how: I wrote down every number from 15 down to 1, and alongside it I wrote any other number(s) which would make it a square sum. (e.g. 15: 1, 10; 14: 2, 11; 13: 3, 12; etc.). Two numbers (8 and 9) had only one pair (1 and 7, respectively), so I decided to use one of those as the starting point of the sequence. Starting with 8, I put its only pair, 1, next to it. I then looked back at my chart to see in which other lines did 1 appear. The only other place it appeared was in the first line (15: 1, 10). And out of those three numbers, the only one that would make a square sum was 15, so I used that to continue the sequence. So then, 15 worked with both 1 and 10, but since 1 had already been used, I chose 10. In turn, 10 worked with both 6 and 15, but since 15 had already been taken, I chose 6. I followed this pattern until I used up all the numbers exactly once. This resulted in the finished sequence.
@CyniuxD
@CyniuxD 6 жыл бұрын
Not sure if I was lucky enough to do it by first shot - I've decided to connect 1 and 15 (biggest and lowest) at first and simply go on. Is there any explaination or a rule why it went that easy for this?
@moroccangeographer8993
@moroccangeographer8993 6 жыл бұрын
8,1,15,10,6,3,13,12,4,5,11,14,2,7,9
@moroccangeographer8993
@moroccangeographer8993 6 жыл бұрын
If you reverse the order it's still a valid solution because addition is commutative
@mahendragupta2896
@mahendragupta2896 6 жыл бұрын
Same After 2.43 minutes
@mahendragupta2896
@mahendragupta2896 6 жыл бұрын
After 3 it started do find the correct number automatically
@arthbanka7960
@arthbanka7960 6 жыл бұрын
More like Parker square sum ( someone had to do it )
@KyleJMitchell
@KyleJMitchell 6 жыл бұрын
And since literally millions of people already have, you didn't need to.
@samhenrich1618
@samhenrich1618 6 жыл бұрын
Hi Brady, I think it would be awesome for guys like Matt or James etc. to mention (the link in the description to) their KZbin channels in the actual video to support them.
@vladimir520
@vladimir520 4 жыл бұрын
Absolutely nailed it on my first go; figured out Matt was trying to pull me a Parker Square :P
@honzazak1493
@honzazak1493 6 жыл бұрын
...so you could actually do 0-17 !! Just add the zero behind the 16 :-P
@ashley2khoo510
@ashley2khoo510 6 жыл бұрын
Parker sum
@orsonzedd
@orsonzedd 6 жыл бұрын
Love the Parker Square background
@adilkhatri7475
@adilkhatri7475 6 жыл бұрын
how much time would it take to write computer program?
@aWildLupi
@aWildLupi 6 жыл бұрын
so, is this a parker square-sum problem?
@gabinletueur
@gabinletueur 6 жыл бұрын
This joke is so annoying
@aWildLupi
@aWildLupi 6 жыл бұрын
I just had to give it a go!
@brokenwave6125
@brokenwave6125 6 жыл бұрын
Kolly.G Yeah...its so used up and far from funny. People see the word "square" now and they think its so clever to make the same joke as everyone else.
@rossetto23
@rossetto23 6 жыл бұрын
I didn't see the answer yet, but: 9,7,2,14,11,5,4,12,13,3,6,10,15,1,8 I generated a list of pair of numbers that summed give a square number between 4 (the lowest square number you make up) and 25 (the higher square number you make up). The code to do this on Python is: i=1 while i
@joshtheegotist
@joshtheegotist 6 жыл бұрын
Neat I got a different order... 8, 1, 15, 10, 6, 3, 13, 12, 4, 5, 11, 14, 2, 7, 9
@Shadow81989
@Shadow81989 6 жыл бұрын
If you turn it around, you will see it's the same order, just inverted. I put the numbers in Excel (more convenient for me than coding something), and made a list: For every number from 1 to 15, which of the other number(-s) can you use, to add up to any square number. This quickly shows that 8 and 9 only have one "partner", so they can't be anywhere in the middle. Then I worked my way in - for the first step there was only one possibility from either end, but from the end starting 8-1, you have 2 choices. So I left that open, went from the other end, and voila: There was only one choice at any given point, until it was finished, because for the numbers that connect to 3 others, one of these 3 had been used on a previous step, one came immediately before it, so only one was left to follow. Took about 5 minutes, I think, to prove by example that there is one and ONLY one way.
@theomeletteguy9353
@theomeletteguy9353 6 жыл бұрын
When I first saw this in Matt's book, I wanted to see if I could do it with the numbers 1-25. I did, and I was surprised to see that with the way I had written the puzzle, it ended with my birthday 7-18 !
@littlebigphil
@littlebigphil 6 жыл бұрын
Before watching Parker's method: 8,1,15,10,6,3,13,12,4,5,11,14,2,7,9 I made a 15x15 addition table in excel, and highlighted all the cells which added to a square. Then I eliminated the cells which were along the main diagonal, to get rid of a+a squares. I observed that 8 and 9 had to be on the edge of the list, because they only add up to a square with one other number each. So I picked one of them arbitrarily and did a manual depth first search until I found a successful list. After watching Parker's method: In my method I created the adjacency matrix for the graph he created. I prefer my method because it makes it harder to miss squares, and you can use the properties of addition to draw diagonal lines perpendicular to the main diagonal to make connections easier to create.
@thepoolisdead7481
@thepoolisdead7481 6 жыл бұрын
Matt noes da wae
@leochang3328
@leochang3328 6 жыл бұрын
I just tried by myself, the game can actually be extended to 1-17 Fml I didn't finish the video I'm sorry
@standupmaths
@standupmaths 6 жыл бұрын
That's ok: you gave it a go and you got excited!
@FrostDirt
@FrostDirt 6 жыл бұрын
standupmaths Hey!
@KyleJMitchell
@KyleJMitchell 6 жыл бұрын
Encouraging experimentation and discovery regardless of what others may have previously found is the best thing you could be doing. You're a hero of mine, Matt Parker.
@PrincessAquos
@PrincessAquos 6 жыл бұрын
I DID IT! I paused at "Give it a go" and I found a working order within a few minutes. Took some careful thinking to work my way around it though! I'll put it below a bit of a spoiler buffer. Awesome puzzle, onward to the rest of the video now! . . . . . . . 8, 1, 15, 10, 6, 3, 13, 12, 4, 5, 11, 14, 2, 7, 9 I noticed that 8 can only sum up to 9 with 1 (because 8 + 8 is 16, but there's only one 8, and 8 + 17 is 25, but 17 is not a valid number) so it is an endpoint. 9 also can only sum up to 16 with 7, because 0 is not one of the numbers, making it the other endpoint. Ultimately though, it helped to write down the combinations that could sum up to 25, since there are only 3, and use those as many times as possible to make the most of the space and spread the high numbers out a little.
@yousteve221
@yousteve221 5 жыл бұрын
Is there a derivation of a rule set that defines a herbrand structure... i.e. Starts and finishes at the same point (obviously in this instance one node is revisited)?
@carabarnes1254
@carabarnes1254 6 жыл бұрын
8 1 15 10 6 3 13 12 4 5 11 14 2 7 9 This is what I got I hope I'm right
@Rubiking
@Rubiking 6 жыл бұрын
I was told in school that the path which Matt calls Hamiltonian is called Eulerian...
@burk314
@burk314 6 жыл бұрын
A Hamiltonian path visits each vertex exactly once. A Eulerian path follows each edge exactly once. They sound very similar, but the existence of one does not imply the existence of the other.
@frechjo
@frechjo 6 жыл бұрын
Is then the Eulerian path of a graph the Hamiltonian path of its dual, and vise versa?
@ajbastian
@ajbastian 6 жыл бұрын
Yes fede it is exactly
@ajbastian
@ajbastian 6 жыл бұрын
On second thought , not quite... The inverse of a graph replaces the "faces" with vertices and then connects the new vertices with new edges... I see why you would think the eulerian/Hamiltonian/inverse graph connection as I fell for it too
@frechjo
@frechjo 6 жыл бұрын
Ah, right! Dual is the facesvertices change. Is there a name for a graph that changes verticesedges? I know I've seen that thing somewhere... Category Theory maybe? :/ Thanks!
@rogercarl3969
@rogercarl3969 6 жыл бұрын
I solved it a little differently but it still worked out. I made a chart of all the pairs that sum to equal squares: 4: (1,3) 9: (1,8*), (2,7,), (3,6), (4,5) 16: (1,15), (2,14), (3,13), (4,12), (5,11), (6,10), (7,9*) 25: (10,15), (11,14), (12,13) Then I noticed that 8 and 9 (as indicated by the *) were only used once so they must each be a terminus. With 8 paired with 1 and 1 going with either 3 or 15 I decided to run it beginning with 9 crossing out the pairs as I write the next number down. e.g. 9 goes with 7 write down “9, 7” and cross out (7,9) on my chart. Then I find 7 goes with 2 so I write “,2” on the line and cross out (2,7). Thus I got the following: 9, 7, 2, 14, 11, 5, 4, 12, 13, 3, 6, 10, 15, 1, 8. This was all fifteen numbers. I do realize the (1,3) was left over but that didn’t matter the problem was solved. Once I had the chart written out the path was basically there for me follow. In fact it took me more time to write this explanation than to solve it.
@leooel4650
@leooel4650 2 жыл бұрын
Nice!
@kindlin
@kindlin 6 жыл бұрын
Only needing to go from 1 to 15, I was able to brute force it by hand pretty quickly. There is only 1 other possible ordering of numbers besides the one he showed us, and the partial solution he showed us is ruled out without us even needing to try it. (The solution is at the bottom) Largest considered number = 14+15 = 29 Usable square numbers = 4, 9, 16, 25 Possible links: 4: 1,3 9: 1,8 2,7 3,6 4,5 16: 1,15 2,14 3,13 4,12 5,11 6,10 7,9 25: 10,15 11,14 12,13 The first thing I noticed was that almost every number had only 1 possible connection besides 3 and 1. Then I saw that 9 and 8 didn't have any connections at all, so they must be your starting and end points. Starting with 9: 9, 7, 2, 14, 11, 5, 4, 12, 13, 3 ... could now be 1 or 6 Starting with 8: 8, 1... could now be 15 or 3; however, 3 is already in the first string of numbers and we would still be missing numbers, so it must be 15. 8, 1, 15, 10, 6, 3 ... and we reached 3 again, so this has to be the solution as he said there is one. If this didn't work it would be impossible. Solution (can be reversed): 8, 1, 15, 10, 6, 3, 13, 12, 4, 5, 11, 14, 2, 7, 9
Numberphile's Square-Sum Problem was solved! #SoME2
26:37
HexagonVideos
Рет қаралды 336 М.
Golden Ratio BURN (Internet Beef) - Numberphile
11:23
Numberphile
Рет қаралды 594 М.
О, сосисочки! (Или корейская уличная еда?)
00:32
Кушать Хочу
Рет қаралды 8 МЛН
Pray For Palestine 😢🇵🇸|
00:23
Ak Ultra
Рет қаралды 28 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
The Square-Sum Problem (extra footage) - Numberphile
8:19
Numberphile2
Рет қаралды 188 М.
What's special about 277777788888899? - Numberphile
14:24
Numberphile
Рет қаралды 2,2 МЛН
Cannons and Sparrows - Numberphile
22:32
Numberphile
Рет қаралды 518 М.
The Feigenbaum Constant (4.669)  - Numberphile
18:55
Numberphile
Рет қаралды 1,5 МЛН
Beautiful Card Trick - Numberphile
13:15
Numberphile
Рет қаралды 1,8 МЛН
Big Factorials - Numberphile
12:27
Numberphile
Рет қаралды 379 М.
How thick is a three-sided coin?
14:53
Stand-up Maths
Рет қаралды 973 М.
The Silver Ratio - Numberphile
16:21
Numberphile
Рет қаралды 898 М.
Your understanding of evolution is incomplete. Here's why
14:21
Huawei который почти как iPhone
0:53
Romancev768
Рет қаралды 453 М.
Carregando telefone com carregador cortado
1:01
Andcarli
Рет қаралды 1,9 МЛН
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 398 М.
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 2,4 МЛН
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 2,4 МЛН