The new year is one of my favorite kinds of numbers: a difference of squares!
This observation got me thinking about what kinds of numbers can be written as the difference of squares. For example,
So here’s a little mathematical puzzle to start the new year: Is there a largest number that can not be expressed as the difference of squares? If so, find it. If not, prove no such number exists. Good luck, and happy new year!
https://mrhonner.com/archives/21614
#Math #NumberTheory #2024 #NewYear
@phonner A hint: consider the parity of
@phonner Hi Patrick!
I had noticed the difference of 2 squares opportunity for 2024, and it turns out it can done TWO ways:
45^2 – 1^2
and
57^2 – 35^2
@KarenCampe @phonner There are two more ways to do it.
@davidradcliffe @KarenCampe Figuring out *when* it's possible also allowd you to determine in how many different ways it's possible.
@phonner @davidradcliffe
So I need both factors of 2024 to be even (or both odd, which won't happen with prime factorization 2^3•11•23
Spoiler ahead....
@KarenCampe @phonner Actually 2024 can be written as a difference of squares in four ways: not only 45^2 - 1^2 and 57^2 - 35^2, but also 507^2 - 505^2, and 255^2 - 251^2. (Hint: write 2024 as the product of two even numbers; one factor will be a+b and the other a-b.)
@byoshiwara YES, if you keep reading down that thread, I figured out the four ways...
What a fun math-y excursion!
@phonner you may be interested in a video I made a couple of years ago where I make a sieve out of the difference of squares. https://youtu.be/22SN8otf4iI?si=ucav0VZvnEtVu1QE
One of the follow up videos was about which even numbers can be expressed as the difference of two squares in only one way. https://youtu.be/aDBTNEPqkZk?si=pr7m8Sdm8Z2nRqpr
I also worked out how to optimise which square numbers you need to factorise any semi-prime number. Between trial division and the bounds created in the first video above combined with this optimisation you can infinitely narrow down the factors of any potential prime (except 2mod4 numbers). https://youtu.be/K5qplL_ahTo?si=tNIeD7J5ulzjv9Wc