|
|
A365367
|
|
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.
|
|
5
|
|
|
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, 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, 1, 4, 5, 1, 2, 6, 1, 7, 2, 1, 5, 3, 1, 2, 3, 1, 3, 2, 1, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Conjecture: an integer will always be reached, i.e. a(n) > 0 for all n.
|
|
LINKS
|
|
|
PROG
|
(Python)
from fractions import Fraction
x, c = Fraction(n), 0
while x.denominator > 1 or x<=n:
x = Fraction(5*x.__round__(), 3)
c += 1
return c
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|