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.

A247913 Numbers k such that A247911(k+1) = A247911(k) + 1.

Original entry on oeis.org

1, 3, 5, 6, 8, 10, 11, 13, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 31, 33, 34, 36, 38, 39, 41, 43, 44, 46, 48, 49, 51, 53, 54, 56, 58, 59, 61, 63, 65, 66, 68, 70, 71, 73, 75, 76, 78, 80, 82, 83, 85, 87, 88, 90, 92, 94, 95, 97, 99, 100, 102, 104, 106, 107
Offset: 1

Views

Author

Clark Kimberling, Sep 27 2014

Keywords

Comments

Complement of A247912.

Examples

			A247911(n+1) - A247911(n) = (1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,...), and a(n) is the position of the n-th 1.
		

Crossrefs

Programs

  • Mathematica
    $RecursionLimit = 1000; $MaxExtraPrecision = 1000;
    z = 300; u[1] = 0; u[2] = 1; u[n_] := u[n] = u[n - 1] + u[n - 2]/(n - 2);
    f[n_] := f[n] = Select[Range[z], (2 # + 1)/u[2 # + 1] - E < n^-n &, 1];
    u = Flatten[Table[f[n], {n, 1, z}]]  (* A247911 *)
    w = Differences[u]
    Flatten[Position[w, 0]] (* A247912 *)
    Flatten[Position[w, 1]] (* A247913 *)