Highly Dependent Lightbulbs

Logic Level 5

For integer n 2 n\geq2 , I have n n lightbulbs arranged on the circumference of a circle, each lightbulb can be either on or off. When I press a button, the lightbulbs will either:

  1. once every minute, be turned on if it is in the same state as the one of its left (both off or both on),
  2. once every minute, be turned off if it is in the different state as the one of its left (one on and one off).

How many integers n < 1 0 6 n < 10^6 are there such that after at most n n minutes, all the lightbulbs will be on simultaneously regardless of their initial states?

Image Credit: Flickr patrick etter .


The answer is 19.

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.

2 solutions

Yasseen N
Sep 21, 2019

Consider 4 bulbs arranged in a circle, all off or 1,2,3 or all 4 on. wherever you begin you have to go clockwise and no matter what was their initial state, within 5 min all of them will be on. try the same with 3,5,6,7 bulbs, it won't work, but it works with 8 [take into account the number of bulbs that can be on and therefore the rest off]. It also works with 2 bulbs. The pattern can be easily seen that it is a geometric progression as follows: 2,4,8,.... use the formula for geometric progression to find out the largest term that is less than 10^6 [see below].

Tn = a r^(n-1) where a is the 1st term and r is the common ratio Tn : 2 (2)^n-1 < 10^6 ; 2^n-1 < 500 000 ; n-1 ln 2 < ln 500 000 ; n-1 < 18.9 ; n < 19.9 ;

therefore n is 19

Pranjit Handique
Aug 29, 2015

All integers which are powers of 2 and less than 1000000, i.e. 2,4,8,16......2^19=524288. 19 of them.

Whyyyyyyyyyyy?

Pi Han Goh - 5 years, 9 months ago

Log in to reply

@Pi Han Goh Please post a solution, this question deserves one!

Siva Bathula - 5 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...