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-7 of 7 results.

A136616 a(n) = largest m with H(m) - H(n) <= 1, where H(i) = Sum_{j=1 to i} 1/j, the i-th harmonic number, H(0) = 0.

Original entry on oeis.org

1, 3, 6, 9, 11, 14, 17, 19, 22, 25, 28, 30, 33, 36, 38, 41, 44, 47, 49, 52, 55, 57, 60, 63, 66, 68, 71, 74, 76, 79, 82, 85, 87, 90, 93, 96, 98, 101, 104, 106, 109, 112, 115, 117, 120, 123, 125, 128, 131, 134, 136, 139, 142, 144, 147, 150, 153, 155, 158, 161, 163, 166
Offset: 0

Views

Author

Rainer Rosenthal, Jan 13 2008

Keywords

Examples

			a(3) = 9 because H(9) - H(3) = 1/4 + ... + 1/9 < 1 < 1/4 + ... + 1/10 = H(10) - H(3).
		

Crossrefs

Programs

  • Maple
    e:= exp(1):
    A136616 := n -> floor( e*n + (e-1)/2 + (e - 1/e)/(24*(n + 1/2))):
    seq(A136616(n), n=0..50);
  • PARI
    default(realprecision, 10^5); e=exp(1);
    a(n) = floor(e*n+(e-1)/2+(e-1/e)/(24*n+12)); \\ Jinyuan Wang, Mar 06 2020

Formula

a(n) = floor(e*n + (e-1)/2 + (e - 1/e)/(24*(n + 1/2))), after a suggestion by David Cantrell.
a(n) = A103762(n+1) - 1 = A136617(n+1) + n for n > 0. - Jinyuan Wang, Mar 06 2020

Extensions

Definition corrected by David W. Cantrell, Apr 14 2008

A136617 a(n) = largest k such that the sum of k consecutive reciprocals 1/n + ... + 1/(n+k-1) does not exceed 1.

Original entry on oeis.org

1, 2, 4, 6, 7, 9, 11, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 30, 31, 33, 35, 36, 38, 40, 42, 43, 45, 47, 48, 50, 52, 54, 55, 57, 59, 61, 62, 64, 66, 67, 69, 71, 73, 74, 76, 78, 79, 81, 83, 85, 86, 88, 90, 91, 93, 95, 97, 98, 100, 102, 103, 105, 107, 109, 110, 112, 114, 115
Offset: 1

Views

Author

Rainer Rosenthal, Jan 13 2008

Keywords

Comments

Heuristic formula from David Cantrell (SeqFan mailing list, January 2008). Think of a ruler with harmonic numbers H(n) as marks. Then A136617(n) gives the number of marks m-n+1 = A136616(n)-n+1:
.............H........H.....H........***.....H.......
..............n-1......n.....n+1..............m......
...........----o-------+------+-----.***.-----+-o----
................\____________..____________/......
...............................\/.....................
............................Length 1..................
The first 23 terms of A083088 are identical to those of A136617 but the limits of A083088(n)/n and A136617(n)/n for n->oo are different.

Examples

			a(3) = 4 because 1/3+1/4+1/5+1/6 < 1 has 4 summands; adding 1/7 exceeds 1.
		

Crossrefs

Programs

  • Maple
    A136617 := proc(n) local t, m; t:= 0; for m from n do t:= t+1/m; if t > 1 then return m-n; fi; od; end proc;[seq(A136617(n),n=1..100)]; # Robert Israel, Jan 2008
  • Mathematica
    Table[Module[{start = Floor[z (E - 1)] - 1},
      NestWhile[# + 1 &, start, HarmonicNumber[# + z] - HarmonicNumber[z] + 1/z <= 1 &]], {z, 1, 100}] (* Peter J. C. Moses, Aug 20 2012 *)

Formula

a(n) = A136616(n-1) - n + 1 with David Cantrell's heuristics: a(n) = floor( (e - 1)*(n - 1/2) + (e - 1/e)/(24*(n - 1/2)) ).

A192881 Number of terms for the shortest Egyptian fraction representation of 1 starting with 1/n.

Original entry on oeis.org

1, 3, 5, 8, 10, 11, 13, 15, 17, 19
Offset: 1

Views

Author

Teena Carroll, Jul 11 2011

Keywords

Comments

An Egyptian fraction representation of a rational number a/b is a list of distinct unit fractions with sum a/b.

Examples

			Since 1/3 + 1/4 + 1/5 + 1/6 + 1/20 = 1, we see that a(3) <= 5.  We know the maximum sum of 4 distinct unit fractions (1/3 or less) is 19/20, so this shows a(3)=5. An Egyptian fraction decomposition of 1 starting with 1/4 must have at least 8 terms; however, the expressions need not be unique, as all three of 1 = 1/4 + 1/5 + 1/6 + 1/7 + 1/8 + 1/9 + 1/230 + 1/57960, 1 = 1/4 + 1/5 + 1/6 + 1/7 + 1/8 + 1/9 + 1/231 + 1/27720 and 1 = 1/4 + 1/5 + 1/6 + 1/9 + 1/10 + 1/15 + 1/18 + 1/20 achieve this bound. - _Teena Carroll_, _Haoqi Chen_ and _Javier Múgica_
		

Crossrefs

Formula

a(n) >= A103762(n) - n + 1.

Extensions

Two more terms from Javier Múgica, Dec 18 2017

A242679 Bobo numbers: Numbers k with the property that floor(e*k) = least m with Sum_{j=k..m} 1/j > 1.

Original entry on oeis.org

4, 11, 18, 25, 32, 36, 43, 50, 57, 64, 71, 75, 82, 89, 96, 103, 114, 121, 128, 135, 142, 146, 153, 160, 167, 174, 185, 192, 199, 206, 213, 217, 224, 231, 238, 245, 256, 263, 270, 277, 284, 288, 295, 302, 309, 316, 327, 334, 341, 348, 355, 359, 366, 373, 380, 387, 398, 405, 412, 419, 426, 430, 437, 444, 451, 458, 469, 476, 483, 490, 497
Offset: 1

Views

Author

Steven J. Kifowit, May 20 2014

Keywords

Comments

These are the numbers n for which A103762(n) = floor(e*n).
If frac(e*n) > (e-1)/2, then n is a Bobo number, but not every Bobo number has this property. The exceptions are in A277603.
In Bobo's article (see Bobo link), the Bobo numbers through 2105 are listed. There is a typo: the number 143 is given in place of the correct number 142.
These numbers are mentioned in the comments associated with A103762. Differences between consecutive Bobo numbers are indeed 4, 7, or 11. An elementary proof is given in the Clancy/Kifowit link.

Crossrefs

Programs

  • PARI
    is(n)=my(e=exp(1),s); if(frac(e*n)>(e-1)/2, return(1)); s=sum(j=n,e*n\1-1, 1/j); s<=1 && s+e*n\1>1 \\ Charles R Greathouse IV, Sep 17 2016

A277603 Exceptional Bobo numbers: terms of A242679 that satisfy frac[e*A242679(n)]<(e-1)/2.

Original entry on oeis.org

36, 9045, 5195512, 5311399545, 8488859795196, 25466579385587, 19542965851120621, 58628897553361862, 61250772004870841520, 183752316014612524559, 250769086731739376780337, 752307260195218130341010, 1299515735021702625544976020, 3898547205065107876634928059
Offset: 1

Views

Author

Steven J. Kifowit, Oct 22 2016

Keywords

Comments

The exceptional Bobo numbers (EBNs) are very rare relative to the Bobo numbers (A242679).
Exceptional Bobo numbers come in two varieties. Type-1 EBNs are given by the recurrence E(0)=1,E(1)=1,E(k)=(2*k-1)*(2*E(k-1)-1)+E(k-2) for k=3,5,7,... These are derived from the denominators of the odd-indexed convergents of the continued fraction expansion of (e-1)/2 = [0;1,6,10,14,18,...]. The Type-2 EBNs are derived from the Type-1 EBNs. They have the form n*m-(m-1)/2 where n is a Type-1 EBN and m>=3 is an odd integer. However, not every number of this form is an EBN.

References

  • S. J. Kifowit, A. Mitchell, and S. Zandi, Exceptional Bobo Numbers, in preparation 2016

Crossrefs

Cf. A103762, A242679 (Bobo numbers).

A180224 a(n+1) is the least k such that 1/(a(n)+1) + 1/(a(n)+2) + ... + 1/k > 1, with a(1) = 1.

Original entry on oeis.org

1, 4, 12, 34, 94, 257, 700, 1904, 5177, 14074, 38258, 103997, 282695, 768446, 2088854, 5678095, 15434664, 41955768, 114047603, 310013528, 842704141, 2290707355, 6226788179, 16926165158, 46010087176, 125068383898, 339971115266, 924137304830, 2512065642722, 6828502388509
Offset: 1

Views

Author

Pierre CAMI, Aug 16 2010

Keywords

Examples

			1/2 = 0.5, 1/2 + 1/3 = 0.833..., 1/2 + 1/3 + 1/4 = 1.0833... > 1, so a(2) = 4.
		

Crossrefs

Cf. A103762.

Programs

  • PARI
    default(realprecision, 10^5); e=exp(1);
    lista(nn) = {my(k=1); print1(k); for(n=2, nn, print1(", ", k=floor(e*k+(e+1)/2+(e-1/e)/(24*(n+1/2))))); } \\ Jinyuan Wang, Mar 05 2020

Formula

a(n) = A103762(a(n-1) + 1) for n > 1. - Jinyuan Wang, Mar 05 2020

Extensions

Name clarified by and more terms from Jinyuan Wang, Mar 05 2020

A213908 Minimal number of terms in the series 1/n + 1/(n+1) + 1/(n+2) + ... to obtain a sum >= 1.

Original entry on oeis.org

1, 3, 5, 7, 8, 10, 12, 13, 15, 17, 19, 20, 22, 24, 25, 27, 29, 31, 32, 34, 36, 37, 39, 41, 43, 44, 46, 48, 49, 51, 53, 55, 56, 58, 60, 62, 63, 65, 67, 68, 70, 72, 74, 75, 77, 79, 80, 82, 84, 86, 87, 89, 91, 92, 94, 96, 98, 99, 101, 103, 104, 106, 108, 110
Offset: 1

Views

Author

Franz Vrabec, Jun 24 2012

Keywords

Examples

			a(3)=5 because 1/3 + 1/4 + 1/5 + 1/6 < 1 (4 terms), but 1/3 + 1/4 + 1/5 + 1/6 + 1/7 >= 1 (5 terms).
		

Programs

Formula

a(n) = A103762(n) - n + 1. - T. D. Noe, Jun 26 2012
Showing 1-7 of 7 results.