WEBVTT
Kind: captions
Language: en-GB

00:00:00.160 --> 00:00:01.790
[Past Matt] "This one,
because my favourite number

00:00:01.790 --> 00:00:04.590
(for&nbsp;a very personal reason)
and the reason

00:00:04.590 --> 00:00:11.671
I absolutely love it, is that in&nbsp;
the year 2025 I will turn 45.

00:00:11.671 --> 00:00:14.880
[Music plays]

00:00:14.880 --> 00:00:21.200
And so for a brief moment, I will turn the exact&nbsp;
square root of the then current year.

00:00:21.200 --> 00:00:24.380
I mean, what a birthday party that's going to be!
It's going&nbsp;to go off."

00:00:24.380 --> 00:00:25.480
[Time travel music and effects play]

00:00:25.480 --> 00:00:27.120
[Past Matt] "I'm not calling it
The Parker Square."

00:00:27.120 --> 00:00:30.058
[TV Presenter] "Obviously blue and black.
It is totally blue and black!"

00:00:30.058 --> 00:00:32.940
[Past Matt] "Ladies and Gentlemen.&nbsp;
I have really Excelled myself."

00:00:32.940 --> 00:00:35.780
[TV Presenter] "Pokemon Go has
only been on for a few days."

00:00:35.780 --> 00:00:40.473
[Sports Caster] "It's going&nbsp;to be a tough
play... The Cubs win The World Series!"

00:00:40.473 --> 00:00:45.700
[Past Matt] "A real football has light
hexagons and dark pentagons.

00:00:45.700 --> 00:00:50.990
I don't&nbsp;know if I brought this up earlier,
Hannah, but it's 80% accurate."

00:00:50.990 --> 00:00:54.460
[TV Presenter] "The first ever glimpse&nbsp;
of a black hole in space."

00:00:54.460 --> 00:00:56.820
[Past Matt] "There it is. That's the sign."

00:00:56.820 --> 00:00:59.510
[TV Presenter] "... tropical rainforest
to the edge of the&nbsp;time itself."

00:00:59.510 --> 00:01:03.780
[Past Matt] "Made it over
4 million percent better.

00:01:03.780 --> 00:01:09.280
Ah, ha ha ha ha...
Oww!... Ahhh..."

00:01:09.280 --> 00:01:11.850
[TV Presenter] "Willy Wonka experience
in Glasgow."

00:01:11.850 --> 00:01:13.600
[Past Matt] "I am&nbsp;going to work
one of these out by hand.

00:01:13.600 --> 00:01:16.106
I'm going to try and calculate pi by hand again.

00:01:16.106 --> 00:01:17.270
By hand.

00:01:17.270 --> 00:01:17.850
By hand.

00:01:17.850 --> 00:01:20.880
A record amount of pi by hand."

00:01:20.880 --> 00:01:22.730
[Music stops]

00:01:22.730 --> 00:01:23.200
[Party popper and whistle sound]

00:01:23.200 --> 00:01:27.480
[Current Matt] It's 2025!
10 years after that Numberphile Video

00:01:27.480 --> 00:01:32.260
and we are finally here. Of course,
I had to make a video to celebrate.

00:01:32.260 --> 00:01:34.440
Although, if&nbsp;you know the original video,

00:01:34.440 --> 00:01:37.800
you realise this is not the
party hat I should be wearing.

00:01:37.800 --> 00:01:45.430
[Stand-Up Maths theme plays]

00:01:45.430 --> 00:01:46.800
[Past Brady] "You thought about what
you're going to do for your birthday?"

00:01:46.800 --> 00:01:50.760
[Past Matt] "Oh my goodness. I don't know.
I've still, I've still got a few, I got a decade

00:01:50.760 --> 00:01:54.220
of planning to go and it's
gonna, it'll be square themed.

00:01:54.220 --> 00:01:57.760
All&nbsp;the food will be square shaped and not cubes,

00:01:57.760 --> 00:02:03.840
not cuboids. People are thinking square cake.&nbsp;
No, it's, it's infinitely thin slices of square cake."

00:02:03.840 --> 00:02:06.720
[Current Matt] "Now, for the record,
I haven't had my&nbsp;birthday yet.

00:02:06.720 --> 00:02:10.870
It is 2025, my birthday is actually
dangerously close to the end of the year.

00:02:10.870 --> 00:02:14.080
It's&nbsp;like practically Christmas,
which is annoying for

00:02:14.080 --> 00:02:19.360
its separate birthday-related reasons. However,&nbsp;
I didn't want to do a video right at the end of

00:02:19.360 --> 00:02:23.520
the year when I should really be celebrating it&nbsp;
in the middle of the year. And this is the year,

00:02:23.520 --> 00:02:32.400
2025. It's a square number year. And I will turn&nbsp;
the exact square root of 2025. I will turn 45

00:02:32.400 --> 00:02:36.550
later this year, as will anyone who,
like me, was&nbsp;born in 1980.

00:02:36.550 --> 00:02:40.460
Now, I stand by all the maths in the
original video from 10 years ago.

00:02:40.460 --> 00:02:44.970
It's maths, It's all still correct.
And in that I talked about other years

00:02:44.970 --> 00:02:51.120
where you can turn a root of a&nbsp;future
year in that year. And I talked a lot about

00:02:51.120 --> 00:02:55.440
the year 2184. You can check that out at your own&nbsp;
leisure.

00:02:55.440 --> 00:02:59.980
[Past Matt] "Hello from the past.
Uh, this, this, this is how we used to live.

00:02:59.980 --> 00:03:05.560
Here are, the these are, we&nbsp;used to use
dead trees to store information.

00:03:05.560 --> 00:03:11.040
And although maybe all of anything digital will be&nbsp;
destroyed and people have no idea about YouTube,

00:03:11.040 --> 00:03:13.300
but they'll still have these books. We don't know."

00:03:13.300 --> 00:03:15.680
[Current Matt] "So, when I sat down
to make a video about 2025,

00:03:15.680 --> 00:03:21.440
which I knew I absolutely had to do, I suddenly&nbsp;
realised there's some more maths and I didn't

00:03:21.440 --> 00:03:26.560
notice this because I was making it all about me&nbsp;
and my birthday. But there's another fact about

00:03:26.560 --> 00:03:30.670
2025 that everyone can enjoy and
it's possibly&nbsp;more impressive.

00:03:30.670 --> 00:03:36.620
I was so focused on the fact that
2025 is a square number of 45.

00:03:36.620 --> 00:03:42.700
I didn't notice&nbsp;that 45 is a
triangle number of nine.

00:03:42.700 --> 00:03:48.740
And so you actually start with nine and
then you triangle it&nbsp;and then you square it.

00:03:48.740 --> 00:03:55.180
And while square numbers are wonderful,
big fan, triangle numbers, they're&nbsp;pretty cool.

00:03:55.180 --> 00:04:02.270
For example, did you realise bowling
is actually named after a triangle number?

00:04:02.270 --> 00:04:05.440
It's 10 pins because that's a triangle shape.

00:04:05.440 --> 00:04:08.450
1 + 2 + 3 + 4 is 10.

00:04:08.450 --> 00:04:13.260
And triangle numbers are just the sum
of consecutive numbers starting at 1.

00:04:13.260 --> 00:04:17.840
So it's not because 10's a nice round number.&nbsp;
It's because it's a triangle number. That does

00:04:17.840 --> 00:04:23.360
mean you could do any other triangle number.&nbsp;
And we care about the ninth triangle number,

00:04:23.360 --> 00:04:30.400
which actually means if you were to ask a bowling&nbsp;
alley very very nicely, it's technically possible

00:04:30.400 --> 00:04:32.864
to go 45 pin bowling.

00:04:32.864 --> 00:04:37.600
Thankfully, we were at&nbsp;
Murrayfield Indoor Sports Club in Edinburgh,

00:04:37.600 --> 00:04:44.720
and they were very accommodating. This is Graham,&nbsp;
absolute champ, crawling around to arrange the

00:04:44.720 --> 00:04:53.200
first ever setup for 45 pin bowling. Look at&nbsp;
it. It looks like there's some kind of glitch.

00:04:53.200 --> 00:04:59.120
Isn't that amazing? And if you take a close&nbsp;
look at the back row, there are indeed nine

00:04:59.120 --> 00:05:05.200
pins side by side. And it turns out that's&nbsp;
the maximum number of standard bowling pins

00:05:05.200 --> 00:05:10.700
that can fit on a standard width lane. This
is&nbsp;the maximum of triangle pin bowling.

00:05:10.700 --> 00:05:17.760
[SUM theme plays]

00:05:17.760 --> 00:05:26.320
Come on! No! No! Ah...

00:05:26.320 --> 00:05:34.080
Could have been the first ever... It was&nbsp;a
"Parker Strike". Unbelievable. One pin...

00:05:34.080 --> 00:05:39.680
So there you have it. The first ever
bowl of 45-pin bowling scored 44.

00:05:39.680 --> 00:05:44.970
And the first (and I suspect
only ever frame) was a spare.

00:05:44.970 --> 00:05:48.720
And I can't think&nbsp;of a better way
to celebrate the fact that 2025

00:05:48.720 --> 00:05:51.841
is the square number of a triangle number.

00:05:51.841 --> 00:05:54.311
[Matt in background] "Come on! No!"

00:05:54.311 --> 00:05:58.160
The&nbsp;main new fact that I only realised this year is

00:05:58.160 --> 00:06:04.080
that if you square a triangle number, which means&nbsp;
you're summing the numbers from 1 through to n and

00:06:04.080 --> 00:06:10.880
then squaring the total, that always gives you&nbsp;
exactly the same result as if instead you took

00:06:10.880 --> 00:06:17.102
the same numbers from 1 through n, cubed them all&nbsp;
first, and then sum them together.

00:06:17.102 --> 00:06:24.320
That's true for all triangle numbers. And because this is a very&nbsp;
rare year, that's the square of a triangle number.

00:06:24.320 --> 00:06:26.982
It's true of 2025.

00:06:26.982 --> 00:06:30.560
And now to explain why there&nbsp;
are piles of acrylic next to me. You see, I was

00:06:30.560 --> 00:06:35.120
talking to the people at Jane Street. They're a&nbsp;
financial company who sponsor a lot of my videos,

00:06:35.120 --> 00:06:43.200
including this one - bonus puzzle at the end. And&nbsp;
I pitched the idea of doing an installation in

00:06:43.200 --> 00:06:49.120
one of their offices based on the interesting&nbsp;
number facts around 2025. I thought that could

00:06:49.120 --> 00:06:53.840
be a lot of fun. We bounced this around between&nbsp;
some people who work at Jane Street and someone

00:06:53.840 --> 00:07:04.240
named Andy Neidmire suggested we take the fun fact&nbsp;
about 2025 being the sums of cubes and we use the

00:07:04.240 --> 00:07:11.840
related fact that turns it into what's called the&nbsp;
""Partridge Puzzle". And that's what we install in

00:07:11.840 --> 00:07:12.707
the Jane Street office.

00:07:12.707 --> 00:07:21.120
Hear me out. If the first&nbsp;nine cube-numbers
add to 2025, we could take all

00:07:21.120 --> 00:07:31.600
of those cubes and split them into layers. So the&nbsp;
9x9x9 cube could be nine layers that are each 9

00:07:31.600 --> 00:07:38.320
by 9 squares. And the 8 cube could be eight layers&nbsp;
that are all 8 by 8 squares. And then all the way

00:07:38.320 --> 00:07:43.760
down. And that's what I've got made out of acrylic&nbsp;
here. There's nine layers. Now, we could have made

00:07:43.760 --> 00:07:48.880
them all thick enough. This was an actual physical&nbsp;
cube. That wasn't necessary, so we didn't do that.

00:07:48.880 --> 00:07:54.400
But there are nine squares that are all 9 by 9.&nbsp;
We go all the way down to two squares that on

00:07:54.400 --> 00:08:00.720
the same scale are two by two. And then we have&nbsp;
a single one by one. That's technically the cube,

00:08:00.720 --> 00:08:06.720
but of course, it's a bit a little bit more flat.&nbsp;
Now, if you were to add up all of these squares,

00:08:06.720 --> 00:08:16.320
they should still sum to 2025. But because 2025&nbsp;
is a square number, if you had one giant square

00:08:16.320 --> 00:08:24.960
that's 45 by 45, it will have the same surface&nbsp;
area as all of these smaller squares. And the

00:08:24.960 --> 00:08:29.680
reason the person who first popularised this&nbsp;
relationship, someone named Robert Wainwright,

00:08:29.680 --> 00:08:35.840
called it the "Partridge Problem", is because&nbsp;
it's a bit like the 12 days of Christmas,

00:08:35.840 --> 00:08:41.040
but now there are nine squares of nine and then&nbsp;
all the way down. You can imagine how that goes.

00:08:41.040 --> 00:08:44.355
It's once again a Christmas song busting in on&nbsp;
my birthday.

00:08:44.355 --> 00:08:46.160
[Song to the tune of "12 Days of Christmas"]
"One, two, three..."

00:09:18.140 --> 00:09:23.600
Music aside, we wanted to physically make one&nbsp;
of these. So, we put together a massive one,

00:09:23.600 --> 00:09:29.280
got it manufactured and installed in the Jane&nbsp;
Street office in New York. And thankfully,

00:09:29.280 --> 00:09:31.890
I was recently able to visit it.

00:09:31.890 --> 00:09:35.680
And I was joined&nbsp;by Jane Streeter,
Sawyer Tabony. We had a bit of a

00:09:35.680 --> 00:09:40.400
play and first of all we thought we would show&nbsp;
every side length is 45 as a triangle number by

00:09:40.400 --> 00:09:46.800
stacking one of each square from 1 to 9 to show&nbsp;
they add to 45 which was fun. And then we set

00:09:46.800 --> 00:09:52.240
about playing with the pieces. We quickly realised&nbsp;
it's quite difficult to do. And you might be

00:09:52.240 --> 00:09:56.800
thinking well hang on just because the numbers are&nbsp;
the same the surface area of the square and the

00:09:56.800 --> 00:10:04.560
pieces is 2025 that doesn't necessarily mean there&nbsp;
is a solution. I mean that fact is necessary but

00:10:04.560 --> 00:10:05.855
it's not sufficient...

00:10:05.855 --> 00:10:07.887
[Matt] "And that's true in general."
[Sawyer] "Um, yep."

00:10:07.887 --> 00:10:09.350
[Matt] "For n."
[Sawyer] "That's that's true for any n.

00:10:09.350 --> 00:10:13.200
It's kind of a surprising fact
but yeah, yeah."

00:10:13.200 --> 00:10:14.788
[Matt] "And is this&nbsp;arrangement
true for any n?"

00:10:14.788 --> 00:10:16.720
[Sawyer] "Um, this arrangement

00:10:16.720 --> 00:10:20.154
does not exist for every n that that's a really&nbsp;
interesting question."

00:10:20.154 --> 00:10:23.860
[Matt VO] It turns out yes it only works for
the case n = 8 and upwards.

00:10:23.860 --> 00:10:27.740
And Sawyer&nbsp;and I had a closer
look at the case for n equals 3

00:10:27.740 --> 00:10:33.690
to give an example on a smaller easier scale&nbsp;
of why sometimes it can be impossible.

00:10:33.690 --> 00:10:36.901
[Matt] "Yeah. so you, you'd have a 3x3."
[Sawyer] "Yeah."

00:10:36.901 --> 00:10:37.810
.[Matt] "Which I guess, which is&nbsp;one of
those."

00:10:37.810 --> 00:10:39.530
[Sawyer] "One of these."
[Matt] "Let's just put that in the middle.

00:10:39.530 --> 00:10:41.170
So that's that."
[Sawyer] "Yep. Uh-huh."

00:10:41.170 --> 00:10:44.722
[Matt] "and in theory these would cover it.
[Sawyer] "Yep, they do in fact equal, in area."

00:10:44.722 --> 00:10:48.170
[Matt] "They do But that you have to 
double-cover the centre and you get that."

00:10:48.170 --> 00:10:50.650
[Sawyer] "And you miss there."
[Matt] "And that double cover should be there."

00:10:50.650 --> 00:10:52.680
[Sawyer] "Yep."&nbsp;
[Matt] "But there's, there's no other

00:10:52.680 --> 00:10:55.600
way to arrange those."
[Sawyer] "Yep, Exactly."

00:10:55.600 --> 00:11:04.000
[Matt] How about now? Okay. I mean, this&nbsp;
this is a it's a lot of fun to try and solve, but

00:11:04.000 --> 00:11:10.720
incredibly difficult. I I think I used the one up&nbsp;
too early, and now I've got these stacks. I mean,

00:11:10.720 --> 00:11:17.520
I probably could get away with all nines up the&nbsp;
side here, but these towers of six and five,

00:11:17.520 --> 00:11:22.800
I can't get out of that 'cos I've already used&nbsp;
up my two. Oh, there's not enough.

00:11:22.800 --> 00:11:27.210
It turns out it's very difficult for humans 
because when&nbsp;you're trying to put the

00:11:27.210 --> 00:11:32.810
last few pieces in, whether or not they fit is
is kind of predetermined&nbsp;by decisions you

00:11:32.810 --> 00:11:38.050
made ages ago, but you don't know if those 
decisions were right or wrong until&nbsp;you have

00:11:38.050 --> 00:11:43.560
to put a lot more effort in to fit the remaining
ones. So, you're kind of at the mercy of&nbsp;how

00:11:43.560 --> 00:11:48.540
lucky you were putting in the earlier pieces,
but with no way to know in advance whether

00:11:48.540 --> 00:11:50.230
or not you got it right.

00:11:50.230 --> 00:11:54.890
And we should just have a moment's
reflection for all of Bec Hill's&nbsp;free time that

00:11:54.890 --> 00:11:58.150
was consumed by this puzzle.
Bec was sharing a flat with me.

00:11:58.150 --> 00:12:02.000
We're at the Edinburgh Festival Fringe.
And despite my warning, she

00:12:02.000 --> 00:12:08.963
got a bit addicted to the puzzle. And it's so much&nbsp;
fun, but it's so hard. I'm sorry, Bec.

00:12:08.963 --> 00:12:14.560
That said, if like Bec Hill, you would like to waste vast&nbsp;
chunks of your free time and you can't be bothered

00:12:14.560 --> 00:12:19.200
cutting out squares of cardboard, Matt Scroggs has&nbsp;
made an interactive version of this which we've

00:12:19.200 --> 00:12:25.063
put online. So, feel free to give it a go. But,&nbsp;
you know, you probably shouldn't.

00:12:25.063 --> 00:12:31.189
So, while it is fun to do as a human, oh my goodness,
the odds of&nbsp;finding a solution are so small.

00:12:31.189 --> 00:12:41.200
And the thing is, there are a lot of ways to do this. There's over&nbsp;
a million possible solutions. There's 1,730,280

00:12:41.200 --> 00:12:48.880
ways these can fit into that. And the reason&nbsp;
I know that is because we wrote some code to

00:12:48.880 --> 00:12:51.483
find them all. Here they are.

00:12:51.483 --> 00:12:53.398
[Sawyer] "I have never&nbsp;solved it."
[Matt] "Yes."

00:12:53.398 --> 00:12:56.705
[Sawyer] "Solo. Yeah, that's right.
I have never solved it the the entire puzzle."

00:12:56.705 --> 00:12:59.664
[Matt] "No. Nor have I. I wrote some code
if we want to find the solution.

00:12:59.664 --> 00:13:02.324
Let's let's just bring one up."
[Sawyer] "Yeah, that sounds smart. I like that."

00:13:02.324 --> 00:13:10.000
Behold! Many, many solutions. My good friend Matthew&nbsp;
Scroggs put together some code to find every single possible

00:13:10.000 --> 00:13:18.160
solution. I then wrote some code to categorise&nbsp;
the solution. And first up, we have the 352,072

00:13:18.160 --> 00:13:26.160
solutions which have an L shape of 9x9 squares. So&nbsp;
these are just the solutions for n = 8 but with a

00:13:26.160 --> 00:13:35.680
big L of nines around the edge. I don't find&nbsp;
these very exciting. Better are the 1,303,584

00:13:35.680 --> 00:13:41.680
solutions which just have a single stack,&nbsp;
a column of nines. I guess we call those an

00:13:41.680 --> 00:13:47.120
"I" of nines. And the vast majority of the&nbsp;
solutions seems to have an "I" like this of

00:13:47.120 --> 00:13:50.080
nines. So I guess a little pro tip there&nbsp;
if you're if you're going from scratch,

00:13:50.080 --> 00:13:55.200
although that's technically cheating. The point&nbsp;
is I think these are more mixed up than the "L"'s.

00:13:55.200 --> 00:14:03.120
Even better though are the 74,624 solutions with&nbsp;
no neat lined up stack of nines anywhere. I think

00:14:03.120 --> 00:14:06.800
these are the best. Look at them. They're all&nbsp;
over the place. And it could be argued these

00:14:06.800 --> 00:14:10.742
are the best solutions because they make better&nbsp;
use of the nines.

00:14:10.742 --> 00:14:16.532
For the record in the code, the 1,730,280 solutions includes

00:14:16.532 --> 00:14:20.560
all rotations,&nbsp;four of them, and the two reflections,

00:14:20.560 --> 00:14:28.160
which normally we would get rid of. And&nbsp;
if you divide by 8, there are 216,285

00:14:28.160 --> 00:14:33.200
unique solutions, but we've left them&nbsp;
in because the act of solving it,

00:14:33.200 --> 00:14:39.840
you're solving one specific arrangement. So&nbsp;
if I put some shapes here, I'm only working,

00:14:39.840 --> 00:14:44.080
they're not also equivalently here and here. I'm&nbsp;
only working towards one set solution. So that's

00:14:44.080 --> 00:14:47.978
why I stand by my over 1 million claim.

00:14:47.978 --> 00:14:51.440
So my&nbsp;code has taken this solution to be different to

00:14:51.440 --> 00:14:57.040
that solution which is different to this one&nbsp;
and this one which I kind of stand by like

00:14:57.040 --> 00:15:01.600
I said because when you're building it they are&nbsp;
different. Also it's a slippery slope. If we count

00:15:01.600 --> 00:15:07.760
this one do we count this one? What about that&nbsp;
one? All the L shapes you could just rotate the

00:15:07.760 --> 00:15:13.680
middle n = 8 case. Or what about within that?&nbsp;
See those three there? We'll spin them around.

00:15:13.680 --> 00:15:18.160
There we go. Is that a whole new solution?&nbsp;
Who knows? You could try to slim them down.

00:15:18.160 --> 00:15:22.020
I maintain there are over 1.7 million solutions.

00:15:22.020 --> 00:15:24.480
Because this is such a hard puzzle to do by hand,

00:15:24.480 --> 00:15:29.440
I made the prediction that when we installed it at&nbsp;
Jane Street, staff members would go away and just

00:15:29.440 --> 00:15:35.520
write code to find a solution and come back and&nbsp;
put it in. And sure enough, that's what happened.

00:15:35.520 --> 00:15:40.765
James did it and he was kind enough to come and&nbsp;
explain how his code worked.

00:15:40.765 --> 00:15:42.356
[Matt] "You're at work at Jane Street."
[James] "Uh-huh."

00:15:42.356 --> 00:15:43.772
[Matt] "You see this puzzle?"
[James] "Uh-huh."

00:15:43.772 --> 00:15:45.709
[Matt] "Did you try and do it physically? 
[James] "Yes."

00:15:45.709 --> 00:15:47.276
[Matt] "And did you find anything?"
[James] "No."

00:15:47.276 --> 00:15:51.400
[Matt] "Right. And so then you stormed&nbsp;off
and got some old code from high school."

00:15:51.400 --> 00:15:53.765
[James] "Uh-huh"
[Matt] "And that found a solution."

00:15:53.765 --> 00:15:56.324
[James] "Yeah"
[Matt] "Okay. Okay. So&nbsp;what did the old code do?"

00:15:56.324 --> 00:16:02.443
[James] "Uh, the old code solved um a more
general set of problems of poly cube&nbsp;packings.

00:16:02.443 --> 00:16:06.045
So you can think of like Tetris in 3D puzzles."
[Matt] "Yep."

00:16:06.045 --> 00:16:08.055
[James] "Um."
[Matt] "Like the Soma Cube kind of..."

00:16:08.055 --> 00:16:11.200
[James] "Yeah, yeah. Like the Soma Cube.
While solving this, I learned that there were

00:16:11.200 --> 00:16:14.960
lots of dead ends that you&nbsp;can, like,
fill out half the board and then, like, the

00:16:14.960 --> 00:16:24.080
other half just has like no solution. Um, and that&nbsp;
means like my solver is, like, doesn't, doesn't like

00:16:24.080 --> 00:16:28.840
skip anything. It like tries every option before&nbsp;like"
[Matt] "Goes every branch until it..."

00:16:28.840 --> 00:16:31.670
[James] "Yeah."
[Matt] "Realises there's no solutions at the very end.

00:16:31.670 --> 00:16:35.160
Right?"
[James] "Yeah. I ran it overnight, at work.

00:16:35.160 --> 00:16:37.870
Um, and I only got one solution."
[Matt] "Oh, wow."

00:16:37.870 --> 00:16:43.520
[James] "Uh yeah. So like after like&nbsp;hours
of computation time, I only got one solution,

00:16:43.520 --> 00:16:49.920
which is like just shows how like unoptimised&nbsp;
the solver is for this, uh, particular situation."

00:16:49.920 --> 00:16:54.020
[Matt] "Yep. But it found one."
[James] "Yeah, I found one. That&nbsp;was, that was nice."

00:16:54.020 --> 00:17:00.209
[Matt] "And did you build it out of this? "
[James] "Um, yes, I did. Okay. So while I was home,

00:17:00.209 --> 00:17:03.994
I like rewrote a different solver from scratch."
[Matt] "[Laughs] From scratch..."

00:17:03.994 --> 00:17:06.220
[James] "That is like much more optimised&nbsp;
for this, um, this..."

00:17:06.220 --> 00:17:08.960
[Matt] "Specific problem."
[James] "And it, I like, really

00:17:08.960 --> 00:17:13.280
tried to optimise it too because I thought it&nbsp;
would like still take like forever. Bottom line,

00:17:13.280 --> 00:17:16.810
it finished in like a couple seconds. Like it&nbsp;
found a solution in like a few seconds."

00:17:16.810 --> 00:17:20.550
[Matt] "Boom! solution."
[James] "Yeah. Like almost instantly. Um so the

00:17:20.550 --> 00:17:26.713
next day I came to work and I, like, like,
put up, um, like, constructed that solution.

00:17:26.713 --> 00:17:30.520
So let's say we're&nbsp;in like this state I guess."
[Matt] "Okay. Yeah."

00:17:30.520 --> 00:17:37.840
[James] "Yeah, Yeah. This is good. Um, so what
we do in a partially solved state is that we look,

00:17:37.840 --> 00:17:42.880
we scan, like, in row major order from like the
bottom. I guess it&nbsp;doesn't really matter. So we scan"

00:17:42.880 --> 00:17:46.670
[Matt] "As long as you're systematic."
[James] "Like, in in some direction and eventually

00:17:46.670 --> 00:17:49.680
we'll find an&nbsp;empty cell. 
So in this case this happens to be the

00:17:49.680 --> 00:17:56.000
the first empty cell and we just recursively&nbsp;
descend on that. So we try this one. Um, now

00:17:56.000 --> 00:18:02.560
recursively descend. Now this is the first free&nbsp;
cell. Fill this in. And now if we scan again,

00:18:02.560 --> 00:18:05.500
we can see this one."
[Matt] "And nothing that's left is&nbsp;going to fit there."

00:18:05.500 --> 00:18:08.000
[James] "Yeah."
[Matt] "And so it backtracks up?"

00:18:08.000 --> 00:18:13.360
[James] "Yeah. Backtracks. So nothing fits here.
So&nbsp;backtrack to there. Fill this one in. This is

00:18:13.360 --> 00:18:16.240
the next empty cell. But there's only one choice.&nbsp;
Then you're there."

00:18:16.240 --> 00:18:18.607
[Matt] "And then you hit the very end and you're done."
[James] "Yeah. Yeah."

00:18:18.607 --> 00:18:26.800
The only person I know of&nbsp;who has solved this,
the 45 squared case by hand

00:18:26.800 --> 00:18:33.920
as a human is Andy. And Andy's obsessed with this&nbsp;
bit of math. Andy's the person who had the idea to

00:18:33.920 --> 00:18:41.280
turn this into the puzzle when we were discussing&nbsp;
things about 2025. So, does that count? I guess

00:18:41.280 --> 00:18:44.922
so. Well done, Andy. You be the judge.

00:18:44.922 --> 00:18:47.360
[Andy] "Hi, Matt.&nbsp;This is Andy.
I'm a trader at Jane Street. Um,

00:18:47.360 --> 00:18:52.160
I'm the person who came up with the uh puzzle&nbsp;
with the partridge tiling. Spoiler alert,

00:18:52.160 --> 00:18:57.120
uh, the sum of cubes is a square is the message&nbsp;
uh of the puzzle. Uh, and so the goal was how

00:18:57.120 --> 00:19:03.680
can I kind of like hide that in this uh in these&nbsp;
grids. I think one thing that's really cool about

00:19:03.680 --> 00:19:10.160
this kind of partridge tiling style of puzzle is&nbsp;
that it's really not guaranteed to exist. If you

00:19:10.160 --> 00:19:17.440
if you swap out the pieces for different shapes&nbsp;
like say triangles or trapezoids then you know it

00:19:17.440 --> 00:19:24.800
might be the case that um you only start seeing uh&nbsp;
uh valid tilings at you know different multiples

00:19:24.800 --> 00:19:29.280
like maybe for certain shapes you need a lot more&nbsp;
pieces before you can find any solutions or maybe

00:19:29.280 --> 00:19:34.192
you need maybe you need fewer pieces and I think&nbsp;
that kind of unpredictability is pretty cool."

00:19:34.192 --> 00:19:41.085
[Matt] "and finally thank you so much to Jane Street
for also&nbsp;sponsoring this video among many of my videos.

00:19:41.085 --> 00:19:45.600
And the reason they're sponsoring this one is I'd&nbsp;
like to share another puzzle with you, which I

00:19:45.600 --> 00:19:47.873
will link to the URL in the description below.

00:19:47.873 --> 00:19:50.880
The puzzle is basically this neural network,

00:19:50.880 --> 00:19:57.040
Pi-Torch file that you download and interrogate to&nbsp;
try and work out what the logic is behind it. And

00:19:57.040 --> 00:20:02.000
that's because while neural networks can be&nbsp;
very powerful despite being completely opaque,

00:20:02.000 --> 00:20:08.480
Jane Street likes to know what's actually going&nbsp;
on inside the box. So you can see if you've got

00:20:08.480 --> 00:20:11.275
the skills to dissect this neural network.

00:20:11.275 --> 00:20:13.760
You see&nbsp;Jane Street are a research-driven trading firm and

00:20:13.760 --> 00:20:18.480
they believe that deep learning like this is the&nbsp;
future of quantitive trading. And so they've got

00:20:18.480 --> 00:20:23.920
a machine learning team who build neural networks&nbsp;
that help drive their trading strategies. And the

00:20:23.920 --> 00:20:29.200
same team works on the infrastructure that&nbsp;
makes the training and inference possible.

00:20:29.200 --> 00:20:33.280
And that same machine learning team, which&nbsp;
if you're curious about joining, I'll have a

00:20:33.280 --> 00:20:38.640
link in the description. Also put together this&nbsp;
neural net puzzle. If you think you've solved it,

00:20:38.640 --> 00:20:41.009
please do email Jane Street and let them know.

00:20:41.009 --> 00:20:43.920
And if you solve the puzzle, you can be one of

00:20:43.920 --> 00:20:49.920
only currently 19 people who've done that. Well&nbsp;
done to those 19 people. And if you're thinking,

00:20:49.920 --> 00:20:55.040
"Hang on a second. I thought Jane Street&nbsp;
were a financial company. Why have they got

00:20:55.040 --> 00:21:00.967
well seemingly a whole department dedicated to&nbsp;
puzzles? Well, I asked Sawyer the same thing."

00:21:00.967 --> 00:21:05.980
[Sawyer] "We like puzzles here. I think there's
just sort of a a correlation between being a

00:21:05.980 --> 00:21:12.970
good, good Jane Street employee and like enjoying
and being good at solving puzzles. Um, and so we

00:21:12.970 --> 00:21:18.370
I mean in a way a puzzle is a bit of a simulation
of what&nbsp;it's like to be a Jane Streter, right? You

00:21:18.370 --> 00:21:23.840
we're trying to solve problems that other people&nbsp;
haven't solved. um we're trying to like write new

00:21:23.840 --> 00:21:29.440
code and then we also get to like have puzzles&nbsp;
on our website and maybe people enjoy visiting

00:21:29.440 --> 00:21:34.560
our website and learning about our our work and&nbsp;
and we have like these puzzles that people can

00:21:34.560 --> 00:21:40.160
interact with. There's a bit of a community there&nbsp;
and it is a little bit of a hey if you like this

00:21:40.160 --> 00:21:42.271
puzzle maybe you'd like to work at Jane Street."

00:21:42.271 --> 00:21:45.440
[Matt] "To find out more about
puzzles and indeed machine

00:21:45.440 --> 00:21:49.920
learning jobs at Jane Street I'll put a link in&nbsp;
the description below. Thank you so much to Jane

00:21:49.920 --> 00:21:51.754
Street for sponsoring this video

00:21:51.754 --> 00:21:55.520
and thanks to the&nbsp;a-capella group,
"Out of the Blue", who recorded our

00:21:55.520 --> 00:22:00.240
maths version of the 12 days of Christmas. Now the&nbsp;
reason I'm filming in a bit of a weird location

00:22:00.240 --> 00:22:06.107
is I'm actually at the Edinburgh Festival&nbsp;
Fringe doing 27 shows in 27 days.

00:22:06.107 --> 00:22:09.564
Out of the Blue are up. They are also doing the entire run.

00:22:09.564 --> 00:22:12.063
Remember this is going out to the math community.

00:22:13.939 --> 00:22:15.175
[To the tune of "12 Days of Christmas"]
One, two, three...

00:22:15.175 --> 00:22:19.760
On the ninth day of Squaremas,
my secret gave to me,

00:22:19.760 --> 00:22:25.627
Nine squares of nine. Eight squares of eight.&nbsp;
Seven squares of seven. Six squares of six, oh

00:22:25.627 --> 00:22:32.292
Five squares of five. Four squares of four, three squares of three

00:22:32.292 --> 00:22:33.868
two squares of two

00:22:33.868 --> 00:22:37.769
And the sum of the tower of three

00:22:37.769 --> 00:22:47.680
Or SUM dance where did we last week
{Transcriber note: my best guess at this line!}

00:22:47.680 --> 00:22:56.560
I turned around.

00:22:56.560 --> 00:22:57.200
Great, great, great.

