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!)
A074631 a(n) is the smallest k such that the sum of the first k terms of the composite-harmonic series, Sum 1/(j-th composite), is > n. 5
9, 44, 168, 587, 1940, 6192, 19285, 59010, 178122, 531923, 1574706, 4628338, 13521477, 39299115, 113712434, 327752962, 941457955 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Limit_{n->oo} a(n+1)/a(n) = e. - Robert G. Wilson v, Aug 28 2002
LINKS
FORMULA
a(n) = Min { k : Sum_{j=1..k} 1/A002808(j) > n }.
EXAMPLE
1/4 + 1/6 + 1/8 + 1/9 + 1/10 + 1/12 + 1/14 + 1/15 + 1/16 = 1045/1008, but if 1/16 is not present, the sum is less than 1; 16 is the ninth composite number, so a(1) = 9.
MATHEMATICA
NextComposite[n_] := Block[{k = n + 1}, While[PrimeQ[k], k++ ]; k]; s=0; k = 4; Do[While[s = s + 1/k; s < n, k = NextComposite[k]]; Print[k - PrimePi[k] - 1]; k = NextComposite[k], {n, 1, 20}]
Table[Position[Accumulate[1/Select[Range[5*10^6], CompositeQ]], _?(#>n&), 1, 1], {n, 12}]//Flatten (* The program generates the first 12 terms of the sequence. *) (* Harvey P. Dale, Jan 22 2023 *)
CROSSREFS
Sequence in context: A036599 A229404 A059825 * A084903 A349878 A034558
KEYWORD
nonn,nice,more
AUTHOR
Labos Elemer, Aug 27 2002
EXTENSIONS
Edited by Robert G. Wilson v, Aug 28 2002
More terms from Robert Gerbicz, Aug 30 2002
2 more terms from Robert G. Wilson v, Sep 03 2002
Edited by Jon E. Schoenfield, Sep 13 2023
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 March 19 03:33 EDT 2024. Contains 370952 sequences. (Running on oeis4.)