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

A052852 Expansion of e.g.f.: (x/(1-x))*exp(x/(1-x)).

Original entry on oeis.org

0, 1, 4, 21, 136, 1045, 9276, 93289, 1047376, 12975561, 175721140, 2581284541, 40864292184, 693347907421, 12548540320876, 241253367679185, 4909234733857696, 105394372192969489, 2380337795595885156, 56410454014314490981, 1399496554158060983080
Offset: 0

Views

Author

encyclopedia(AT)pommard.inria.fr, Jan 25 2000

Keywords

Comments

A simple grammar.
Number of {121,212}-avoiding n-ary words of length n. - Ralf Stephan, Apr 20 2004
The infinite continued fraction (1+n)/(1+(2+n)/(2+(3+n)/(3+...))) converges to the rational number A052852(n)/A000262(n) when n is a positive integer. - David Angell (angell(AT)maths.unsw.edu.au), Dec 18 2008
a(n) is the total number of components summed over all nilpotent partial permutations of [n]. - Geoffrey Critzer, Feb 19 2022

Crossrefs

Row sums of unsigned triangle A062139 (generalized a=2 Laguerre).

Programs

  • Magma
    [n eq 0 select 0 else Factorial(n)*Evaluate(LaguerrePolynomial(n-1, 0), -1): n in [0..30]]; // G. C. Greubel, Feb 23 2021
  • Maple
    spec := [S,{B=Set(C),C=Sequence(Z,1 <= card),S=Prod(B,C)},labeled]: seq(combstruct[count](spec,size=n), n=0..20);
    a := n -> ifelse(n = 0, 0, n!*hypergeom([-n+1], [1], -1)): seq(simplify(a(n)), n = 0..18);  # Peter Luschny, Dec 30 2024
  • Mathematica
    Table[n!*SeriesCoefficient[(x/(1-x))*E^(x/(1-x)),{x,0,n}],{n,0,20}] (* Vaclav Kotesovec, Oct 09 2012 *)
    Table[If[n==0, 0, n!*LaguerreL[n-1, 0, -1]], {n, 0, 30}] (* G. C. Greubel, Feb 23 2021 *)
  • PARI
    my(x='x+O('x^30)); concat([0], Vec(serlaplace((x/(1-x))*exp(x/(1-x))))) \\ G. C. Greubel, May 15 2018
    
  • Sage
    [0 if n==0 else factorial(n)*gen_laguerre(n-1, 0, -1) for n in (0..30)] # G. C. Greubel, Feb 23 2021
    

Formula

D-finite with recurrence: a(1)=1, a(0)=0, (n^2+2*n)*a(n)+(-4-2*n)*a(n+1)+ a(n+2)=0.
a(n) = Sum_{m=0..n} n!*binomial(n+2, n-m)/m!. - Wolfdieter Lang, Jun 19 2001
a(n) = n*A002720(n-1). [Riordan] - Vladeta Jovovic, Mar 18 2005
Related to an n-dimensional series: for n>=1, a(n) = (n!/e)*Sum_{k_n>=k_{n-1}>=...>=k_1>=0} 1/(k_n)!. - Benoit Cloitre, Sep 30 2006
E.g.f.: (x/(1-x))*exp((x/(1-x))) = (x/(1-x))*G(0); G(k)=1+x/((2*k+1)*(1-x)-x*(1-x)*(2*k+1)/(x+(1-x)*(2*k+2)/G(k+1))); (continued fraction). - Sergei N. Gladkovskii, Nov 24 2011
a(n) = D^n(x*exp(x)) evaluated at x = 0, where D is the operator (1+x)^2*d/dx. Cf. A000262 and A005493. - Peter Bala, Nov 25 2011
a(n) ~ exp(2*sqrt(n)-n-1/2)*n^(n+1/4)/sqrt(2). - Vaclav Kotesovec, Oct 09 2012
a(n) = n!*hypergeom([-n+1], [1], -1) for n>=1. - Peter Luschny, Oct 18 2014 [Simplified by Natalia L. Skirrow, 30 December 2024]
a(n) = Sum_{k=0..n} L(n,k)*k; L(n,k) the unsigned Lah numbers. - Peter Luschny, Oct 18 2014
a(n) = n!*LaguerreL(n-1, 0, -1) for n>=1. - Peter Luschny, Apr 08 2015, simplified Dec 30 2024
The series reversion of the e.g.f. equals W(x)/(1 + W(x)) = x - 2^2*x^2/2! + 3^3*x^3/3! - 4^4*x^4/4! + ..., essentially the e.g.f. for a signed version of A000312, where W(x) is Lambert's W-function (see A000169). - Peter Bala, Jun 14 2016
Equals column A059114(n, 2) for n >= 1. - G. C. Greubel, Feb 23 2021
a(n) = Sum_{k=1..n} k * A271703(n,k). - Geoffrey Critzer, Feb 19 2022

A288268 Expansion of e.g.f.: exp(Sum_{k>=1} (k-1)*x^k/k).

Original entry on oeis.org

1, 0, 1, 4, 21, 136, 1045, 9276, 93289, 1047376, 12975561, 175721140, 2581284541, 40864292184, 693347907421, 12548540320876, 241253367679185, 4909234733857696, 105394372192969489, 2380337795595885156, 56410454014314490981, 1399496554158060983080
Offset: 0

Views

Author

Seiichi Manyama, Oct 20 2017

Keywords

Crossrefs

Programs

  • Magma
    l:= func< n, a, b | Evaluate(LaguerrePolynomial(n, a), b) >;
    [1,0]cat[(Factorial(n)/(n-1))*(2*l(n-1,0,-1) - l(n,0,-1)): n in [2..30]]; // G. C. Greubel, Mar 10 2021
    
  • Maple
    a := proc(n) option remember; if n < 3 then [1, 0, 1][n+1] else
    -(n^2 - 4*n + 3)*a(n - 2) + (2*n - 2)*a(n - 1) fi end:
    seq(a(n), n = 0..21); # Peter Luschny, Feb 20 2022
  • Mathematica
    Table[If[n<2, 1-n, (n!/(n-1))*(2*LaguerreL[n-1, -1] - LaguerreL[n, -1])], {n, 0, 30}] (* G. C. Greubel, Mar 10 2021 *)
  • PARI
    {a(n) = n!*polcoeff(exp(sum(k=1, n, (k-1)*x^k/k)+x*O(x^n)), n)}
    
  • Sage
    [1-n if n<2 else (factorial(n)/(n-1))*(2*gen_laguerre(n-1,0,-1) - gen_laguerre(n,0,-1)) for n in (0..30)] # G. C. Greubel, Mar 10 2021

Formula

a(0) = 1 and a(n) = (n-1)! * Sum_{k=1..n} (k-1)*a(n-k)/(n-k)! for n > 0.
E.g.f.: (1 - x) * exp(x/(1 - x)). - Ilya Gutkovskiy, Jul 27 2020
a(n) = (n!/(n-1))*( 2*LaguerreL(n-1, -1) - LaguerreL(n, -1) ) with a(0) = 1, a(1) = 0. - G. C. Greubel, Mar 10 2021
a(n) ~ n^(n - 3/4) * exp(-1/2 + 2*sqrt(n) - n) / sqrt(2) * (1 - 65/(48*sqrt(n))). - Vaclav Kotesovec, Mar 10 2021, minor term corrected Dec 01 2021
From Peter Luschny, Feb 20 2022: (Start)
a(n) = n! * Sum_{k=0..n} (-1)^k * LaguerreL(n-k, k-1, -1).
a(n) = 2*(n - 1)*a(n - 1) - (n^2 - 4*n + 3)*a(n - 2) for n >= 3. (End)
From Peter Bala, May 26 2023: (Start)
a(n) = Sum_{k = 0..n} |Stirling1(n,k)|*A000296(k) (follows from the fundamental theorem of Riordan arrays).
Let k be a positive integer. The sequence obtained by reducing a(n) modulo k is purely periodic with the period dividing k. For example, modulo 7 we obtain the purely periodic sequence [1, 0, 1, 4, 0, 3, 2, 1, 0, 1, 4, 0, 3, 2, ...] of period 7. Cf. A047974. (End)
For n>1, a(n) = (2*n*A002720(n-1) - A002720(n))/(n-1). - Vaclav Kotesovec, May 27 2023

A059115 Expansion of e.g.f.: ((1-x)/(1-2*x))*exp(x/(1-x)).

Original entry on oeis.org

1, 2, 9, 58, 485, 4986, 60877, 861554, 13878153, 250854130, 5030058161, 110837000682, 2662669300909, 69270266115818, 1940260799150325, 58220372514830626, 1863293173842259217, 63356877145370671074
Offset: 0

Views

Author

Vladeta Jovovic, Jan 06 2001

Keywords

Comments

L'(n,i) are unsigned Lah numbers (Cf. A008297): L'(n,i) = (n!/i!)*binomial(n-1,i-1) for i >= 1, L'(0,0) = 1, L'(n,0) = 0 for n > 0.

Examples

			(1-x)/(1-2*x)*exp(x/(1-x)) = 1 + 2*x + 9/2*x^2 + 29/3*x^3 + 485/24*x^4 + 831/20*x^5 + ...
		

Crossrefs

Programs

  • Magma
    [Factorial(n)*(&+[Evaluate(LaguerrePolynomial(n-k, k-1), -1) : k in [0..n]]): n in [0..30]]; // G. C. Greubel, Feb 23 2021
  • Maple
    s := series((1-x)/(1-2*x)*exp(x/(1-x)), x, 21): for i from 0 to 20 do printf(`%d,`,i!*coeff(s,x,i)) od:
  • Mathematica
    With[{nn=20},CoefficientList[Series[(1-x)/(1-2x) Exp[x/(1-x)],{x,0,nn}],x] Range[0,nn]!] (* Harvey P. Dale, Jul 18 2020 *)
    Table[n!*Sum[LaguerreL[n-k, k-1, -1], {k,0,n}], {n,0,30}] (* G. C. Greubel, Feb 23 2021 *)
  • PARI
    {a(n)=if(n<0, 0, n!*polcoeff( (1-x)/(1-2*x)*exp(x/(1-x)+x*O(x^n)), n))} /* Michael Somos, Aug 03 2006 */
    
  • PARI
    {a(n)=local(A); if(n<0,0, n++; A=vector(n); A[n]=1; for(k=1,n-1, A[n-k]=1; if(k>1, A[n-k+1]=A[n-k+2]); for(i=n-k+1,n, A[i]=A[i-1]+k*A[i])); A[n])} /* Michael Somos, Aug 03 2006 */
    
  • PARI
    a(n) = n!*sum(k=0, n, pollaguerre(n-k, k-1, -1)); \\ Michel Marcus, Feb 23 2021
    
  • Sage
    [factorial(n)*sum( gen_laguerre(n-k, k-1, -1) for k in (0..n) ) for n in (0..30)] # G. C. Greubel, Feb 23 2021
    

Formula

Sum_{m=0..n} Sum_{i=0..n} L'(n, i)*Product_{j=1..m} (i-j+1).
Given g.f. A(x), then g.f. A000522 = A(x/(1+x)). - Michael Somos, Aug 03 2006
a(n) = n!*Sum_{k=0..n} LaguerreL(n-k, k-1, -1). - G. C. Greubel, Feb 23 2021
a(n) ~ sqrt(Pi) * 2^(n - 1/2) * n^(n + 1/2) / exp(n-1). - Vaclav Kotesovec, Feb 23 2021

Extensions

Definition clarified by Harvey P. Dale, Jul 18 2020
Showing 1-3 of 3 results.