OFFSET
1,2
COMMENTS
Decree that row 1 is (1) and row 2 is (2). For n >= 3, row n consists of numbers in increasing order generated as follows: 2*x for each x in row n-1 together with 1+2*x 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 integer occurs exactly once. Row n has F(n-1) even numbers and F(n-2) odd numbers.
The least and greatest numbers in row n are A083329(n-1) and 2^(n-1), for n >= 1.
LINKS
EXAMPLE
First 6 rows of the array:
1
2
3 ... 4
5 ... 6 ... 8
7 ... 9 ... 10 .. 12 .. 16
11 .. 13 .. 14 .. 17 .. 18 .. 20 .. 24 .. 32
MATHEMATICA
z = 10; g[1] = {1}; f1[x_] := x + 1; f2[x_] := 2 x; h[1] = g[1];
b[n_] := b[n] = DeleteDuplicates[Union[f1[g[n - 1]], f2[g[n - 1]]]];
h[n_] := h[n] = Union[h[n - 1], g[n - 1]];
g[n_] := g[n] = Complement [b[n], Intersection[b[n], h[n]]]
u = Table[g[n], {n, 1, z}]; v = Flatten[u] (* A243571 *)
CROSSREFS
KEYWORD
nonn,easy,tabf
AUTHOR
Clark Kimberling, Jun 07 2014
STATUS
approved