a, b, and x are positive integers such that
sqrt(a) + sqrt(b) = sqrt(x)
How many possible values of x less than or equal to 1000 are there?
(In reply to
First thoughts... ...(spoiler?) by Erik O.)
I will assume reversals
Let b = int(sqrt(1000-a^2))
then a and b are
1 31
2 31
3 31
4 31
5 31
6 31
7 30
8 30
9 30
10 30
11 29
12 29
13 28
14 28
15 27
16 27
17 26
18 26
19 25
20 24
21 23
22 22
23 21
24 20
25 19
26 18
27 16
28 14
29 12
30 10
31 6
sum up the second column to get 756 solutions
Edited on May 5, 2005, 7:05 pm