Maths Olympiad Prep

Library / /39 of 82

Number theory Difficulty 5.6 AIME, harder Prove it Croatia

On the playground there are 20142014 athletes with the numbers from 11 to 20142014 on their shirts (each number is on exactly one shirt). At the beginning they are all standing. In certain time intervals the coach shouts out all positive integers from 11 to 20142014 in the increasing order. All athletes having a multiple of the shouted number on their shirts change their position from the standing position to crouch and vice versa.
How many athletes are crouching after the coach shouts out the number 20142014?

Solution

Every athlete will change his position as many times as the number on his shirt has divisors. Hence, at the end in the position of crouch will be those athletes whose shirt numbers have an odd number of divisors.
All divisors of the number nn can be grouped into two element sets {d,nd}\{d, \frac{n}{d}\}, unless n=d2n = d^2 for some positive integer dd when nd=d\frac{n}{d} = d. That means that a positive integer has an odd number of divisors if and only if it is a square of an integer.
Among numbers 1,,20141, \ldots, 2014 the squares are 12,22,,4421^2, 2^2, \ldots, 44^2 (because 442=193644^2 = 1936 and 452=202545^2 = 2025). At the end, there are 4444 athletes crouching.

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.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.