Latest / Book Shelter / How to Guard an Art Gallery and Other Discrete Mathematical Adventures
Transcript
- 0:00Speaker 1: Okay, let's dive right in. How do you slice up
- 0:03Speaker 1: a pizza to get the absolute most pieces with say
- 0:06Speaker 1: just three or four straight cuts? Or think about an
- 0:10Speaker 1: art gallery, maybe one with a really weird shape. What's
- 0:13Speaker 1: the fewest security guards you'd need so they can see
- 0:15Speaker 1: every single spot? And you'll probably remember that movie scene
- 0:18Speaker 1: right where the hero needs exactly four gallons of water
- 0:21Speaker 1: but only has a three gallon a five gallon jug.
- 0:23Speaker 1: Plus what about something like postage stamps. If you've only
- 0:26Speaker 1: got five cent and eight cent stamps, can you make
- 0:28Speaker 1: any possible postage amount? Or are there some totals you
- 0:31Speaker 1: just can't hit? These sound like fun little puzzles maybe,
- 0:36Speaker 1: but they're actually really great entry points into this whole
- 0:38Speaker 1: area called discrete mathematics, a field that's just full of
- 0:41Speaker 1: these surprising patterns and some seriously powerful tools that pop
- 0:44Speaker 1: up in places you wouldn't expect.
- 0:46Speaker 2: That's spot on, and today we're doing a deep dive
- 0:49Speaker 2: into a bunch of sources, articles, lecture notes, research bits
- 0:52Speaker 2: that use exactly these kinds of you know, accessible problems
- 0:56Speaker 2: to explore some pretty deep mathematical ideas show how really
- 1:00Speaker 2: basic concepts things like counting or simple geometry can actually
- 1:04Speaker 2: unlock elegant solutions and fields that seem totally different, like combinatorics,
- 1:10Speaker 2: number theory, even computer science and cryptography.
- 1:14Speaker 1: Right, So our plan here is to sift through all
- 1:16Speaker 1: this material and pull out the key takeaways, the really
- 1:19Speaker 1: important insights just for you. Think of it as your
- 1:22Speaker 1: shortcut to understanding some cool mathematical journeys, maybe revealing some
- 1:26Speaker 1: of the hidden map that's all around us. Huh okay,
- 1:28Speaker 1: So let's start with the emmy one, the pizza problem.
- 1:30Speaker 1: You make end straight cuts. What's the maximum number of
- 1:33Speaker 1: pieces pon you can get?
- 1:34Speaker 2: Yeah, it seems straightforward, but the pattern gets interesting fast.
- 1:37Speaker 2: The sources show there's a nice formula pn n plus
- 1:40Speaker 2: don plus two to two.
- 1:41Speaker 1: Plus n plus two two. Okay, that's clean, but like,
- 1:43Speaker 1: where does that come from? Why the nd square? Is
- 1:45Speaker 1: there an intuitive feel for it?
- 1:47Speaker 2: There is, and this is where the sources highlight a
- 1:49Speaker 2: really neat connection. You can also write that formula using
- 1:52Speaker 2: binomial coefficients. It's p n ench zero plus en choose
- 1:57Speaker 2: one plus n choose two.
- 1:59Speaker 1: Binomial c coefficients. Like from probability class, how does that
- 2:03Speaker 1: relate to slicing pizza exactly?
- 2:05Speaker 2: Think of it like this enshow zero is just one,
- 2:08Speaker 2: that's your original whole pizza. En choose one is en
- 2:10Speaker 2: that sort of relates to the cuts themselves adding lines
- 2:13Speaker 2: and end choose two. That's the maximum number of times
- 2:17Speaker 2: end lines can intersect each other. Each intersection point is
- 2:20Speaker 2: where a new cut splits an existing region created by
- 2:23Speaker 2: previous intersections. So the formula basically counts the initial piece,
- 2:28Speaker 2: the regions split by the lines, and the regions created
- 2:30Speaker 2: by the intersections.
- 2:31Speaker 1: Ah okay, so it's counting the contribution of the whole pizza,
- 2:34Speaker 1: the lines and their crossing points to make new regions.
- 2:37Speaker 1: That makes sense, And the sources mentioned a proof without words,
- 2:40Speaker 1: like a picture that shows this.
- 2:41Speaker 2: Yeah, exactly. There's a visual diagram that really helps you
- 2:44Speaker 2: see how the pieces build up and how those binomial
- 2:46Speaker 2: terms correspond to the geometry. It clicks visually.
- 2:49Speaker 1: Cool, And this isn't just about pizza. Read it connects
- 2:52Speaker 1: to bigger ideas like Oiler's formula.
- 2:54Speaker 2: Absolutely the sources link it straight to Oiler's formula for
- 2:57Speaker 2: planarographs drawings on a flat surface. If you vertices V, intersections,
- 3:02Speaker 2: edges E, line segments and regions or pieces P, then
- 3:06Speaker 2: V plus P equals one for a connected graph drawn
- 3:09Speaker 2: on a plane. For the pizza, you can rearrange that
- 3:12Speaker 2: to see the number of pieces P depends on the
- 3:14Speaker 2: edges and vertices. P equals ev plus one.
- 3:17Speaker 1: Right, And it's interesting how that's slightly different from Oiler's
- 3:20Speaker 1: formula for three D shapes for polyhedral like cubes, where
- 3:23Speaker 1: it's v plus f equals two f for faces same idea, vertices, edges,
- 3:28Speaker 1: but the dimension changes the results.
- 3:30Speaker 2: Slightly different dimensions, different rules, and these counting problems pop
- 3:34Speaker 2: up elsewhere too. The sources discuss drawing cords inside a circle.
- 3:38Speaker 2: You put end points on the circle's edge, draw lines
- 3:40Speaker 2: connecting every pair. How many separate regions do you get
- 3:42Speaker 2: inside the circle? It's called qnn.
- 3:44Speaker 1: Okay, And this is where that famous Scotcha comes in.
- 3:46Speaker 1: Isn't it for N one, two, three, four, five points
- 3:48Speaker 1: et qn it equals one, two, four, eight, sixteen regions.
- 3:51Speaker 1: You totally bet the next one is thirty two right powers.
- 3:54Speaker 2: A two, You absolutely would. It looks like a perfect
- 3:56Speaker 2: sequence two on one. The sources even point to it
- 3:58Speaker 2: in the online Encyclopedia of into Juror Sequences. But then bam,
- 4:03Speaker 2: for q six six points on the circle, you only
- 4:06Speaker 2: get thirty one regions, not thirty two.
- 4:09Speaker 1: Huh, classic discrete math. Surprise always keeps you guessing it does.
- 4:14Speaker 1: So what's the actual formula for qn.
- 4:15Speaker 2: Then it's another beautiful binomial coefficient connection qn N choose
- 4:20Speaker 2: zero plus n choose two plus n choose four. Again,
- 4:23Speaker 2: the sources offer a visual proof. It shows how the
- 4:25Speaker 2: regions come from the initial circle. En choose zero, the
- 4:28Speaker 2: cords themselves dividing regions related to n choose two points,
- 4:31Speaker 2: and crucially, the intersections inside the circle related to n
- 4:35Speaker 2: choose four points.
- 4:35Speaker 1: Okay, in choose zero plus n choose two plus n
- 4:38Speaker 1: choose four. Got it? The visual proof sound really helpful
- 4:40Speaker 1: for these Let's switch from cutting things up to measuring area.
- 4:44Speaker 1: The sources use this example of an orchard with trees
- 4:46Speaker 1: planted on a grid.
- 4:47Speaker 2: Yeah, it's a great setup. Imagine an orchard shaped like
- 4:50Speaker 2: a polygon, but all its corners are exactly on grid
- 4:53Speaker 2: points integer coordinates. We call that a lattice polygon. Now,
- 4:57Speaker 2: how do you find its area? You could try approximate,
- 5:00Speaker 2: maybe count the trees, assuming each tree is at the
- 5:03Speaker 2: center of a one by one square patch. In their example,
- 5:06Speaker 2: there are twenty seven trees L twenty seven. Eight of
- 5:09Speaker 2: those trees B eight are right on the boundary fence.
- 5:12Speaker 2: A common rough guess for area might be LB two,
- 5:15Speaker 2: so twenty seven eighty two equals twenty three.
- 5:17Speaker 1: Twenty three square units as a guess. But the sources
- 5:19Speaker 1: say the real.
- 5:20Speaker 2: Area is different exactly. They calculate it precisely using other
- 5:24Speaker 2: geometric methods like chopping it into triangles, or using that
- 5:27Speaker 2: framing method, draw a rectangle around it and subtract the
- 5:30Speaker 2: areas outside the orchard. But inside the rectangle, the exact
- 5:33Speaker 2: area turns out to be twenty two.
- 5:34Speaker 1: So the guess was off by one.
- 5:36Speaker 2: Interesting, and that difference isn't just a coincidence. It leads
- 5:38Speaker 2: us straight to this incredibly elegant result called pix formula
- 5:42Speaker 2: discovered by Jorg Pick.
- 5:43Speaker 1: Picks formula, Okay, what is it?
- 5:45Speaker 2: It's amazing. It gives you the exact area of any
- 5:48Speaker 2: simple lattice polygon just by counting points. You count L
- 5:51Speaker 2: the total number of lattice points inside or on the boundary.
- 5:53Speaker 2: You count B the number of points only on the boundary.
- 5:56Speaker 2: Then the area is simply area equals L B two one.
- 6:01Speaker 1: Whoa wait a second, Let's try that on the orchard.
- 6:03Speaker 1: L was twenty seven, B was eight, So area coals
- 6:06Speaker 1: twenty seven eighty two one equals twenty seven four to one,
- 6:09Speaker 1: which is twenty two. It works. That's that's really simple
- 6:12Speaker 1: and powerful, isn't it?
- 6:13Speaker 2: Just counting points gives you the exact area, and a
- 6:16Speaker 2: cool consequence Picks formula shows is that the area of
- 6:19Speaker 2: any such qualigon must be an integer or a half integer,
- 6:22Speaker 2: like twenty two point five. It can't be anything else.
- 6:24Speaker 2: The sources also mention it behaves nicely. The area calculation
- 6:28Speaker 2: is additive if you stick polygons together.
- 6:30Speaker 1: So geometry connected directly to simple counting. That's a recurring
- 6:33Speaker 1: theme here, it seems.
- 6:34Speaker 2: It really is, And you can use Picks formula backwards too.
- 6:36Speaker 2: If you know something about the area, it tells you
- 6:38Speaker 2: things about the lattice points, like what kind of things well.
- 6:40Speaker 2: The sources connect this to a version of the change
- 6:43Speaker 2: for a dollar problem, specifically, how many ways can you
- 6:46Speaker 2: make exactly one dollar using only quarters, dimes, and nickels.
- 6:50Speaker 2: It turns out that counting the combinations qdn such that
- 6:53Speaker 2: twenty five Q plus ten D plus five N was
- 6:56Speaker 2: one hundred is equivalent to counting integer points lattice points
- 7:00Speaker 2: within a specific triangle defined by this equation and the
- 7:03Speaker 2: non negativity constraints.
- 7:04Speaker 1: So coin combinations become points in a triangle.
- 7:07Speaker 2: Yeah, you can use geometric ideas related to picks formula
- 7:09Speaker 2: to count those points. The sources actually generalize this and
- 7:13Speaker 2: give a formula for making change for fifty one cents
- 7:15Speaker 2: using quarters, dimes, nickels, and pennies. For N two one dollar,
- 7:19Speaker 2: it comes out to two hundred and forty two ways.
- 7:21Speaker 1: Two hundred and forty two ways. Wow. And they even
- 7:23Speaker 1: applied this lattice point counting to batting averages.
- 7:25Speaker 2: Seriously, seriously, how many different combinations of hits and at
- 7:30Speaker 2: bats AB result in a batting average AHAB that rounds
- 7:34Speaker 2: to say, point three to one three. Given a maximum
- 7:37Speaker 2: number of at bats like two thousand, it becomes a
- 7:39Speaker 2: problem of counting lattice points HB that fall within a
- 7:42Speaker 2: narrow region defined by the rounding inequalities. Using pick like ideas,
- 7:46Speaker 2: they found there are twenty sixty three such combinations. Forer
- 7:49Speaker 2: point three to one three up to two thousand at bats.
- 7:52Speaker 1: That's wild applying it to baseball stats. The source has
- 7:55Speaker 1: also mentioned something quite sobering about Georg Pick himself.
- 7:58Speaker 2: Yes, it's important to note Alexander Pick, who gave us
- 8:01Speaker 2: this beautiful theorem, tragically died in the Terresian Shut concentration
- 8:05Speaker 2: camp in nineteen forty two, a victim of the Nazi regime.
- 8:08Speaker 2: His mathematics, however, endures.
- 8:10Speaker 1: A sand history, but his work clearly lives on.
- 8:13Speaker 2: It does, and interestingly, the sources point out that picks
- 8:15Speaker 2: formula doesn't have a simple direct equivalent in three dimensions.
- 8:19Speaker 2: Finding the volume of a three D lattice shape just
- 8:21Speaker 2: by counting points isn't nearly as neat That third dimension
- 8:24Speaker 2: adds real complexity.
- 8:25Speaker 1: Yeah, that seems to be a theme to Okay, speaking
- 8:28Speaker 1: of geometry and maybe complexity, let's switch to the art
- 8:31Speaker 1: gallery problem. You've got this polygon shaped gallery with W walls.
- 8:36Speaker 1: How many guards standing still? Do you need to guarantee
- 8:39Speaker 1: every spot inside is visible? Right?
- 8:41Speaker 2: A classic computational geometry problem, and the sources highlight a
- 8:45Speaker 2: key result Schwoddle's theorem from nineteen seventy five. It gives
- 8:49Speaker 2: a surprisingly tight up all bound. You need at most
- 8:52Speaker 2: the floor of W divided by three guards floor W
- 8:55Speaker 2: three and sometimes for tricky shapes, you need exactly that
- 8:58Speaker 2: many floor.
- 8:59Speaker 1: Of w three. So for a gallery with say sixteen walls,
- 9:02Speaker 1: flooral one sixty three is five, you only need five
- 9:04Speaker 1: guards maximum. That feels low. For potentially complex shapes.
- 9:08Speaker 2: It does feel low, and the sources describe this really
- 9:10Speaker 2: elegant proof by Vosk Fisk. It not only proves the
- 9:13Speaker 2: bound but gives you a method to place the guards.
- 9:15Speaker 2: The key idea is to first triangulate the polygon, cut
- 9:18Speaker 2: it up entirely into triangles that share edges.
- 9:21Speaker 1: Okay, triangulating makes sense breaking into simple pieces, How does
- 9:24Speaker 1: that help place the guards.
- 9:25Speaker 2: Fisk's brilliant insight was about coloring the vertices the corners
- 9:28Speaker 2: of all those triangles. You can always three color the vertices,
- 9:32Speaker 2: say red, blue, green, so that no two vertices connected
- 9:35Speaker 2: by an edge share the same.
- 9:37Speaker 1: Color A three coloring, Okay, Then.
- 9:39Speaker 2: You just count how many vertices got each color. Find
- 9:42Speaker 2: the color that was used the least often. Fisk prove
- 9:45Speaker 2: that if you place your guards only at the vertices
- 9:47Speaker 2: a sign that least frequent color, they are guaranteed to
- 9:50Speaker 2: see the entire gallery interior.
- 9:52Speaker 1: Get out of here. That's amazing. So the algorithm tells
- 9:55Speaker 1: you exactly which corners to use, not just how many.
- 9:58Speaker 2: Precisely it's constructive. The sources mention a bonus for orthogonal
- 10:02Speaker 2: galleries where all angles are ninety or two hundred and
- 10:05Speaker 2: seventy degrees, Like a building met of rectangles, you need
- 10:08Speaker 2: even fewer guards at most floor W four proven using
- 10:11Speaker 2: a similar four coloring idea.
- 10:12Speaker 1: Floor W four for those right angled ones.
- 10:15Speaker 2: Cool, and let me guess this also gets much harder
- 10:18Speaker 2: in three D.
- 10:19Speaker 1: You guessed it. Guarding a three D polyhedron gallery is
- 10:22Speaker 1: a significantly harder and largely unsolved problem. That extra dimension
- 10:26Speaker 1: strikes again. Okay, let's shift from physical spaces to digital ones.
- 10:31Speaker 1: How does my computer screen draw a perfectly straight line.
- 10:34Speaker 1: It's just a grid of pixels.
- 10:35Speaker 2: Right now, exactly. It can't draw a true mathematical line.
- 10:38Speaker 2: It has to approximate it by deciding which pixels to
- 10:41Speaker 2: light up. For a line from zero zero to say
- 10:45Speaker 2: W two V. For each horizontal step x, the computer
- 10:48Speaker 2: has to pick the pixel x y whose center is
- 10:51Speaker 2: vertically closest to the ideal line, minimizing that vertical distance vx.
- 10:56Speaker 1: Y hmm, calculating that distance vxy for every single pixel
- 11:00Speaker 1: along a long line. Sounds computationally expensive, Oh, it would be.
- 11:04Speaker 2: That's why algorithms like Bresenham's line algorithm were developed. They're
- 11:08Speaker 2: much smarter. Instead of recalculating distances, they use an iterative approach.
- 11:12Speaker 2: They keep track of a running error term, basically how
- 11:14Speaker 2: far the lip pixels are drifting vertically from the true
- 11:17Speaker 2: line at each step each COLUMNX. Based on whether this
- 11:20Speaker 2: error term crosses a threshold, usually point five, the algorithm
- 11:24Speaker 2: decides whether to light the pixel in the same row
- 11:26Speaker 2: move horizontally, or the next row up move diagonally. It's
- 11:29Speaker 2: like taking the best possible staircase path along the grid
- 11:32Speaker 2: to approximate the line.
- 11:34Speaker 1: In fish and shortcut makes sense. But what's really wild,
- 11:38Speaker 1: the sources say, is how this connects to calendars ancient timekeeping.
- 11:42Speaker 2: Yes, it's an amazing connection. The pattern of pixels chosen
- 11:46Speaker 2: by Bresenham's algorithm, the sequence of horizontal and diagonal steps,
- 11:51Speaker 2: is mathematically the same as the pattern used to distribute
- 11:53Speaker 2: leap years in certain historical calendars, like the Hebrew calendar
- 11:57Speaker 2: or some Islamic calendars.
- 11:58Speaker 1: How does that work?
- 11:59Speaker 2: Those calendars often use an accumulated error method too. You
- 12:03Speaker 2: know the year is in exactly three hundred and sixty
- 12:05Speaker 2: five days, maybe it's three hundred and sixty five point
- 12:07Speaker 2: something days. You keep track of the fractional part year
- 12:10Speaker 2: after year. When that accumulated fraction adds up to more
- 12:14Speaker 2: than a whole day or month. In some calendars, you
- 12:17Speaker 2: insert a leap unit day or month and subtract one
- 12:20Speaker 2: from the accumulated fraction. The decision add a leap unit
- 12:23Speaker 2: or not mirrors the line algorithm's decision step diagonally or horizontally.
- 12:28Speaker 2: Both use accumulated error to make a binary choice that
- 12:31Speaker 2: keeps the average rate close to the target.
- 12:33Speaker 1: Wow. So drawing a line on a screen and figuring
- 12:36Speaker 1: out leap years use the same core mathematical idea that
- 12:38Speaker 1: relates to Diophantine approximation exactly.
- 12:42Speaker 2: Diophantine approximation is all about finding simple fractions yx with
- 12:46Speaker 2: small X that are very close to a target real
- 12:49Speaker 2: number U. Calendar cycles are essentially trying to find good
- 12:53Speaker 2: fractional approximations for the length of the solar year or
- 12:55Speaker 2: lunar month. The pattern of leap years implicitly is a
- 12:59Speaker 2: Diophantine approximation, balancing accuracy against the simplicity of the cycle length.
- 13:04Speaker 1: Okay, let's tackle that diehard puzzle. Bruce willis three gallon jug.
- 13:08Speaker 1: Five gallon jug needs four gallons. How's it done?
- 13:11Speaker 2: Right? The sources approach this using states. A state is
- 13:15Speaker 2: just the amount of water in each jug, like zero
- 13:17Speaker 2: zero for empty, three is zero if the three gallas
- 13:19Speaker 2: full zero five, the five gallas fall, et cetera. The
- 13:22Speaker 2: operations are fill a jug completely, empty a jug completely,
- 13:25Speaker 2: or core from one jug into the other until the
- 13:27Speaker 2: first is empty or the second is full.
- 13:28Speaker 1: And you're just looking for a sequence of these operations
- 13:31Speaker 1: to reach a state where one jug has four gallons
- 13:34Speaker 1: like any or any The sources map this out right,
- 13:37Speaker 1: they do.
- 13:38Speaker 2: They list the steps. Fill the five pour to the
- 13:40Speaker 2: three leaves two and five empty, the three pour the
- 13:42Speaker 2: two from five to three, fill the five, pore from
- 13:44Speaker 2: five to three until three is full. Uses one gal
- 13:47Speaker 2: leaves four in the five gal jug state three of four,
- 13:50Speaker 2: or you could get zero to four eventually. But what's
- 13:52Speaker 2: really mind blowing, and the sources revealed this is the geometric.
- 13:55Speaker 1: View geometry for pouring water.
- 13:58Speaker 2: How using a Skew Billiard table, imagine a parallelogram grid.
- 14:03Speaker 2: The dimensions, or maybe the slopes of the sides relate
- 14:06Speaker 2: to the jug capacities V and W. You start a
- 14:08Speaker 2: billiard ball at a corner and let it travel in
- 14:11Speaker 2: straight lines, bouncing off the parallelogram sides according to reflection rules.
- 14:15Speaker 2: The path this small traces when you unfold the reflections
- 14:18Speaker 2: onto an infinite grid, directly maps to the sequence of
- 14:21Speaker 2: water levels in the jugs during the pouring process.
- 14:23Speaker 1: Is there really unexpected a billiard path models the water levels.
- 14:27Speaker 2: Yes, and this geometric insight helps prove the water measuring theorem.
- 14:31Speaker 2: It says, if your jug capacities V and W are coprime,
- 14:33Speaker 2: their greatest common divisor is one like three and five,
- 14:36Speaker 2: then you can measure any whole number amount from one
- 14:39Speaker 2: gallon up to V plus W one gallons. It also
- 14:41Speaker 2: gives bounds on how many pouring steps might be needed.
- 14:44Speaker 1: So because three and five are coprime, you can get
- 14:47Speaker 1: any amount from one up to three plus five to
- 14:49Speaker 1: one equals seven gallons including four. But if you had,
- 14:53Speaker 1: say a four gallon and a six gallon jug there
- 14:55Speaker 1: are gcd is two what then.
- 14:58Speaker 2: Then you could only measure amounts that are multiples of
- 15:00Speaker 2: two gallons. You could get two, four, six, maybe eight
- 15:03Speaker 2: or ten if you could combine fills, but never one, three, five,
- 15:06Speaker 2: or seven.
- 15:07Speaker 1: Coprime is key And this billiard path does it connect
- 15:11Speaker 1: back to the line drawing or calendars? Again?
- 15:13Speaker 2: You're seeing the pattern. Yes, the sequence of sustainable water
- 15:16Speaker 2: amounts in one of the jugs often follows that same
- 15:19Speaker 2: kind of staircase sequence we saw generated by the arithmetic
- 15:21Speaker 2: array AAVW in the line drawing context, same underlying structure,
- 15:26Speaker 2: different problem.
- 15:26Speaker 1: Okay, one more set of related problems. Yeah, stans and coins.
- 15:29Speaker 1: We mentioned five cent and eight cent stanks? What's the
- 15:32Speaker 1: deal with amounts you can't make?
- 15:34Speaker 2: This leads into the Frabinius coin problem, or sometimes just
- 15:36Speaker 2: the coin problem or the stamp problem. Given a set
- 15:39Speaker 2: of coin values or stamp values, assuming they don't share
- 15:41Speaker 2: a common factor greater than one, what is the largest
- 15:44Speaker 2: monetary amount that you cannot obtain using only those coins
- 15:48Speaker 2: non negative amounts?
- 15:49Speaker 1: So for five and eight cents you can make eight one, eight, ten,
- 15:53Speaker 1: two fives, eleven, goss twelve no thirteen five plus eight,
- 15:58Speaker 1: fourteen no fifteen, three fives, sixteen, two eighths, seventeen eighteen,
- 16:03Speaker 1: two fives plus eight. It seems like eventually you can
- 16:05Speaker 1: make everything exactly.
- 16:06Speaker 2: There's always the largest amount you can't make, called the
- 16:08Speaker 2: Frobenius number. After that point, you can make everything. The
- 16:12Speaker 2: sources focused on the case with just two denominations vnw
- 16:15Speaker 2: that are coprime. Building on work by Sylvester, they show
- 16:18Speaker 2: you can visualize all the attainable sums iv plus JW
- 16:21Speaker 2: using an addition table or that arithmetic array av dashell
- 16:25Speaker 2: w it's a grid. By analyzing the structure and symmetry
- 16:28Speaker 2: of this grid, they derive Sylvester's results. First, the number
- 16:31Speaker 2: of positive integers you cannot make is exactly V one
- 16:34Speaker 2: W dash one two.
- 16:34Speaker 1: Okay, a formula for the count for five and eight
- 16:36Speaker 1: that's five line tlls one three twelve equals four to
- 16:38Speaker 1: seventy two ol squals fourteen. There are fourteen amounts you
- 16:41Speaker 1: can't make correct and.
- 16:42Speaker 2: The second key result, often called the stamp serum for
- 16:44Speaker 2: two values, gives the largest unattainable number. Let's call it
- 16:47Speaker 2: you U eques VWVW.
- 16:49Speaker 1: That's right. That for five and eight us five a's
- 16:51Speaker 1: five eight equals forty thirteen equals twenty seven, So twenty
- 16:54Speaker 1: seven cents is the biggest amount of posters. You cannot
- 16:56Speaker 1: make with only five and eight cents stamps. Any amount
- 16:58Speaker 1: bigger than twenty seven you can make.
- 17:00Speaker 2: That's exactly right. And notice the neat connection. The number
- 17:02Speaker 2: of unattainable amounts N fourteen is related to U twenty
- 17:05Speaker 2: seven by n nasu plus one two. That always holds
- 17:08Speaker 2: for two coprime values.
- 17:10Speaker 1: That is elegant UVWVW and n n nv one one
- 17:14Speaker 1: two w plus one two and again.
- 17:16Speaker 2: The structure of that arithmetic array AVW is crucial. There's
- 17:19Speaker 2: a related array AVW, which is the same sums but
- 17:22Speaker 2: taken modulo VW. This AVW array avxw grid has this
- 17:27Speaker 2: amazing property. It contains every single number from zero to
- 17:31Speaker 2: VW one exactly once. It's a complete residue system modulo
- 17:35Speaker 2: VW arranged in a grid based on linear combinations of vnw.
- 17:39Speaker 1: Every number from zero to VW one appears just once
- 17:41Speaker 1: in that grid. That sounds useful. Does it connect elsewhere?
- 17:43Speaker 2: It does? Big connection to the Chinese remainder theorem CRT.
- 17:46Speaker 2: The CRT is about solving systems of congruences, like finding
- 17:49Speaker 2: a number x that leaves a remainder of a when
- 17:51Speaker 2: divided by V and a remainder of B when divided
- 17:54Speaker 2: by W. The structure of AVW essentially provides a constructive
- 17:57Speaker 2: way to find that unique solution x modulo VW.
- 18:00Speaker 1: So you could use this grid to solve that classic
- 18:02Speaker 1: puzzle finding a number that's four more than a multiple
- 18:06Speaker 1: of five xa four mod five and two more than
- 18:09Speaker 1: a multiple of eight xa two mod.
- 18:11Speaker 2: Eight Precisely by locating where that combination fits in the
- 18:14Speaker 2: A five to eight structure, you'd find the unique solution
- 18:17Speaker 2: modulo of forty, which is thirty four thirt sixty five
- 18:20Speaker 2: plus four and thirty four equals forty eight plus.
- 18:23Speaker 1: Two, another connection revealed by the grid structure.
- 18:26Speaker 2: And just briefly, the sources mentioned a game called silver
- 18:29Speaker 2: Coinage related to these ideas. Players take turns naming integers.
- 18:33Speaker 2: Any number that can be formed by a sum of
- 18:35Speaker 2: previously named numbers is out. The player who names one loses.
- 18:38Speaker 2: It gets very complex, very fast.
- 18:40Speaker 1: That's tricky. What's the verdict on it?
- 18:42Speaker 2: Despite the complexity, the sources state the first player has
- 18:45Speaker 2: a winning strategy. You can prove this using a clever
- 18:47Speaker 2: logical argument called strategy stealing, which basically shows the second
- 18:51Speaker 2: player can't have a guaranteed win, so the first player
- 18:53Speaker 2: must fascinating.
- 18:54Speaker 1: Even if you don't know the strategy, you know it exists. Okay,
- 18:58Speaker 1: last topic. Let's touch on something maybe a bit more
- 19:01Speaker 1: abstract from number theory, but with huge real world importance.
- 19:04Speaker 1: Cryptography error correction, right.
- 19:07Speaker 2: We're talking about quadratic residues modulo a prime number P.
- 19:10Speaker 2: It sounds technical, but the core idea is asking which
- 19:14Speaker 2: numbers V behave like perfect squares when you only care
- 19:16Speaker 2: about remainders after dividing by P. If v is congruent
- 19:20Speaker 2: to xxat mod P for some X and v is
- 19:23Speaker 2: zero MODP, we call the a quadratic residue modulo P.
- 19:27Speaker 2: Otherwise it's a non residue. The legendre symbol VP is
- 19:30Speaker 2: shorthand for this plus one. If it's a residue, a
- 19:32Speaker 2: nash one if non residue zero fee is a multiple
- 19:35Speaker 2: of P.
- 19:35Speaker 1: And there are patterns here too, like whether nice one
- 19:37Speaker 1: is a square depends on the prime p exactly.
- 19:39Speaker 2: There are simple rules for metas one P. It's a
- 19:41Speaker 2: residue if P is of the form four k plus one.
- 19:44Speaker 2: A non residue if p is four k plus three
- 19:46Speaker 2: and a similar rule for two P based on whether
- 19:48Speaker 2: P is eight K plus one, a K plus three,
- 19:50Speaker 2: a K plus five, or eight K plus seven. To
- 19:53Speaker 2: figure out VP for any V, two big tools are
- 19:55Speaker 2: Eiler's criterion and Gauss's lemma. Oiler's criterion relates VP to
- 19:59Speaker 2: VA RaSE to the power P one two modulo P.
- 20:02Speaker 2: Gass's lemma is a bit more involved. It relates VP
- 20:04Speaker 2: to counting how many multiples of V fall into the
- 20:06Speaker 2: upper half of Remainder's modulo P.
- 20:08Speaker 1: And guess what, Let me guess geometry lattest points.
- 20:11Speaker 2: You got it. Gas's lemma has a beautiful geometric proof
- 20:15Speaker 2: involving counting lattice points in a triangle, very similar to
- 20:18Speaker 2: the setup for the line drawing algorithm and the avwra
- 20:21Speaker 2: It's all connected.
- 20:22Speaker 1: Amazing. What's a really big theorem in this area?
- 20:25Speaker 2: The crown jewel is the law of quadratic reciprocity discovered
- 20:29Speaker 2: by Gauss. It's a stunning relationship between p q and
- 20:32Speaker 2: QP for two different odd primes P and q. It
- 20:35Speaker 2: states that QP times pq equals nine f one raised
- 20:39Speaker 2: to the power P one two q dosh one two.
- 20:42Speaker 2: It looks complicated, but its power is immense. It lets
- 20:45Speaker 2: you flip the legendre symbol. If you want to know
- 20:47Speaker 2: if P is a square mod q, you can relate
- 20:50Speaker 2: it to whether q is a square mod P. This
- 20:52Speaker 2: makes calculations way way easier.
- 20:54Speaker 1: So lets you work with smaller numbers or flip the
- 20:56Speaker 1: problem around to something manageable.
- 20:57Speaker 2: Precisely, it's fundamental in number theory, and as the source
- 21:00Speaker 2: is stressed, this isn't just abstract math. This law and
- 21:03Speaker 2: the theory around it is absolutely essential for modern cryptography,
- 21:07Speaker 2: the stuff that secures online banking and communication, and for
- 21:10Speaker 2: designing the error correcting codes that ensure data integrity on
- 21:13Speaker 2: your hard driver phone.
- 21:14Speaker 1: Wow. So eighteenth and nineteenth century number theory is literally
- 21:18Speaker 1: keeping our digital world secure today. That's quite a connection. Man.
- 21:22Speaker 1: We've covered a lot of ground in this deep dive,
- 21:24Speaker 1: from slicing pizzas and guarding art galleries to drawing lines
- 21:29Speaker 1: on computer screens, measuring water, figuring out postage stamps, all
- 21:33Speaker 1: the way to the number theory behind secure communication.
- 21:36Speaker 2: Yeah. And what I think the sources showcase so brilliantly
- 21:39Speaker 2: is how discrete mathematics acts like this unifying language. It
- 21:42Speaker 2: provides the tools counting graph theory, modular arithmetic, geometric interpretations
- 21:47Speaker 2: to tackle incredibly diverse problems, and often you find these
- 21:51Speaker 2: surprising deep connections and really elegant solutions, linking things you'd
- 21:55Speaker 2: never think were related. Geometry, combinatorics, number theory, algorithm, they're
- 22:00Speaker 2: woven together.
- 22:01Speaker 1: It really is a reminder that those aha moments, those
- 22:05Speaker 1: flashes of insight are potentially hiding everywhere if you just
- 22:08Speaker 1: look at things the right way. These sources were originally
- 22:10Speaker 1: talks for students trying to spark that sense of discovery,
- 22:13Speaker 1: and hopefully this deep dive has given you a bit
- 22:15Speaker 1: of that feeling too, seeing the hidden.
- 22:17Speaker 2: Math patterns absolutely and maybe a final thoughts leave you with.
- 22:20Speaker 2: Building on our discussion, we mention how the free d
- 22:24Speaker 2: art gallery problem is still largely unsolved, and how that
- 22:27Speaker 2: silver coinage game gets incredibly complex fast. It really makes
- 22:30Speaker 2: you wonder, doesn't it. What other everyday things, maybe seemingly
- 22:33Speaker 2: simple tasks or puzzles, are actually masking deep unsolved mathematical questions,
- 22:38Speaker 2: just waiting for someone to uncover them. Keep looking, keep exploring.