A243573 Irregular triangular array generated as in Comments; contains every positive integer exactly once.
1, 2, 4, 3, 5, 8, 16, 6, 9, 12, 17, 20, 32, 64, 7, 10, 13, 18, 21, 24, 33, 36, 48, 65, 68, 80, 128, 256, 11, 14, 19, 22, 25, 28, 34, 37, 40, 49, 52, 66, 69, 72, 81, 84, 96, 129, 132, 144, 192, 257, 260, 272, 320, 512, 1024, 15, 23, 26, 29, 35, 38, 41, 44, 50
Offset: 1
Examples
First 5 rows of the array: 1 2 .. 4 3 .. 5 .. 8 .. 16 6 .. 9 .. 12 . 17 . 20 . 32 . 64 7 .. 10 . 13 . 18 . 21 . 24 . 33 . 36 . 48 . 65 . 68 . 80 . 128 . 256
Links
- Clark Kimberling, Table of n, a(n) for n = 1..2500
Programs
-
Mathematica
z = 8; g[1] = {1}; f1[x_] := x + 1; f2[x_] := 4 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] (* A243573 *)
Comments