Testing cases for even and odd numbers. In the last video, we talked about the properties of even and odd numbers, and we're gonna use these properties here. So if you didn't see that video, I'd highly recommend watching that before watching this video. So here we have a practice problem, I'll suggest pause the video here and do this practice problem and then we'll talk about it. Read full transcript
If P and Q are integers, and P squared + PQ is an odd number, what do we know about P and Q? The easiest way to approach this is to plug in numbers for different cases. We can simply use 1 for our odd number, and 2 for our even number. Notice we're gonna have four different cases, four different possibilities here. They both could be even, both P and Q could be even.
Both P and Q could be odd numbers, or it may be that P is even and Q is odd, or it may be that P is odd and Q is even. So we have to test all four of those cases separately. Case 1, P and Q are both even. So we're just gonna plug in 2, P equals 2 and Q equals 2. We're gonna get 2 squared plus 2 times 2, 4 plus 4 is 8.
That's an even number, that doesn't work. We'll try both odd, pretend that they're both equal to 1, P equals 1, Q equals 1. We plug in, we get 1 plus 1 is 2, which is an even number. That doesn't work. Case 3, P is even and Q is odd. So now we're gonna plug in P equals 2 and Q equals 1, and here we're gonna get 4 plus 2 is 6.
That doesn't work, that's even. So then the final case, we're wondering now, is it possible for this to be odd? The final case, we'll try P is odd, and Q is even. Now we're gonna plug in P=1 and Q=2, and here we're gonna get 1+2 is 3. That definitely is an odd number, that works, and that's the only case among the four that works.
Therefore we know, in this problem it must be true that P is an odd number, and Q is an even number. We are able to figure that out from the four case method. We might also solve this problem using logic. Think about it this way. Notice if P is even, it automatically makes both terms even.
Then we get even plus even which equals even, and that doesn't work. There's no way we can get an odd number from even plus even. So therefore, P has to be odd. Now if P is odd, the first term is definitely odd. If the sum is odd, the second term must be even. If P is odd, the only way P times Q can be even is if Q is an even number.
Therefore, P is odd, and Q is even. So that's a way to solve it with logic. Ultimately solving it with logic is more direct, it's quicker, but it can be a bit harder to learn how to think that way. And the four method approach is a little more methodical. That can be good when you're getting kind of warmed up to this sort of problem.
Here's another one of these problems, so again, pause the video and then we'll talk about how to solve this. If P and Q are integers, and the quantity (4P + Q) is an odd number, what must be true? Let's start with the four case method. If they're both even, so we're gonna plug in P = 2 and Q = 2.
We get 8 + 2 which is 10, which is an even number. Now we'll try both odd. We'll plug in 1 and 1. And we get 4 + 1, that's 5. That definitely works. So Case 1 doesn't work, Case 2 works.
Case 3, P is even and Q is odd. So now we're gonna plug in P = 2 and Q = 1. And we get 8 + 1, 9, that's an odd number, that works. So we have two cases that work. Now we'll try Case 4, P is odd, Q is even. We get 4 + 2 is 6, that doesn't work.
So what exactly is the pattern here? Notice that the cases that work are the cases where Q is odd. If Q is odd, then the expression is odd. And if Q is even, then the expression doesn't work. So the conclusion that we can draw, definitely, is Q is odd. And we really can't draw anything about P.
It is definitely true that Q is odd, and we can draw no conclusion about P. Now again, using logic, think about this. 4P must be even because 4 is an even number. So the only way that the sum will be odd, is if Q is an odd number. So Q must be odd. 4 P will be even regardless of whether P is even or odd.
So whether P is even or odd does not matter at all to the result. If you are still developing your number sense, then you may find it helpful to start with the four case method of plugging in numbers. Even if you solve the problem that way, it's a good idea to go back and see if you can solve the problem with logic as well. Often a logical solution is shown in the official explanations to a problem.
And again, practicing the logical solution ultimately will be a much deeper form of mathematical understanding. Applying the four cases is kind of rote. That's not real deep mathematical thinking. Ultimately, what you want to do is practice your mathematical thinking. In summary, in this video we discussed the four case method of plugging in numbers to solve even or odd questions, and we discussed logical approaches to such problems as well.