OFFSET
1,1
COMMENTS
A unimodal Collatz glide sequence is successive rises x -> (3x+1)/2 followed by successive falls x -> x/2 until dropping below its starting x.
After n increases, there are ceiling(n*log(3)/log(2) - n) decreases to drop below the initial value.
LINKS
V. Barbera, Table of n, a(n) for n = 1..125
David Dewan, Unimodal Glide Sequences.
FORMULA
a(n) = 2^n * (3^(-n) mod 2^max(2, ceiling(log2(3^n)-n))) - 1.
a(n) mod 2^(n+2) = A283507(n+1) (conjectured). - V. Barbera, Apr 20 2026
EXAMPLE
For n=3, the smallest starting x = a(3) = 23 has trajectory
23 - 35 -> 53 -> 80 -> 40 -> 20
\-----------/ \------/
n=3 increases decreases to < initial
MATHEMATICA
a[n_]:=2^n ModularInverse[3^n, 2^Max[Ceiling[Log2[3^n]-n], 2]]-1; Array[a, 30]
PROG
(PARI) a(n)={my(m=2^(logint(3^n, 2) - n + 1 + (n==1))); 2^n*(1/3^n % m) - 1} \\ Andrew Howroyd, Mar 09 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
David Dewan, Mar 04 2025
STATUS
approved
