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.

A247915 Numbers k such that A247914(k+1) = A247914(k) + 1.

Original entry on oeis.org

2, 3, 4, 5, 7, 8, 9, 11, 12, 13, 15, 16, 17, 18, 20, 21, 22, 24, 25, 26, 27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 41, 42, 44, 45, 46, 47, 48, 50, 51, 52, 53, 55, 56, 57, 58, 60, 61, 62, 63, 64, 66, 67, 68, 69, 70, 72, 73, 74, 75, 77, 78, 79, 80, 81, 83
Offset: 1

Views

Author

Clark Kimberling, Sep 27 2014

Keywords

Comments

Complement of A247916.

Examples

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

Crossrefs

Programs

  • Mathematica
    $RecursionLimit = Infinity; $MaxExtraPrecision = Infinity;
    z = 500; 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], Abs[(# + 1)/u[# + 1] - E] < n^-n &, 1];
    u = Flatten[Table[f[n], {n, 1, z}]]  (* A247914 *)
    w = Differences[u]
    f1 = Flatten[Position[w, 1]] (* A247915 *)
    f2 = Flatten[Position[w, 2]] (* A247916 *)