A243572 Irregular triangular array generated as in Comments; contains every positive integer exactly once.
1, 2, 3, 4, 6, 9, 5, 7, 10, 12, 18, 27, 8, 11, 13, 15, 19, 21, 28, 30, 36, 54, 81, 14, 16, 20, 22, 24, 29, 31, 33, 37, 39, 45, 55, 57, 63, 82, 84, 90, 108, 162, 243, 17, 23, 25, 32, 34, 38, 40, 42, 46, 48, 56, 58, 60, 64, 66, 72, 83, 85, 87, 91, 93, 99, 109
Offset: 1
Examples
First 5 rows of the array: 1 2 ... 3 4 ... 6 ... 9 5 ... 7 ... 10 .. 12 .. 18 .. 27 8 ... 11 .. 13 .. 15 .. 19 .. 21 .. 28 .. 30 .. 36 .. 54 .. 81
Links
- Clark Kimberling, Table of n, a(n) for n = 1..1500
Programs
-
Mathematica
z = 10; g[1] = {1}; f1[x_] := x + 1; f2[x_] := 3 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] (* A243572 *)
Comments