HarshaBujji
If x and y are integers such that \(x^2 + y^2 = 100\), how many different pairs of (x,y) satisfy this equation?
A. 2
B. 4
C. 8
D. 6
E. 12
Solving this question by brute force is easier. Note that \(x^2\) and \(y^2\) are non-negative integers. As the sum of the two terms is 100, each term must not exceed 10.
For each pair of (x,y) that satisfies the condition, we need to consider the positive and negative values.
So, let's start
1. x = 0
If x = 0 ⇒ \(y^2 = 100\)
\(y = \pm 10\)
Hence we have two pairs of (x,y) ⇒ (0,10) & (0,-10)
When the positions are swapped, we have two more pairs of (x,y) ⇒ (10, 0) and (-10, 0)
Therefore, 4 pairs of (x,y) until now.
2. x = 1
\(x^2 + y^2 = 100\)
\(y^2 = 99\)
y is not an integer. Ignore.3. x = 2
\(x^2 + y^2 = 100\)
\(y^2 = 96\)
y is not an integer. Ignore.4. x = 3
\(x^2 + y^2 = 100\)
\(y^2 = 91\)
y is not an integer. Ignore.5. x = 4
\(x^2 + y^2 = 100\)
\(y^2 = 84\)
y is not an integer. Ignore.6. x = 5
\(x^2 + y^2 = 100\)
\(y^2 = 75\) y is not an integer. Ignore.7. x = 6
\(x^2 + y^2 = 100\)
\(y^2 = 64\) If \(x^2 = 36\), we can have two values of x, i.e. \(\pm 6\) ; similarly, y can have two values, \(\pm 8\)Hence, we have total of 4 pairs here (6, 8) ; (6, -8) ; (-6, 8) ; (-6, -8)The same holds true for when \(x^2 = 64\) (i.e. swap the positions of x, and y)
(8, 6) ; (8, -6) ; (-8, 6) ; (-8, -6) We don't need to test further as all the cases have been covered.Total number of pairs of (x,y) = 8 + 4 = 12Option E