A lamp flickering on and off inspires the math mystery of Thomson's lamp

If you switch a lamp on and off an infinite number of times, will the light end up on or off? Somehow math says both