Browse · MathNet
PrintIndija mo 2011
India 2011 number theory
Problem
Find the number of 4-digit numbers (in base 10) having non-zero digits and which are divisible by 4 but not by 8.
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 .
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 .
Final answer
729
Techniques
Modular ArithmeticCounting two ways