A random internet advertisement had a mathematical problem that intrigued me:
Solve for
I found three different approaches to the problem. This equation had a bit of a hidden depth!
Clever Solution
Presumably and are both perfect squares. (Internet advertisements don't tend to deal with irrational numbers.) So we can assume that when we take the square roots, we will get integers back.
The easiest way to solve this problem is to use the fact that the summation of odd numbers results in the perfect squares.
...
There are other resources that go into it in more detail.
It is an interesting pattern that can be simplified as . (As long as you note that is an odd number.)
Since 15 is an odd number, then must be the perfect square that is 15 below another perfect square. With our simplified pattern equation above, we know that there must be a solution for: .
So . Trivially, . Which means .
So the answer is . If we plug that into the equation, it works out.
Mathematical Solution
Essentially, the easy solution is almost guessing as to what the answer is. This may not work as an answer if the problem was given by a pedantic math professor. So how would we mathematically prove it? With these steps:
Subtract from both sides. | |
Square both sides | |
Simplify | |
Divide by 30 | |
Square both sides | |
Solution! | |
This matches our "easy solution" answer so we are happy.
Curiosity
So, now that we’ve proven it beyond a shadow of a doubt, can we extrapolate it? Given a positive odd number , is there an answer to every equation:
Let's calculate and find out!
Subtract from both sides. | |
Square both sides | |
Cancel the and rearrange | |
Divide by | |
Divide by 2 | |
Square both sides (Possible because ) | |
Solution! |
And that is our solution: Given any odd number in the equation the value of is
This makes sense as is the inversion of our earlier equation for odd numbers:
If you look at the steps, the only assumption that is actually required is that . So there is no requirement for to be an odd number. So the formula will work for even numbers like 2 as well:
However, the clean solutions with integers and perfect squares only works with positive odd numbers.
Thank you to Remkes Kooistra for checking my math
2018-1-14