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.

A292932 Number of quasitrivial semigroups on an arbitrary n-element set.

Original entry on oeis.org

1, 1, 4, 20, 138, 1182, 12166, 146050, 2003882, 30930734, 530477310, 10007736906, 205965058162, 4592120925862, 110259944144486, 2836517343551714, 77836238876829882, 2269379773783175454, 70057736432648552782, 2282895953541692345722
Offset: 0

Views

Author

Jean-Luc Marichal, Sep 27 2017

Keywords

Comments

Number of associative and quasitrivial binary operations on {1,...,n}. Convention a(0)=1.

Crossrefs

Programs

  • Magma
    m:=30; R:=PowerSeriesRing(Rationals(), m); b:=Coefficients(R!( 1/(3+x-2*Exp(x)) )); [Factorial(n-1)*b[n]: n in [1..m]]; // G. C. Greubel, May 21 2019
    
  • Mathematica
    With[{m=30}, CoefficientList[Series[1/(3+x-2*Exp[x]), {x,0,m}], x]*Range[0,m]!] (* G. C. Greubel, May 21 2019 *)
  • PARI
    my(x='x + O('x^30)); Vec(serlaplace(1/(x+3-2*exp(x)))) \\ Michel Marcus, May 21 2019
    
  • Sage
    m = 30; T = taylor(1/(3+x-2*exp(x)), x, 0, m); [factorial(n)*T.coefficient(x, n) for n in (0..m)] # G. C. Greubel, May 21 2019

Formula

E.g.f.: 1/(3 + x - 2*exp(x)).
Recurrence: a(0) = 1, a(n+1) = (n+1)*a(n) + 2*Sum_{k=0...n-1} binomial(n+1,k)*a(k).
Explicit form: a(n) = Sum_{i=0...n} Sum_{k=0...n-i} 2^i * (-1)^k * binomial(n,k) * S2(n-k,i) * (i+k)!, where S2(n,k) are the Stirling numbers of the second kind.
a(n) ~ n! / ((r-1) * (r-3)^(n+1)), where r = -LambertW(-1, -2*exp(-3)) = 3.5830738760366909976807989989303134394318270218566... - Vaclav Kotesovec, Sep 27 2017

A292933 E.g.f.: x/(x+3-2*exp(x)).

Original entry on oeis.org

0, 1, 2, 12, 80, 690, 7092, 85162, 1168400, 18034938, 309307340, 5835250410, 120092842872, 2677545756106, 64289692962068, 1653899162167290, 45384277496827424, 1323216060906107994, 40848835928097158172, 1331096992220322502858
Offset: 0

Views

Author

Jean-Luc Marichal, Sep 27 2017

Keywords

Comments

Number of associative and quasitrivial binary operations on {1,...,n} that have neutral elements. Also: Number of associative and quasitrivial binary operations on {1,...,n} that have annihilator elements.

Crossrefs

Programs

  • Mathematica
    With[{nn=20},CoefficientList[Series[x/(x+3-2Exp[x]),{x,0,nn}],x] Range[ 0,nn]!] (* Harvey P. Dale, Aug 01 2019 *)
  • PARI
    concat(0, Vec(serlaplace(x/(x+3-2*exp(x))))) \\ Michel Marcus, Sep 27 2017

Formula

a(n) = n*A292932(n-1).
a(n) ~ n! / ((r-1) * (r-3)^n), where r = -LambertW(-1, -2*exp(-3)) = 3.5830738760366909976807989989303134394318270218566... - Vaclav Kotesovec, Sep 27 2017
Showing 1-2 of 2 results.