A number theory problem by Finn C

There are 100 people in a room. There are also 100 closed lockers. Each of the 100 people are assigned a number from 1-100. The first person with the number 1, would open every locker since every number from 1-100 is a multiple of one. The second person would close every second locker. The third person would open or close every third locker, for example if locker 52 was open, he would close it. If number 52 was closed he would open it. This process is repeated until every person has opened or closed the lockers they're meant to. Which lockers will be open?

Prime numbers Perfect squares Even numbers Odd numbers

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Finn C
Apr 12, 2016

The answer is squared numbers.

This is true because every number, except square numbers have an even number of factors, because they come in pairs such as 6 and 4, and 8 and 3. Given that they start off closed, an even number of factors would take it to be opened, then closed again.

Square numbers are different because they are opened, closed - but since there is an odd number of factors (including themselves) - it would be opened again.

Since the only numbers with an odd amount of factors are squared numbers - squared numbers are the answer

Moderator note:

Why is it true that "the only numbers with an odd amount of factors are squared numbers"?

Because Factors come in pairs. For example lets take the number 24. Its factors are 8 and 3. (Pair). 6 and 4. (Pair). 12 and 2. (Pair). And 24 by 1. (Pair.

However, if you take a perfect square such as 16, there would be 8 and 2. (Pair). 16 and 1.(Pair). And 4 by 4. Which is a pair of numbers, but the same number, so its counted as 1 factor, whereas 16 and 1, 8 and 2, are all 2 factors.

Finn C - 5 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...