OFFSET
0,2
COMMENTS
The sequence produced by repeatedly applying t->(1+t,-1/t), starting from {1} and discarding numbers produced earlier, might be called Fibonacci or rabbit ordering of the rationals, in analogy to that ordering of the positive rationals, with t -> (1+t,1/t).
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,1).
FORMULA
o.g.f. = (1 + x + x^2 - x^3 - x^5)/(1 - x - x^3)
EXAMPLE
The terms produced as described above are (grouped by iteration, including the starting value 1 = iteration 0): [1], [2, -1], [3, -1/2, 0], [4, -1/3, 1/2], [5, -1/4, 2/3, 3/2, -2], [6, -1/5, 3/4, 5/3, -3/2, 5/2, -2/3],[7, -1/6, 4/5, 7/4, -4/3, 8/3, -3/5, 7/2, -2/5, 1/3],[8, -1/7, 5/6, 9/5, -5/4, 11/4, -4/7, 11/3, -3/8, 2/5, 9/2, -2/7, 3/5, 4/3, -3], ...
MATHEMATICA
CoefficientList[Series[(1+x+x^2-x^3-x^5)/(1-x-x^3), {x, 0, 50}], x] (* or *) LinearRecurrence[{1, 0, 1}, {1, 2, 3, 3, 5, 7}, 50] (* Harvey P. Dale, Mar 04 2026 *)
PROG
(PARI) a(n)=if(n>2, ([0, 1, 0; 0, 0, 1; 1, 0, 1]^(n-3)*[3; 5; 7])[1, 1], n+1) \\ Charles R Greathouse IV, May 28 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Jun 01 2013
STATUS
approved
