Defence PYQWritten Exam 2022MathematicsBinary Numbers

NDA · Question 54

If x³ + y³ = (100010111)₂ and x + y = (11111)₂, then what is (x - y)² + xy equal to?

  1. (1101)₂

  2. (1001)₂

  3. (1011)₂

  4. (1111)₂

Show answer & explanationShow explanation

Answer: (B) (1001)₂

Explanation

Converting to decimal: x³ + y³ = (100010111)₂ = 256 + 16 + 4 + 2 + 1 = 279, and x + y = (11111)₂ = 16 + 8 + 4 + 2 + 1 = 31. Using the identity x³ + y³ = (x + y)(x² - xy + y²) = (x + y)[(x - y)² + xy], we get 279 = 31[(x - y)² + xy] ⇒ (x - y)² + xy = 279/31 = 9 = (1001)₂. Hence, option (b) is correct.