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.

Showing 1-2 of 2 results.

A248180 Least k such that r - sum{1/C(2h+1,h), h = 0..k} < 1/2^n, where r = (2/27)*(9 + 2*sqrt(3)*Pi).

Original entry on oeis.org

1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 30, 30, 31, 31, 32, 32, 33, 33, 34, 34, 35
Offset: 0

Views

Author

Clark Kimberling, Oct 03 2014

Keywords

Comments

This sequence gives a measure of the convergence rate of sum{1/C(2h+1,h), h = 0..k}. Since a(n+1) - a(n) is in {0,1} for n >= 0, the sequences A248195 and A248196 partition the positive integers.

Examples

			Let s(n) = sum{1/C(2h+1,h), h = 0..n}.  Approximations are shown here:
n ... r - s(n) ..... 1/2^n
0 ... 0.47289 ...... 1
1 ... 0.139466 ..... 0.5
2 ... 0.0394664 .... 0.25
3 ... 0.010895 ..... 0.125
4 ... 0.00295845 ... 0.0625
a(3) = 2 because r - s(2) < 1/8 < r - s(1).
		

Crossrefs

Programs

  • Mathematica
    $MaxExtraPrecision = Infinity;
    z = 300; p[k_] := p[k] = Sum[1/Binomial[2 h + 1, h], {h, 0, k}] ;
    r = Sum[1/Binomial[2 h + 1, h], {h, 0, Infinity}]  (* A248179 *)
    r = 2/27 (9 + 2 Sqrt[3] \[Pi]); N[r, 20]
    N[Table[r - p[n], {n, 0, z/10}]]
    f[n_] := f[n] = Select[Range[z], r - p[#] < 1/2^n &, 1]
    u = Flatten[Table[f[n], {n, 0, z}]]  (* A248180 *)
    Flatten[Position[Differences[u], 0]] (* A248195 *)
    Flatten[Position[Differences[u], 1]] (* A248196 *)

A248196 Numbers k such that A248180(k+1) = A248180(k) + 1.

Original entry on oeis.org

3, 5, 7, 9, 11, 13, 15, 17, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 87, 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123
Offset: 0

Views

Author

Clark Kimberling, Oct 03 2014

Keywords

Comments

Complement of A248195.

Examples

			The difference sequence of A248180 is (0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1,...), so that A248195 = (1,2,4,6,8,10,12,14,16,19,...) and A248196 = (3,5,7,9,11,13,15,17,18,...)
		

Crossrefs

Programs

  • Mathematica
    $MaxExtraPrecision = Infinity;
    z = 300; p[k_] := p[k] = Sum[1/Binomial[2 h + 1, h], {h, 0, k}] ;
    r = Sum[1/Binomial[2 h + 1, h], {h, 0, Infinity}]  (* A248179 *)
    r = 2/27 (9 + 2 Sqrt[3] \[Pi]); N[r, 20]
    N[Table[r - p[n], {n, 0, z/10}]]
    f[n_] := f[n] = Select[Range[z], r - p[#] < 1/2^n &, 1]
    u = Flatten[Table[f[n], {n, 0, z}]]  (* A248180 *)
    Flatten[Position[Differences[u], 0]] (* A248195 *)
    Flatten[Position[Differences[u], 1]] (* A248196 *)
Showing 1-2 of 2 results.