\(If $1 \le a \le 10$ and $1 \le b \le 36$, for how many ordered pairs of integers $(a, b)$ is $\sqrt{a + \sqrt{b}}$ an integer?\frac{}{}\times\)
I wrote a computer program:
count = 0
for (a = 1..10)
for (b = 1..36)
if isinteger(sqrt(a + sqrt(b)) then count = count + 1
The result was 14.