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.

A240956 G.f.: Sum_{n>=0} n^n * x^n * (2 + n*x)^n / (1 + n*x)^(2*n+2).

Original entry on oeis.org

1, 2, 9, 72, 830, 12420, 228060, 4959360, 124589304, 3550050000, 113116311000, 3985174226880, 153815533185600, 6454433029524480, 292557975636326400, 14244829479956275200, 741502151945703308160, 41092028680670274827520, 2415394879269218890243200
Offset: 0

Views

Author

Paul D. Hanna, Aug 04 2014

Keywords

Examples

			O.g.f.: A(x) = 1 + 2*x + 9*x^2 + 72*x^3 + 830*x^4 + 12420*x^5 + 228060*x^6 +...
where
A(x) = 1 + x*(2+x)/(1+x)^4 + 2^2*x^2*(2+2*x)^2/(1+2*x)^6 + 3^3*x^3*(2+3*x)^3/(1+3*x)^8 + 4^4*x^4*(2+4*x)^4/(1+4*x)^10 + 5^5*x^5*(2+5*x)^5/(1+5*x)^12 +...
		

Crossrefs

Programs

  • Mathematica
    Table[Sum[(n-k)! * StirlingS2[n, n-k] * Binomial[n-k, k] * 2^(n-2*k), {k,0,n}],{n,0,20}] (* Vaclav Kotesovec, Aug 05 2014 *)
  • PARI
    {a(n)=local(A=1); A=sum(m=0, n, m^m*x^m*(2+m*x)^m/(1 + m*x +x*O(x^n))^(2*m+2)); polcoeff(A, n)}
    for(n=0, 30, print1(a(n), ", "))
    
  • PARI
    /* From formula for a(n): */
    {Stirling2(n, k)=sum(i=0, k, (-1)^i*binomial(k, i)*i^n)*(-1)^k/k!}
    {a(n)=sum(k=0, n\2, (n-k)!*Stirling2(n, n-k)*binomial(n-k, k)*2^(n-2*k) )}
    for(n=0, 30, print1(a(n), ", "))

Formula

a(n) = Sum_{k=0..[n/2]} (n-k)! * Stirling2(n, n-k) * binomial(n-k, k) * 2^(n-2*k).
a(n) ~ c * d^n * n! / sqrt(n), where d = 2*r^2/(2*r-1) + (2*r-1)*r/(2*(1-r)) = 3.36074272900128370245729732045120604190737486342012..., where r = 0.80276231206743119172295651485200150958072822575039811732... is the root of the equation (r + (1-2*r)^2/(4*(1-r))) * LambertW(-exp(-1/r)/r) = -1, and c = 0.533888836381702228067397487907088688592161798613354080016... . - Vaclav Kotesovec, Aug 05 2014

A240957 G.f.: Sum_{n>=0} n^n * x^n * (3 + 2*n*x)^n / ((1 + n*x)*(1 + 2*n*x))^(n+1).

Original entry on oeis.org

1, 3, 20, 234, 3944, 86400, 2324160, 74062800, 2726970624, 113893395840, 5319595814400, 274730601277440, 15544557784673280, 956232958853652480, 63540675378122342400, 4535620918350762240000, 346127227962539155292160, 28120835253815298895380480, 2423309442415144546546483200
Offset: 0

Views

Author

Paul D. Hanna, Aug 04 2014

Keywords

Examples

			O.g.f.: A(x) = 1 + 3*x + 20*x^2 + 234*x^3 + 3944*x^4 + 86400*x^5 +...
where
A(x) = 1 + x*(3+2*x)/((1+x)*(1+2*x))^2 + 2^2*x^2*(3+4*x)^2/((1+2*x)*(1+4*x))^3 + 3^3*x^3*(3+6*x)^3/((1+3*x)*(1+6*x))^4 + 4^4*x^4*(3+8*x)^4/((1+4*x)*(1+8*x))^5 + 5^5*x^5*(3+10*x)^5/((1+5*x)*(1+10*x))^6 +...
		

Crossrefs

Programs

  • Mathematica
    Table[Sum[(n-k)! * StirlingS2[n, n-k] * Binomial[n-k, k] * 3^(n-2*k) * 2^k, {k,0,n}],{n,0,20}] (* Vaclav Kotesovec, Aug 05 2014 *)
  • PARI
    {a(n)=local(A=1); A=sum(m=0, n, m^m*x^m*(3+2*m*x)^m/((1 + m*x)*(1+2*m*x) +x*O(x^n))^(m+1)); polcoeff(A, n)}
    for(n=0, 30, print1(a(n), ", "))
    
  • PARI
    /* From formula for a(n): */
    {Stirling2(n, k)=sum(i=0, k, (-1)^i*binomial(k, i)*i^n)*(-1)^k/k!}
    {a(n)=sum(k=0, n\2, (n-k)!*Stirling2(n, n-k)*binomial(n-k, k)*3^(n-2*k)*2^k)}
    for(n=0, 30, print1(a(n), ", "))

Formula

a(n) = Sum_{k=0..n} (n-k)! * Stirling2(n, n-k) * binomial(n-k, k) * 3^(n-2*k) * 2^k.
a(n) ~ c * d^n * n! / sqrt(n), where d = 3*r^2/(2*r-1) + 2*(2*r-1)*r/(3*(1-r)) = 4.927267464017203368228591159442769988364645445182..., where r = 0.8093509687086163798199326301917112747442352555652682... is the root of the equation (r + 2*(1-2*r)^2/(9*(1-r))) * LambertW(-exp(-1/r)/r) = -1, and c = 0.546345652881951027770637598235474648132398514044679... . - Vaclav Kotesovec, Aug 05 2014

A240921 G.f.: Sum_{n>=0} n^n * x^n * (1 + n*x)^n / (1 + n*x + n^2*x^2)^(n+1).

Original entry on oeis.org

1, 1, 3, 18, 146, 1530, 19620, 297360, 5201784, 103146120, 2286181800, 56011087440, 1503057473280, 43844234353920, 1381310964633600, 46743301840435200, 1690919874777893760, 65116170597269151360, 2659604669692822051200, 114838104572526535200000, 5226654647185285702752000
Offset: 0

Views

Author

Paul D. Hanna, Aug 02 2014

Keywords

Comments

a(n) is divisible by [n/2]!.
Compare definition to the following identity, which holds for all fixed k:
Sum_{n>=0} n!*x^n = Sum_{n>=0} x^n * (n + k*x)^n / (1 + n*x + k*x^2)^(n+1).

Examples

			G.f.: A(x) = 1 + x + 3*x^2 + 18*x^3 + 146*x^4 + 1530*x^5 + 19620*x^6 +...
where
A(x) = 1 + x*(1+x)/(1+x+x^2)^2 + 2^2*x^2*(1+2*x)^2/(1+2*x+4*x^2)^3 + 3^3*x^3*(1+3*x)^3/(1+3*x+9*x^2)^4 + 4^4*x^4*(1+4*x)^4/(1+4*x+16*x^2)^5 +...
		

Crossrefs

Programs

  • Mathematica
    Table[Sum[(n-k)! * StirlingS2[n, n-k] * Binomial[n-k,k],{k,0,Floor[n/2]}],{n,0,20}] (* Vaclav Kotesovec, Aug 03 2014 *)
  • PARI
    /* From definition: */
    {a(n)=local(A=1); A=sum(m=0, n, m^m*x^m*(1+m*x)^m/(1 + m*x + m^2*x^2 +x*O(x^n))^(m+1)); polcoeff(A, n)}
    for(n=0,30,print1(a(n),", "))
    
  • PARI
    /* From formula for a(n): */
    {Stirling2(n, k)=sum(i=0, k, (-1)^i*binomial(k, i)*i^n)*(-1)^k/k!}
    {a(n)=sum(k=0,n\2, (n-k)!*Stirling2(n, n-k)*binomial(n-k,k))}
    for(n=0,30,print1(a(n),", "))

Formula

a(n) = Sum_{k=0..[n/2]} (n-k)! * Stirling2(n, n-k) * binomial(n-k,k).
a(n) ~ c * d^n * n^n / exp(n), where d = r*(-1+3*r-3*r^2)/(1-3*r+2*r^2) = 2.334305682349197638435662..., where r = 0.722795640379451585372396... is the root of the equation (1-r) * (r + 1/LambertW(-exp(-1/r)/r)) + (2*r-1)^2 = 0, and c = 1.04764685950245700560418116727397... . - Vaclav Kotesovec, Aug 03 2014
Showing 1-3 of 3 results.