Hello. This post is not my usual report of an idea I came up with but rather an interesting result of some tinkering.
Copper Bulbs turn on when fed power and they stay on when the power supply depletes. The Bulb will turn off when fed power a second time. So let's place 2 Copper Bulbs next to each other and supply power with a button. Using a comparator to get power from the copper bulb turning on we can supply power using a repeater into the next bulb. With this we can turn on all copper bulbs in a chain with ( 1 ) push of the button with NO LIMIT to the size of the chain.


Now that we have established 1 button push turns on all lamps in a chain with this build it is time to reveal the nasty bit. Hitting the button a second time turns off 1 lamp as shown above. Hitting the button a third time turns on the first lamp and turns off the second. This continues to increase exponentially.
You should take notice of the redstone dust on the floor of the build. This dust can be useful for making or decoding a combination, or making sure all bulbs are on or off as a security measure by linking all the modules together via this redstone dust.
So I made a chain of 20 Copper Bulbs with same module as the picture above. When I hit the button once all the bulbs came on, and when I turned off the 6th bulb I had hit the button 63 times, then the seventh bulb took 127.

I thought about making a machine to count and supply the power for each button push but then I remembered that the internet is full of genius's. You see, I do not know what the name of the mathematical formula is to this sequence of moves however... perhaps you do???
How many button pushes to turn off all the lights in a 20 bulb chain? clues above
Hope you enjoy this, have fun out there
Copper Bulbs turn on when fed power and they stay on when the power supply depletes. The Bulb will turn off when fed power a second time. So let's place 2 Copper Bulbs next to each other and supply power with a button. Using a comparator to get power from the copper bulb turning on we can supply power using a repeater into the next bulb. With this we can turn on all copper bulbs in a chain with ( 1 ) push of the button with NO LIMIT to the size of the chain.


Now that we have established 1 button push turns on all lamps in a chain with this build it is time to reveal the nasty bit. Hitting the button a second time turns off 1 lamp as shown above. Hitting the button a third time turns on the first lamp and turns off the second. This continues to increase exponentially.
You should take notice of the redstone dust on the floor of the build. This dust can be useful for making or decoding a combination, or making sure all bulbs are on or off as a security measure by linking all the modules together via this redstone dust.
So I made a chain of 20 Copper Bulbs with same module as the picture above. When I hit the button once all the bulbs came on, and when I turned off the 6th bulb I had hit the button 63 times, then the seventh bulb took 127.

I thought about making a machine to count and supply the power for each button push but then I remembered that the internet is full of genius's. You see, I do not know what the name of the mathematical formula is to this sequence of moves however... perhaps you do???
How many button pushes to turn off all the lights in a 20 bulb chain? clues above
Hope you enjoy this, have fun out there