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.

A002852 Continued fraction for Euler's constant (or Euler-Mascheroni constant) gamma.

Original entry on oeis.org

0, 1, 1, 2, 1, 2, 1, 4, 3, 13, 5, 1, 1, 8, 1, 2, 4, 1, 1, 40, 1, 11, 3, 7, 1, 7, 1, 1, 5, 1, 49, 4, 1, 65, 1, 4, 7, 11, 1, 399, 2, 1, 3, 2, 1, 2, 1, 5, 3, 2, 1, 10, 1, 1, 1, 1, 2, 1, 1, 3, 1, 4, 1, 1, 2, 5, 1, 3, 6, 2, 1, 2, 1, 1, 1, 2, 1, 3, 16, 8, 1, 1, 2, 16, 6, 1, 2, 2, 1, 7, 2, 1, 1, 1, 3, 1, 2, 1, 2
Offset: 0

Views

Author

Keywords

Comments

The first 970258158 terms were computed by Eric W. Weisstein on Sep 21 2011 using a developmental version of Mathematica.
The first 4851382841 terms were computed by Eric W. Weisstein on Jul 22 2013 using a developmental version of Mathematica.
The first 16695279010 terms were computed by Syed Fahad on Apr 29 2021, see link.

Examples

			0.577215664901532860606512090082402431042...
0 + 1/(1 + 1/(1 + 1/(2 + 1/(1 + 1/(2 + 1/(1 + 1/(4 + 1/(3 + 1/(13 + ...
		

References

  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 3.
  • R. S. Lehman, A Study of Regular Continued Fractions. Report 1066, Ballistic Research Laboratories, Aberdeen Proving Ground, Maryland, Feb 1959.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A001620, the decimal expansion, which has many more references.
See also A073004 (exp(gamma)) and A094640 ("alternating Euler constant").
Cf. A033091 (incrementally largest terms), A033092 (positions of incrementally largest terms).
Cf. A033149 (positions of first occurrence of n in the continued fraction).

Programs

  • Magma
    ContinuedFraction(EulerGamma(100)); // Vincenzo Librandi, Oct 19 2017
  • Mathematica
    ContinuedFraction[EulerGamma, 100]
  • PARI
    default(realprecision, 11000); x=contfrac(Euler); for (n=0, 10000, write("b002852.txt", n, " ", x[n+1])) \\ Harry J. Smith, Apr 14 2009
    

Extensions

More terms from Robert G. Wilson v, Dec 08 2000

A224847 Position of first occurrence of n in the continued fraction for the Euler-Mascheroni constant (gamma).

Original entry on oeis.org

1, 3, 8, 7, 10, 68, 23, 13, 138, 51, 21, 160, 9, 198, 336, 78, 162, 175, 383, 613, 182, 650, 136, 479, 249, 861, 553, 617, 286, 299, 1951, 165, 149, 2037, 559, 482, 1283, 680, 305, 19, 348, 1129, 2279, 1883, 1902, 2563, 4752, 716, 30, 2609, 567, 247, 2170, 7776
Offset: 1

Views

Author

Eric W. Weisstein, Jul 22 2013

Keywords

Comments

This sequence is the same as A033149, but uses correct [a_0; a_1, a_2, ...] indexing of continued fraction terms.
The smallest numbers not occurring in the first 4,851,382,841 terms of the c.f. are 27943, 33436, 33978, 34017, ... - Eric W. Weisstein, Jul 22 2013

Examples

			The c.f. for gamma is  A002852 = [0; 1, 1, 2, 1, 2, 1, 4, 3, 13, ...].
1 occurs first at term a_1
2 occurs first at term a_3.
3 occurs first at term a_8.
4 occurs first at term a_7.
		

Crossrefs

Cf. A033149(n) = a(n) + 1.
Cf. A002852 (continued fraction for Euler-Mascheroni constant).

Programs

  • Mathematica
    With[{cfeg=Rest[ContinuedFraction[EulerGamma,8000]]},Table[Position[cfeg,n,1,1],{n,60}]]//Flatten (* Harvey P. Dale, Nov 06 2024 *)
Showing 1-2 of 2 results.