Let us consider that a+b2 and a−b2 are both odd and both even
In the first case, let them be odd. We know that the sum or difference of two odd numbers is even, hence the sum of the numbers a+b2 and a−b2 must be even.
So, a+b2+a−b2=a must be even which is not correct as we are given that a is odd positive integer.
(If we take the difference, we will get value equal to b). This leads to a contradiction. Hence a+b2+a−b2 cannot be both odd.
In the second case, Let the numbers a+b2+a−b2 are even. Again, the sum or difference of two even numbers is even.
So, a+b2+a−b2=a must be even, which is not correct as we are given that a is odd positive integer. (If we take the difference, we will get value equal to b). This leads to a contradiction.
Hence a+b2+a−b2 cannot be both even.
So, the two numbers in question cannot be both even or both odd. Hence they have only one possibility left one is even and the other is odd.