In the example, it states that x is odd. If you use 1 for x, the quick answer is NO because p=0 and 0 is not divisible by 24.
I understand that this is trying to teach a strategy based on consecutive integer principles, so could some one provide another example or question that drills this strategy.