MathDB
Switches

Source:

December 18, 2005

Problem Statement

There is a set of 1000 switches, each of which has four positions, called A,B,C,A, B, C, and D.D. When the position of any switch changes, it is only from AA to B,B, from BB to C,C, from CC to D,D, or from DD to A.A. Initially each switch is in position A.A. The switches are labeled with the 1000 different integers 2x3y5z,2^x3^y5^z, where x,y,x, y, and zz take on the values 0,1,,9.0, 1, \ldots, 9. At step ii of a 1000-step process, the iith switch is advanced one step, and so are all the other switches whose labels divide the label on the iith switch. After step 1000 has been completed, how many switches will be in position AA?