fskilnik@GMATH wrote:GMATH practice exercise (Quant Class 16)
If x and y are integers, is x^2-y^2 odd?
(1) x+y is odd
(2) x-y is odd
$$x,y\,\,{\rm{ints}}\,\,\,\,\,\left( * \right)$$
$${x^2} - {y^2}\,\,\mathop = \limits^? \,\,{\rm{odd}}$$
First Approach: ("the smart way")
$$\left( 1 \right)\,\,x + y\,\,{\rm{odd}}\,\,\,\,\mathop \Rightarrow \limits^{\left( * \right)} \,\,\,\,\,x,y\,\,:\,\,\,{\rm{one}}\,\,{\rm{odd}}\,{\rm{,}}\,\,{\rm{another}}\,\,{\rm{even}}\,\,\,\,\, \Rightarrow \,\,\,\,x - y\,\,{\rm{odd}}\,\,\,\,\, \Rightarrow \,\,\,\,{\rm{SUFF}}.\,\,\,\,\left( {**} \right)$$
$$\left( 2 \right)\,\,x - y\,\,{\rm{odd}}\,\,\,\,\mathop \Rightarrow \limits^{\left( * \right)} \,\,\,\,\,x,y\,\,:\,\,\,{\rm{one}}\,\,{\rm{odd}}\,{\rm{,}}\,\,{\rm{another}}\,\,{\rm{even}}\,\,\,\,\, \Rightarrow \,\,\,\,x + y\,\,{\rm{odd}}\,\,\,\,\, \Rightarrow \,\,\,\,{\rm{SUFF}}.\,\,\,\,\left( {**} \right)$$
$$\left( {**} \right){x^2} - {y^2} = \left( {x + y} \right)\left( {x - y} \right) = {\rm{odd}} \cdot {\rm{odd}} = {\rm{odd}}\,\,\,\, \Rightarrow \,\,\,\,\left\langle {{\rm{YES}}} \right\rangle $$
Second Approach: ("the elegant way")
$$\left( 1 \right)\,\,\,x + y\,\, = {\rm{odd}}\,\,\,\,\, \Rightarrow \,\,\,\,x - y = \underbrace {x + y}_{{\rm{odd}}} - \underbrace {\,2y\,}_{\left( * \right)\,\,{\rm{even}}} = {\rm{odd}}\,\,\,\,\, \Rightarrow \,\,\,\,{\rm{SUFF}}.\,\,\,\,\left( {***} \right)$$
$$\left( 2 \right)\,\,\,x - y\,\, = {\rm{odd}}\,\,\,\,\, \Rightarrow \,\,\,\,x + y = \underbrace {x - y}_{{\rm{odd}}} + \underbrace {\,2y\,}_{\left( * \right)\,\,{\rm{even}}} = {\rm{odd}}\,\,\,\,\, \Rightarrow \,\,\,\,{\rm{SUFF}}.\,\,\,\,\left( {***} \right)$$
$$\left( {***} \right){x^2} - {y^2} = \left( {x + y} \right)\left( {x - y} \right) = {\rm{odd}} \cdot {\rm{odd}} = {\rm{odd}}\,\,\,\, \Rightarrow \,\,\,\,\left\langle {{\rm{YES}}} \right\rangle $$
The correct answer is therefore (D).
We follow the notations and rationale taught in the GMATH method.
Regards,
Fabio.