OFFSET
0,2
COMMENTS
(s,t)-sequences; the case s=3, t=1.
Complement of A187749. It appears likely that A045750(n)=A187571(n) for all n>=1; the equation has been verified for n up to 500. - Clark Kimberling, Apr 02 2011
LINKS
A. S. Fraenkel, Heap games, numeration systems and sequences, arXiv:math/9809074 [math.CO], 1998; Annals of Combinatorics, 2 (1998), 197-210.
Clark Kimberling, Complementary equations, J. Int. Seq. 19 (2007), #07.1.4.
FORMULA
a(n) = 3*A045749(n) + n.
MATHEMATICA
s=3; t=1;
mex:=First[Complement[Range[1, Max[#1]+1], #1]]&;
a[0]=0; b[n_]:=b[n]=s*a[n]+t*n;
a[n_]:=a[n]=mex[Flatten[Table[{a[i], b[i]}, {i, 0, n-1}]]];
Table[a[n], {n, 200}] (* A045749 *)
Table[b[n], {n, 200}] (* A045750 *)
(* Clark Kimberling, Apr 02 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved