CAT 2020 Slot 2 — QA Question 11
Solving Quadratic EquationsMedium
In how many ways can a pair of integers (x , a) be chosen such that x2 − 2|x| + |a - 2| = 0?
Answer & solution
- A
4
- B
5
- C
6
7
Solution
Medium
Complete the square in to fold the equation into a sum of two non-negative pieces equal to a constant. Since is an integer, is an integer, which forces only a couple of cases; enumerate the integer pairs in each.
1
Complete the square. Treat as the variable and add/subtract .
2
Restrict the cases. , and since is an integer, is an integer. For the sum to be zero, must be , i.e. or .
3
Case 1: . Then .
4
Case 2: . Then .
5
Total. Add the counts from steps 3 and 4.