cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A045750 Extension of Beatty sequence, complement of A045749.

Original entry on oeis.org

0, 4, 8, 12, 19, 23, 27, 34, 38, 42, 49, 53, 57, 61, 65, 69, 76, 80, 84, 91, 95, 99, 106, 110, 114, 118, 122, 126, 133, 137, 141, 148, 152, 156, 163, 167, 171, 175, 179, 183, 190, 194, 198, 205, 209, 213, 220, 224, 228, 235, 239, 243, 250, 254, 258
Offset: 0

Views

Author

Keywords

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

Crossrefs

Programs

  • 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 *)

Formula

a(n) = 3*A045749(n) + n.