To factor a number that can be expressed as a sum of squares, use the identity (a² + b²)(c² + d²) = (ac + bd)² + (ad - bc)², which allows you to find factors by solving the system of equations ac + bd = target1 and ad - bc = target2, where the number equals target1² + target2².
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Constraining gcd(a−b, a+b) via Linear Combinations
Added:Let's factor this number. 1 00000 9er uh using 1000009 equals 235 squared plus 9 72 squared.
Now, it seems like this formula is helpful. Um a squared plus b squared times c squared plus d squared equals Remember this one?
ac plus bd squared plus ad minus bc squared. Is that it? Yeah, that's it.
So, it feels like this is important.
Like perhaps this number right here And remember like I don't know how this goes. So, this is like not like When I'm like asking you like I like I think this is how it goes, but I'm not totally sure. So, this number could be 235 or 972. Probably 972 cuz it's attached to the plus, right? But you could imagine some sort of arrangement of numbers where you get the smaller one like that, but it seems unlikely. Oh, yeah. 235 I like looked ahead too much.
And it feels like this one should be 972 or 235, right?
And like I said this seems like the most likely scenario. So, if we can write 972 like that and 235 like that, then we have a factorization.
So, I think well, one of each, right?
I think we need to solve um ac plus bd equals 972 and simultaneously uh ad minus bc equals to 35.
So many numbers on the board.
>> I can we just like look at the prime factorization of 97?
>> I did that.
It's It's dubiously helpful.
And I say that because um 5 * 47. It's dubiously helpful because notice we're trying to write that as a sum, right?
>> Yeah, and also cuz like they're not Yeah, cuz if if they had like similar prime factorizations, then we could use that to construct >> Yeah, but they've got like >> these janks.
Like very different prime factors.
>> Yeah.
>> Have you considered just like starting with a value for like one of the variables and just trying to build it from there? Like brute force it?
Cuz I feel like that would get smaller, but I don't think it'd be that helpful.
>> So like what?
>> I don't know.
>> Like could like could B be two?
Here's something that's like pretty cool.
And that is uh 235.
235 is equal to 243 - 8. And 243 is 3 to the fifth power. It's like so close, right?
Now notice that this is 3 to the fifth minus 2 * 2 squared. I think the point here is that perhaps if you've got a sum of squares solving an equation like this is um more computationally efficient than just like trying to factor that. I think that's the point. It's like famously hard.
>> If a prime divides x squared plus y squared then yeah, good. Go What was that result? It's this.
Okay, so GCD GCD XY1 and P divides x squared plus y squared then Uh no. Then P can be written as the sum of two squares.
>> The one that was minus eight when we added eight to it of course. Yeah.
>> Notice that uh this tells us that P is either one or two mod four.
But in our case they're all going to be odd because our final number is odd. So it's not prime because it can be written as the sum of squares in two different ways. Oh, maybe that's what we're supposed to do. Then maybe Yeah, maybe we factor this one >> Yeah.
>> using this and then we've got something that can factor into here. We would need this is a thousand and then this is three.
>> Yeah.
Related Videos
Solving a 'Harvard' University entrance exam question
AsadInternationalAcademy
125 views•2026-06-14
Algorithms for Generalized Signed Distance and Winding Numbers (PhD thesis)
NicoleZFeng
269 views•2026-06-15
Notes 6.3 Rectangle, Rhombus, Square
matthewmills6952
1K views•2026-06-18
Does the math actually hold up? Let's break down the logic.
rawXopinion
1K views•2026-06-15
NYT Hard Sudoku Walkthrough | June 17, 2026
Rangsk
2K views•2026-06-17
Notes 11.5 Area of a Circle and Sector of a Circle
matthewmills6952
251 views•2026-06-18
Notes 4.2 Isosceles and Equilateral Triangles
matthewmills6952
444 views•2026-06-18
Can You Solve This?
brain_station_videos
1K views•2026-06-15











