I have 3 lamps x, y, z. Initially, each of the lamps is turned off.
in each turn, i randomly choose one of the lamps and change its state.
Q : How many turns would it take ( on average ) until all of them are turned on ?
Coding the solution in python, got me 10 average turns.
I would to know the math way
in each turn, i randomly choose one of the lamps and change its state.
Q : How many turns would it take ( on average ) until all of them are turned on ?
Coding the solution in python, got me 10 average turns.
I would to know the math way