A random internet advertisement had a mathematical problem that intrigued me:

x+15 + x = 15
Solve for x

I found three different approaches to the problem. This equation had a bit of a hidden depth!

Clever Solution

Presumably x+15 and x 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.

1=1
4=1+3
9=1+3+5
16=1+3+5+7
...

There are other resources that go into it in more detail.

It is an interesting pattern that can be simplified as n+1 2 = n2 + 2n+1 . (As long as you note that 2n+1 is an odd number.)

Since 15 is an odd number, then x 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: n+1 2 = n2 + 15.

So 2n+1=15. Trivially, n=7. Which means n2=49.

So the answer is x=49. 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:

x+15 + x = 15 Subtract x from both sides.
x+15 = 15 - x Square both sides
x+15 = 225 - 30x+x Simplify
30x = 210 Divide by 30
x = 7 Square both sides
x = 49 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 n, is there an answer to every equation: x+n + x = n

Let's calculate and find out!

x+n + x = n Subtract x from both sides.
x+n = n - x Square both sides
x+n = n2-2nx+xCancel the x and rearrange
2nx = n2-nDivide by n
2x = n-1Divide by 2
x = n-12Square both sides (Possible because n1)
x = n-122Solution!

And that is our solution: Given any odd number n in the equation x+n + x = n the value of x is n-122

This makes sense as n-12 is the inversion of our earlier equation for odd numbers: 2n+1

If you look at the steps, the only assumption that is actually required is that n1. So there is no requirement for n to be an odd number. So the formula will work for even numbers like 2 as well:

0.25+2 + 0.25 = 2

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