login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A184414
Upper s(n)-Wythoff sequence, where s(n)=floor[(n+1)/2].
3
2, 4, 7, 8, 12, 13, 15, 18, 21, 22, 25, 26, 30, 31, 35, 36, 38, 41, 43, 44, 48, 50, 52, 54, 58, 59, 61, 63, 66, 68, 71, 72, 74, 77, 80, 82, 84, 86, 89, 90, 94, 96, 98, 100, 102, 104, 107, 109, 112, 113, 117, 118, 120, 122, 125, 127, 130, 132, 135, 136, 139, 141, 143, 146, 148, 149, 153, 155, 158, 159, 162, 164, 166, 168, 171, 172, 176, 177, 180, 182, 185, 186, 189, 192, 194, 195, 198, 200, 202, 205, 207, 209, 212, 214, 217, 218, 222, 223, 225, 228
OFFSET
1,1
COMMENTS
See A184117 for the definition of lower and upper s(n)-Wythoff sequences.
MATHEMATICA
mex:=First[Complement[Range[1, Max[#1]+1], #1]]&;
s[n_]:=Floor[(n+1)/2]; a[1]=1; b[n_]:=b[n]=s[n]+a[n];
a[n_]:=a[n]=mex[Flatten[Table[{a[i], b[i]}, {i, 1, n-1}]]];
Table[s[n], {n, 20}]
Table[a[n], {n, 100}]
Table[b[n], {n, 100}]
CROSSREFS
Sequence in context: A270200 A186543 A187346 * A060406 A001839 A087686
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 13 2011
STATUS
approved