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.

A248566 Numbers k such that A248565(k+1) = A248565(k) + 1.

Original entry on oeis.org

1, 2, 4, 5, 7, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 29, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 116, 118
Offset: 1

Views

Author

Clark Kimberling, Oct 09 2014

Keywords

Examples

			(A248565(k+1) - A248565(k)) = (1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2,...), so that A248566 = (1, 2, 4, 5, 7, 8, 10, 12, 14, ..) and A248567 = (3, 6, 9, 11, 13, 16, 18, 20, ...).
		

Crossrefs

Programs

  • Mathematica
    z = 2500; p[k_] := p[k] = Sum[1/(h*4^h), {h, 1, k}];
    N[Table[p[k], {k, 1, z/5}], 12];
    N[Table[Log[4/3] - p[n], {n, 1, z/5}]];
    f[n_] := f[n] = Select[Range[z], Log[4/3] - p[#] < 1/8^n &, 1];
    u = Flatten[Table[f[n], {n, 1, z}]] ;   (* A248565 *)
    Flatten[Position[Differences[u], 1]];   (* A248566 *)
    Flatten[Position[Differences[u], 2]];   (* A248567 *)