cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A242308 Irregular triangular array of numerators of the positive rational numbers ordered as in Comments.

This page as a plain text file.
%I A242308 #4 Jun 08 2014 09:17:23
%S A242308 1,1,2,2,1,3,3,2,5,3,5,3,1,3,4,8,5,4,8,5,2,5,3,7,13,7,8,4,7,13,7,8,4,
%T A242308 1,3,4,8,5,5,11,11,21,12,7,13,7,5,11,11,21,12,7,13,7,2,5,3,7,13,7,8,4,
%U A242308 9,18,10,19,34,18,19,9,12,21,11,11,5,9,18,10
%N A242308 Irregular triangular array of numerators of the positive rational numbers ordered as in Comments.
%C A242308 Decree that row 1 is (1) and row 2 is (1/2).  For n >=3, row n consists of numbers in increasing order generated  as follows:  1/(x + 1) for each x in row n-1 together with x + 1 for each x in row n-2.  It is easy to prove that row n consists of F(n) numbers, where F = A000045 (the Fibonacci numbers), and that every positive rational number occurs exactly once.
%H A242308 Clark Kimberling, <a href="/A242308/b242308.txt">Table of n, a(n) for n = 1..6000</a>
%e A242308 First 6 rows of the array of rationals:
%e A242308 1/1
%e A242308 1/2
%e A242308 2/3 ... 2/1
%e A242308 1/3 ... 3/5 ... 3/2
%e A242308 2/5 ... 5/8 ... 3/4 ... 5/3 ... 3/1
%e A242308 1/4 ... 3/8 ... 4/7 ... 8/13 .. 5/7 .. 4/3 .. 8/5 .. 5/2
%e A242308 The numerators, by rows:  1,1,2,2,1,3,3,2,5,3,5,3,1,3,4,8,5,4,8,5,...
%t A242308 z = 18; g[1] = {1}; f1[x_] := 1/x; f2[x_] := 1/(x + 1); h[1] = g[1];
%t A242308 b[n_] := b[n] = DeleteDuplicates[Union[f1[g[n - 1]], f2[g[n - 1]]]];
%t A242308 h[n_] := h[n] = Union[h[n - 1], g[n - 1]];
%t A242308 g[n_] := g[n] = Complement [b[n], Intersection[b[n], h[n]]]
%t A242308 u = Table[g[n], {n, 1, z}]; v = Flatten[u];
%t A242308 Denominator[v]; (* A243574 *)
%t A242308 Numerator[v];   (* A242308 *)
%Y A242308 Cf. A242574, A242360, A000045.
%K A242308 nonn,easy,tabf,frac
%O A242308 1,3
%A A242308 _Clark Kimberling_, Jun 07 2014