[math-fun] Maximum orbit of an n-bit register with monotonic update rule