Well, to go into more specifics, you get something like
this. We're working with traps, here - you trigger the first one with whatever you want (say, pulling a lever). This triggers (by, say, casting mage hand on a lever) the second trap, which triggers two traps - a magic "trap" that casts Greater Celerity on somebody in a particular square (you need some shenanigans to make the spell non-personal so that it can actually be made into a trap, I think, but once that's taken care of you're good to go), and a trap that triggers the second trap again.
Traps are allowed to reset "immediately", whatever that means, and D&D doesn't specify a minimum amount of time that has to pass between things occurring - there's none of the quantum physics that sets a hard cap on how fast things can occur*, nor do you have to obey any of the laws of thermodynamics. Characters have a set number of actions that normally handles that sort of nonsense, but to the best of my knowledge, traps don't actually use actions. However, I can't honestly tell you what all that
means in terms of how many times you can make something happen in a round, because I lack both a real math background and a computer science background, so I... really don't know how to handle the question in a way that isn't basically guessing.
I posted it here mostly because, based on the diagram and that I'm constructing this as what boils down to a "While" loop with no condition for termination, it seems like it comes down to very similar logic to attempting to execute an infinite loop in a program.
I recognize that this is stupid, but the goal here is to reach level infinity so that's kind of a given.
*I also don't have the physics background necessary to know if this is a sentence that makes sense, or one that is as close to making physical sense while being intelligible to a layperson.