How about checking divisibility by 24? Will checking the divisibility by its factors, 4 and 6, work? Why or why not?
Show solutionHide solution
Checking divisibility by 24 using the factors 4 and 6 does not work in general.
The reason is that 4 and 6 are not coprime: they share the common factor 2. So a number can be divisible by both 4 and 6 without being divisible by 24.
For example, take 12:
- 12 is divisible by 4, since \(12 = 4 \times 3\).
- 12 is divisible by 6, since \(12 = 6 \times 2\).
- But 12 is not divisible by 24, because \(12 \div 24\) is not a whole number.
So passing the tests for 4 and 6 is not enough to guarantee divisibility by 24.
What actually works is to use factors that are coprime (share no common factor greater than 1). Since \(24 = 8 \times 3\) and 8 and 3 are coprime, a number is divisible by 24 exactly when it is divisible by both 8 and 3. Equivalently, since \(24 = 4 \times 6\) but 4 and 6 share the factor 2, one must also require divisibility by that shared factor twice—i.e. by 8 and 3—rather than merely by 4 and 6.
In short: checking divisibility by 4 and 6 is necessary but not sufficient for divisibility by 24, because 4 and 6 are not coprime.