Then T(x)=int(mix/d)+xi if x≡ i (mod d).
Equivalently: let r0,...,rd-1 be integers satisfying ri ≡ -imi (mod d) for 0 ≤ i ≤ d-1. ThenThen T(x)=(mix+ri)/d if x≡ i (mod d).
Example. The 3x+1 mapping T(x)=x/2 if x is even, (3x+1)/2 if x is odd, corresponds to m0=1, m1=3, x0=0, x1=1, r0=0, r1= 1.To convert the second function to the first, note that xi = (mii+ri)/d - int(mii/d).
Starting in 1982, Tony Watts and I investigated the frequencies of occupation of congruence classes (mod M)
of trajectories arising from generalized 3x+1 functions. (See earlier 3x+1 interests)
Experimentally we observed that all trajectories exhibited a limiting frequency of occupation of congruence classes (mod M).
The present program prints these frequencies for the iterates x, T(x), T2(x), ...,Tk-1(x)
Last modified 22nd May 2026
Return to main page