@ColinTheMathmo the behaviour depends on (N, T mod N). So if I get to such a pair I've seen before, it must loop.
@christianp ... and there are only finitely many possibilities ... fair enough. Seems easy enough to compute lots of values and sufficiently well-defined. Good luck with the bureaucracy of the OEIS ... be prepared to be patient.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!