A Dynamical Criterion Equivalent to the Riemann Hypothesis