login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A248183 Least k such that 1/4 - Sum_{h = 1..k} 1/(h*(h+1)*(h+2)) < 1/n^2. 6
1, 1, 1, 2, 3, 3, 4, 5, 5, 6, 7, 8, 8, 9, 10, 10, 11, 12, 12, 13, 14, 15, 15, 16, 17, 17, 18, 19, 20, 20, 21, 22, 22, 23, 24, 24, 25, 26, 27, 27, 28, 29, 29, 30, 31, 32, 32, 33, 34, 34, 35, 36, 36, 37, 38, 39, 39, 40, 41, 41, 42, 43, 44, 44, 45, 46, 46, 47 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
This sequence gives a measure of the convergence rate of sum{1/(h*(h+1)*(h+2))}, h = 1..k} to 1/4. Since a(n+1) - a(n) is in {0,1} for n >= 0, the sequences A248184 and A248185 partition the positive integers.
LINKS
FORMULA
Conjecture: a(n) = floor(sqrt(n^2/2 + 1) - 1/2), for n>1. - Ridouane Oudra, Sep 06 2023
EXAMPLE
Let s(n) = Sum_{h = 1..k} 1/(h*(h+1)*(h+2)).
Approximations are shown here:
n ... 1/4 - s(n) ... 1/n^2
1 ... 0.08333 ...... 1
2 ... 0.04166 ...... 0.25
3 ... 0.025 ........ 0.111
4 ... 0.01666 ...... 0.0625
5 ... 0.01190 ...... 0.004
6 ... 0.00893 ...... 0.02777
a(4) = 2 because 1/4 - s(2) < 1/16 < 1/4 - s(1).
MATHEMATICA
z = 200; p[k_] := p[k] = Sum[1/(h*(h + 1)*(h + 2)), {h, 1, k}] ;
N[Table[1/4 - p[n], {n, 1, z/10}]]
f[n_] := f[n] = Select[Range[z], 1/4 - p[#] < 1/n^2 &, 1];
u = Flatten[Table[f[n], {n, 1, z}]] (* A248183 *)
Flatten[Position[Differences[u], 0]] (* A248184 *)
Flatten[Position[Differences[u], 1]] (* A248185 *)
PROG
(PARI) a(n) = my(k=1); while (1/4 - sum(h = 1, k, 1/(h*(h+1)*(h+2))) >= 1/n^2, k++); k; \\ Michel Marcus, Sep 06 2023
CROSSREFS
Sequence in context: A003003 A356988 A248186 * A049474 A076874 A127041
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 04 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 10 07:40 EDT 2024. Contains 372358 sequences. (Running on oeis4.)