Number is even mapped to 2*m*n?

If the number is even why cant it be mapped to m^2-n^2, because we are not sure whether “m^2-n^2”, is even or good , why are we ignoring the case when this is even as well as 2mn is even , where is an even N mapped in this case??

Hey @bhavik911
if N is Even
we consider N = 2 * m* n
else
N=m^2-n^2

yeah but m^2-n^2 can also be even right? why are we ignoring that case , that was my question actually

m^2-n^2 // even Not sure
we Know N is even I am sure 2 m * n is Even

Yeah i realize that , but shouldn’t we consider both cases, if we are not we are leaving one whole possibility behind?

@bhavik911
You can check it. But i would suggest always take the best side
2 * m * n will always be even

if I consider even to be 2mn , how will it be an increasing sequence as then we have to take a no as m^2-n^2 , which is less and in the question they are asking for increasing sequence?

You can check with the help of if else Condition