Find the number of 4-digit numbers (in base 10) having non-zero digits and which are divisible by 4 but not by 8.
, 2011
Solution
If we take any four consecutive even numbers and divide them by 8, we get remainders 0, 2, 4, 6 in some order. Thus there is only one number of the form among them which is divisible by 4 but not by 8. Hence if we take four even consecutive numbers
there is exactly one among these four which is divisible by 4 but not by 8. Now we can divide the set of all 4-digit even numbers with non-zero digits into groups of 4 such consecutive even numbers with nonzero. And in each group, there is exactly one number which is divisible by 4 but not by 8. The number of such groups is precisely equal to , since we can vary in the set .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.