OFFSET
0,2
LINKS
MATHEMATICA
mex[s_] := Min[Complement[Range[0, Max[{s, -1}] + 1], Flatten[s]]];
f[s_] := Join[s, s + Table[i, {i, Length[s]}]];
T[n_, k_] := T[n, k] = mex[{f[Table[T[n - i, k], {i, n}]], f[Table[T[n, k - i], {i, k}]], f[Table[T[n - i, k - i], {i, Min[n, k]}]]}];
a[n_] := T[n, n];
Table[a[n], {n, 0, 69}] (* Jean-François Alcover, Aug 19 2019, from A018219 Mma code *)
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
EXTENSIONS
Edited and extended by Christian G. Bower, Oct 29 2002
STATUS
approved