The positive integers $a<b$ are such that $\frac{a+b}{2}$ and $\sqrt{ab}$ are positive integers consisting of the same two digits in reverse order. What is the minimum value of a?
The first thing that comes into mind is trial and error as there are just 100 ways, but I need a fast way to do it.
I tried letting $10x + y$ and $10y + x$ be the 2 numbers
from the 2 equations,
$\frac{a+b}{2} = 10x + y$
$\sqrt{ab} = 10y +x$
$100y^2 +10xy +x^2 = 20ax +2ay-a^2$
A quadratic equation in $a$
$a^2 -2ay-20ax+100y^2+10xy+x^2$
but getting the discriminant and finding integer solutions is really tedious.