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.

A068377 Engel expansion of sinh(1).

Original entry on oeis.org

1, 6, 20, 42, 72, 110, 156, 210, 272, 342, 420, 506, 600, 702, 812, 930, 1056, 1190, 1332, 1482, 1640, 1806, 1980, 2162, 2352, 2550, 2756, 2970, 3192, 3422, 3660, 3906, 4160, 4422, 4692, 4970, 5256, 5550, 5852, 6162, 6480, 6806, 7140, 7482, 7832, 8190
Offset: 1

Views

Author

Benoit Cloitre, Mar 03 2002

Keywords

Comments

This sequence is also the Pierce expansion of sin(1). - G. C. Greubel, Nov 14 2016

Crossrefs

Programs

  • Mathematica
    Join[{1}, Table[(2 n - 2) (2 n - 1), {n, 2, 50}]] (* Bruno Berselli, Aug 04 2015 *)
    LinearRecurrence[{3,-3,1}, {1,6,20,42}, 25] (* G. C. Greubel, Oct 27 2016; a(1)=1 by Georg Fischer, Apr 02 2019*)
    Rest@ CoefficientList[Series[x (1 + 3 x + 5 x^2 - x^3)/(1 - x)^3, {x, 0, 46}], x] (* Michael De Vlieger, Oct 28 2016 *)
    PierceExp[A_, n_] := Join[Array[1 &, Floor[A]], First@Transpose@ NestList[{Floor[1/Expand[1 - #[[1]] #[[2]]]], Expand[1 - #[[1]] #[[2]]]} &, {Floor[1/(A - Floor[A])], A - Floor[A]}, n - 1]]; PierceExp[N[Sin[1] , 7!], 50] (* G. C. Greubel, Nov 14 2016 *)
  • PARI
    A068377(n)=(n+n--)*n*2+!n \\ M. F. Hasler, Jul 19 2015
    
  • Sage
    A068377 = lambda n: rising_factorial(n*2,2) if n>0 else 1
    print([A068377(n) for n in (0..45)]) # Peter Luschny, Aug 04 2015

Formula

a(n) = (2*n-2)*(2*n-1) = A002943(n-1) = 2*A000217(2n-2) for n>1. [Corrected and extended by M. F. Hasler, Jul 19 2015]
From Colin Barker, Apr 13 2012: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>4.
G.f.: x*(1 + 3*x + 5*x^2 - x^3)/(1-x)^3. (End)
E.g.f.: -2 + x + 2*(1 - x + 2*x^2)*exp(x). - G. C. Greubel, Oct 27 2016
From Amiram Eldar, May 05 2025: (Start)
Sum_{n>=1} 1/a(n) = 2 - log(2).
Sum_{n>=1} (-1)^(n+1)/a(n) = 2 - Pi/4 - log(2)/2. (End)

A068380 Engel expansion of sinh(1/3).

Original entry on oeis.org

3, 54, 180, 378, 648, 990, 1404, 1890, 2448, 3078, 3780, 4554, 5400, 6318, 7308, 8370, 9504, 10710, 11988, 13338, 14760, 16254, 17820, 19458, 21168, 22950, 24804, 26730, 28728, 30798, 32940, 35154, 37440, 39798, 42228, 44730, 47304, 49950, 52668, 55458, 58320, 61254
Offset: 1

Views

Author

Benoit Cloitre, Mar 03 2002

Keywords

Comments

Cf. A006784 for the definition of the Engel expansion.
The MathWorld link mentions the closed form of the Engel expansion of sinh(1). - Georg Fischer, Nov 22 2020

Examples

			sinh(1/3) = 1/3 + 1/(3*54) + 1/(3*54*180) + 1/(3*54*180*378) + 1/(3*54*180*378*648) + ... = 0.33954055725615013910126061...
		

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{3, -3, 1}, {3, 54, 180, 378}, 50]
  • PARI
    a(n)=if(n<=1, 3, 18*(n*(2*n-3)+1));
    
  • PARI
    my(x='x+O('x^43)); Vec(3*x*(1+15*x+9*x^2-x^3)/(1-x)^3) \\ Elmo R. Oliveira, May 29 2025

Formula

a(n) = 18*(n*(2*n-3)+1) for n > 1, a(1)=3. - Ralf Stephan, Sep 03 2003
From Colin Barker, Apr 13 2012: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n > 4.
G.f.: 3*x*(x^3-9*x^2-15*x-1)/(x-1)^3. (End)
From Amiram Eldar, May 05 2025: (Start)
Sum_{n>=1} 1/a(n) = (4-log(2))/9.
Sum_{n>=1} (-1)^(n+1)/a(n) = 4/9 - Pi/36 - log(2)/18. (End)
From Elmo R. Oliveira, May 29 2025: (Start)
E.g.f.: 3*(6*exp(x)*(1 - x + 2*x^2) + (x - 6)).
a(n) = 9*A002943(n-1) for n >= 2. (End)

Extensions

Edited, offset 1 and a(1)=3 by Georg Fischer, Nov 23 2020
More terms from Elmo R. Oliveira, May 29 2025
Showing 1-2 of 2 results.