# Help with minor maths puzzle

**URL:** <https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583>\
**Category:** Factual Questions\
**Created:** [July 18, 2017, 5:40pm UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583 "2017-07-18T17:40:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![glee](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@glee](https://boards.straightdope.com/u/glee)\
**Post date:** [July 18, 2017, 5:40pm UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/1 "2017-07-18T17:40:04Z")

</div>

This isn’t homework (I just got my pensioner’s bus pass 🆒), but comes from a newspaper puzzle.

There was an equation with square roots on both sides and you had to simplify/solve it.  
It was something like:

square root of (a+b) + square root of (a) = square root of (a+21),

where a and b are integers.

OK, by inspection a=4 and b=5.  
But how would I square both sides of the equation?

(After squaring, I get a+b + a + 2(square root of (a+b) + square root of (a)) = a+21.

This is using the algebra (a+b) squared = a squared + b squared + 2ab.

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [July 18, 2017, 6:05pm UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/2 "2017-07-18T18:05:11Z")

</div>

(Why do I need to click the Mult-quote + these days instead of just Quote? Do others have this symptom, or is it just one of my viruses at work?)

> [@glee](#):
>
> But how would I square both sides of the equation?
> 
> (After squaring, I get a+b + a + 2(square root of (a+b) **+** square root of (a)) = a+21…

I think the “+” I underlined should be a multiplication.

To get rid of the remaining square-root, just move everything else to the other side of the equation and square each side _again_. (Here, however, that just leaves you with something that seems over-complicated.)

---

<div class="post-metadata">

**Author:** ![Andy\_L](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Andy\_L](https://boards.straightdope.com/u/Andy_L)\
**Post date:** [July 18, 2017, 6:18pm UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/3 "2017-07-18T18:18:13Z")

</div>

Your puzzle has two unknowns, so there may be multiple answers. I’ve recently seen this puzzle here and there “square root of (x+15) + square root of (x) = 15” in which the trick is to move the square root of x to the other side of the equals before squaring Might that one be the one you saw…

---

<div class="post-metadata">

**Author:** ![yearofglad](https://avatars.discourse-cdn.com/v4/letter/y/b782af/32.png) [@yearofglad](https://boards.straightdope.com/u/yearofglad)\
**Post date:** [July 18, 2017, 6:31pm UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/4 "2017-07-18T18:31:55Z")

</div>

I used Wolfram Alpha:

b = a - 2sqrt(a + 21)sqrt(a) + 21

[I don’t have Wolfram Alpha Pro, so I can’t see the steps it used to transform your equation into the one above.]

So while a = 4, b = 5 is a solution, any pair of values (a, b) that satisfy the above equation are also solutions.

For example, let a = 10.

Then b = 10 - 2sqrt(31)sqrt(10) + 21 = 31 - 2sqrt(310), so (10, 31 - 2sqrt(310)) is also a solution.

(A bit harder to see by inspection…)

Making the correction **septimus** indicated, combining the two multiplicands to get one square root, isolating that root and squaring it is the solution method but does leave you with something more complicated, arguably, then what you started with.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [July 18, 2017, 7:39pm UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/5 "2017-07-18T19:39:35Z")

</div>

The essential point of the puzzle is that a and b are _integers_. I assume that a and a+b must be non-negative. Note that a(a+21) is a perfect square. So all possible solutions (a,b) are (0,21), (4,5), (7,0), (27,-24), and (100,-99).

---

<div class="post-metadata">

**Author:** ![yearofglad](https://avatars.discourse-cdn.com/v4/letter/y/b782af/32.png) [@yearofglad](https://boards.straightdope.com/u/yearofglad)\
**Post date:** [July 18, 2017, 8:50pm UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/6 "2017-07-18T20:50:33Z")

</div>

> [@DPRK](#):
>
> The essential point of the puzzle is that a and b are _integers_. I assume that a and a+b must be non-negative. Note that a(a+21) is a perfect square. So all possible solutions (a,b) are (0,21), (4,5), (7,0), (27,-24), and (100,-99).

Indeed - I overlooked that part. Thanks.

---

<div class="post-metadata">

**Author:** ![glee](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@glee](https://boards.straightdope.com/u/glee)\
**Post date:** [July 19, 2017, 7:58am UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/7 "2017-07-19T07:58:59Z")

</div>

Thanks to all who replied!

> [@Andy\_L](#):
>
> Your puzzle has two unknowns, so there may be multiple answers. I’ve recently seen this puzzle here and there “square root of (x+15) + square root of (x) = 15” in which the trick is to move the square root of x to the other side of the equals before squaring Might that one be the one you saw…

Andy is right - I muddled up the original puzzle. :o

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [July 19, 2017, 10:28am UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/8 "2017-07-19T10:28:20Z")

</div>

I suppose this wasn’t the puzzle you intended, it turns out, but for what it’s worth:

> [@glee](#):
>
> square root of (a+b) + square root of (a) = square root of (a+21)

In other words, sqrt(a + b) = sqrt(a + 21) - sqrt(a). In other words, b = (sqrt(a + 21) - sqrt(a))^2 - a. So any choice of “a” gives rise to a solution, picking the appropriate value of “b”, if we’re to allow ourselves arbitrary values without whole number restrictions.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [July 19, 2017, 11:29am UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/9 "2017-07-19T11:29:37Z")

</div>

I was going to suggest that the OP puzzle, slightly modified so that a and b are required to be positive integers, does make a nice puzzle since there is indeed a unique solution. More fun than the “official” puzzle.

---

<div class="post-metadata">

**Author:** ![Andy\_L](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Andy\_L](https://boards.straightdope.com/u/Andy_L)\
**Post date:** [July 19, 2017, 12:46pm UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/10 "2017-07-19T12:46:44Z")

</div>

> [@glee](#):
>
> Thanks to all who replied!
> 
> Andy is right - I muddled up the original puzzle. :o

Glad to help.

---

<div class="post-metadata">

**Author:** ![Manlob](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@Manlob](https://boards.straightdope.com/u/Manlob)\
**Post date:** [July 21, 2017, 3:53am UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/11 "2017-07-21T03:53:41Z")

</div>

Square the original expression and subtract a from each side:  
a+b + sqrt(a(a+b)) = 21  
That implies a+b can only be an integer from 1 to 21. Some more manipulation gives:  
4a = (a+b) - 42 + 441/(a+b)  
Thus (a+b) must be a factor of 441=3_3_7_7. There are five possible factors meeting the requirement of being 21 or less: 1, 3, 7, 3_3, and 3\*7  
Inserting them into the expression for 4a results in the 5 solutions given by DPRK.

---

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [July 21, 2017, 3:49pm UTC](https://boards.straightdope.com/t/help-with-minor-maths-puzzle/791583/12 "2017-07-21T15:49:51Z")

</div>

> [@septimus](#):
>
> (Why do I need to click the Mult-quote + these days instead of just Quote? Do others have this symptom, or is it just one of my viruses at work?)…

That’s (probably) all on you & your set-up. I (and probably the rest of us) don’t have that symptom.
