A243571 Irregular triangular array generated as in Comments; contains every positive integer exactly once.
1, 2, 3, 4, 5, 6, 8, 7, 9, 10, 12, 16, 11, 13, 14, 17, 18, 20, 24, 32, 15, 19, 21, 22, 25, 26, 28, 33, 34, 36, 40, 48, 64, 23, 27, 29, 30, 35, 37, 38, 41, 42, 44, 49, 50, 52, 56, 65, 66, 68, 72, 80, 96, 128, 31, 39, 43, 45, 46, 51, 53, 54, 57, 58, 60, 67, 69
Offset: 1
Examples
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
Links
Programs
-
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 *)
Comments