%I #8 Sep 03 2023 10:41:27
%S 3,2,1,3,15,1,2,14,1,5,2,1,13,4,1,2,4,1,5,2,1,12,3,1,2,3,1,3,2,1,3,4,
%T 1,2,4,1,11,2,1,5,6,1,2,8,1,4,2,1,4,3,1,2,3,1,3,2,1,3,5,1,2,10,1,4,2,
%U 1,4,5,1,2,6,1,7,2,1,5,3,1,2,3,1,3,2,1,3
%N Number of steps for iteration of map x -> (5/3)*round(x) to reach an integer > n when started at n, or -1 if no such integer is ever reached.
%C Conjecture: an integer will always be reached, i.e. a(n) > 0 for all n.
%o (Python)
%o from fractions import Fraction
%o def A365367(n):
%o x, c = Fraction(n), 0
%o while x.denominator > 1 or x<=n:
%o x = Fraction(5*x.__round__(),3)
%o c += 1
%o return c
%Y Cf. A087704, A087705, A087706, A087707, A087708, A087709, A365342, A365343.
%K nonn
%O 1,1
%A _Chai Wah Wu_, Sep 02 2023