How many different patterns of light can the serial light bulb set produce?
Answers
Answered by
0
Answer:
If at least one bulb in the set is on at any given instant of time, how many different patterns of light can the serial light bulb set produce? The first line contains the number of test cases T, T lines follow. Each line contains an integer N, the number of bulbs in the serial light bulb set.
Answered by
0
Answer:2^n -1 for n bulbs
Explanation:
It's a binary sequence. Either a bulb will be on or off. All the bulbs when switched off don't contribute in pattern. So -1 for all the bulbs being switched off.
Similar questions