Assume that we have two light bulbs in the room. Each bulb turns ON at fixed periodic intervals and stays ON for fix time period before turning OFF. The ON time is part of the periodic interval; ON time + OFF time = 1 cycle. Let's call them Bulb A and Bulb B with periodic times as 'Ca' and 'Cb'. The time the bulb stays ON is 'Ta' and 'Tb' respectively. Is there a mathematical expression to determine the next time instance when both the bulbs are in the "ON" state at the same time? Not necessarily turning on at the same time.
We can assume both periodic cycles start at the same time and the periodic times (Ca, Cb) are not multiples of each other.
To be more explanatory, I provided some numbers below
Bulb A peroidic time : Ca = 470ms.
Bulb B periodic time : Cb = 1280ms.
Bulb A stays on for Ta = 10ms.
Bulb B stays on for Tb = 20ms.
Assuming that both cycles start at exactly the same instance (time t = 0),
Bulb A ON time : (-5 to 5), (465 - 475), (935 - 945), ....
Bulb B ON time : (-10 to 10), (1270 - 1290), (2550 - 2570), ...
I am interested in knowing when will be the earliest time instance when both bulbs will be in "ON" state at the same time.
A simplified version of the problem is to assume Ta = Tb = impulse/Dirac delta function, meaning we treat it as overlap only at the exact instance. In that case, the solution is just the Least Common Multiplier of the cycle time of A and B (For numbers provided earlier solution is 60160ms ~ 60 secs)
I am interested in knowing if there is a mathematical way to solve if Ta and Tb are not zero and not equal.