OFFSET
1,2
REFERENCES
E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways, Table 3, page 433.
FORMULA
a(n)=smallest natural not the exclusive-or of at most three a(k) for k<n.
MATHEMATICA
Clear[a]; a[1] = 1; a[n_] := a[n] = (xor = BitXor @@@ Subsets[Array[a, n-1], 3] // Union ; r = Range[0, m = Last[xor]]; cp = Complement[r, xor]; If[cp == {}, m+1, First[cp]]); Table[a[n], {n, 1, 43}] (* Jean-François Alcover, Jan 09 2013 *)
CROSSREFS
KEYWORD
nonn,nice,easy
AUTHOR
EXTENSIONS
More terms from N. J. A. Sloane Apr 29, 2000
STATUS
approved