login
A063257
Let f be a function on rationals p/q (p,q coprime) defined by f(p/q) = abs(p-q)/g(p), where g(p) is the next odd number (starting with p) that we get after iteration of h(n) = n/2 when n is even, 5n+1 when n is odd. Start with f(n/1) and iterate f until it reaches again an integer, which is a(n). If no integer is reached, then a(n)=0.
2
0, 1, 2, 3, 9, 11, 1, 7, 15, 19, 2, 1, 7, 9, 11, 15, 27, 35, 6, 3, 7, 1, 5, 19, 13, 17, 19, 2, 21, 17, 2, 31, 51, 67, 19, 17, 13, 11, 1, 17, 45, 6, 11, 5, 79, 5, 5, 15, 25, 33, 50, 38, 8, 2, 9, 7, 5, 12, 45, 5, 1, 85, 40, 63, 99, 131, 15, 69, 7, 17, 13, 13, 3, 5, 7, 21, 67, 1, 1, 17, 9
OFFSET
1,3
EXAMPLE
We get 6/1 -> 5/3 -> 2/13 -> 11/1 so a(6)=11.
CROSSREFS
KEYWORD
nonn
AUTHOR
Floor van Lamoen, Jul 12 2001
STATUS
approved