OFFSET
1,3
COMMENTS
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10946
EXAMPLE
Generation g(1) consists of the seed, 1; generation g(2) consists of 0 and 2 from which 0 begets -1 and 0, but this 0 is a duplicate and is removed, while 2 begets 1 and 4, with 1 removed, so that g(3) = {-1,4}. Thereafter, g(4) = {-2,3,8}, g(5) = {-3,-4,6,7,16}, etc.
MATHEMATICA
z = 12; g[1] = {1}; g[2] = {0, 2};
g[n_] := Riffle[g[n - 1] - 1, 2 g[n - 1]];
j[2] = Join[g[1], g[2]]; j[n_] := Join[j[n - 1], g[n]];
g1[n_] := DeleteDuplicates[DeleteCases[g[n], Alternatives @@ j[n - 1]]];
g1[1] = g[1]; g1[2] = g[2]; t = Flatten[Table[g1[n], {n, 1, z}]] (*A274455*)
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Clark Kimberling, Jun 23 2016
STATUS
approved