There are 380 cards kept on a table in a row all facing downward. There are 200 persons to do a task. 1st person flip all the cards so that all cards are facing upward. Then 2nd person flip every 2nd card and so on person flip every card. This is done by all the 200 persons. How many cards are facing upward at the end ?
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.
A card remains facing upward at the end if it is flipped by an odd number of persons.
For n ≤ 200
Card n is flipped by every person whose number is the divisor of n . For example, Card 8 is flipped by person 1 , 2 , 4 and 8 . Card n will be facing upward if number of divisors of n will be an odd number. Let number of divisors of n be denoted by d ( n ) and n has the prime factorization as : n = p 1 a 1 p 2 a 2 p 3 a 3 ⋯ p m a m , then d ( n ) = ( a 1 + 1 ) ( a 2 + 1 ) ( a 3 + 1 ) ⋯ ( a m + 1 ) Now d ( n ) will be odd only if all the factors ( a i + 1 ) are odd i.e. all a i ′ s must be even. If all the a i ′ s are even then n is a perfect square. So Card n will be facing upward if n is a perfect square. All square numbers from 1 to 2 0 0 are 1 2 , 2 2 , 3 2 , ⋯ , 1 4 2 . Hence there are 1 4 upward facing cards in the card range 1 to 2 0 0 .
For 201 ≤ n ≤ 380
Since there are no more than 2 0 0 persons, the number of persons flipping Card n is 1 less than the number of divisors of n . So Card n will be facing upward if d ( n ) is an even number. As shown in upper part that d ( n ) is odd for square numbers and hence even for non square numbers. Number of square numbers in this range is 5 ( 1 5 2 , 1 6 2 , ⋯ , 1 9 2 ) So the number of non square numbers in this range is ( 3 8 0 − 2 0 1 + 1 ) − 5 = 1 7 5 . Hence there are 1 7 5 upward facing cards in the card range 2 0 1 to 3 8 0 .
So there are 175 + 14 = 189 upward facing cards at the end.