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-10 of 13 results. Next

A000085 Number of self-inverse permutations on n letters, also known as involutions; number of standard Young tableaux with n cells.

Original entry on oeis.org

1, 1, 2, 4, 10, 26, 76, 232, 764, 2620, 9496, 35696, 140152, 568504, 2390480, 10349536, 46206736, 211799312, 997313824, 4809701440, 23758664096, 119952692896, 618884638912, 3257843882624, 17492190577600, 95680443760576, 532985208200576, 3020676745975552
Offset: 0

Views

Author

Keywords

Comments

a(n) is also the number of n X n symmetric permutation matrices.
a(n) is also the number of matchings (Hosoya index) in the complete graph K(n). - Ola Veshta (olaveshta(AT)my-deja.com), Mar 25 2001
a(n) is also the number of independent vertex sets and vertex covers in the n-triangular graph. - Eric W. Weisstein, May 22 2017
Equivalently, this is the number of graphs on n labeled nodes with degrees at most 1. - Don Knuth, Mar 31 2008
a(n) is also the sum of the degrees of the irreducible representations of the symmetric group S_n. - Avi Peretz (njk(AT)netvision.net.il), Apr 01 2001
a(n) is the number of partitions of a set of n distinguishable elements into sets of size 1 and 2. - Karol A. Penson, Apr 22 2003
Number of tableaux on the edges of the star graph of order n, S_n (sometimes T_n). - Roberto E. Martinez II, Jan 09 2002
The Hankel transform of this sequence is A000178 (superfactorials). Sequence is also binomial transform of the sequence 1, 0, 1, 0, 3, 0, 15, 0, 105, 0, 945, ... (A001147 with interpolated zeros). - Philippe Deléham, Jun 10 2005
Row sums of the exponential Riordan array (e^(x^2/2),x). - Paul Barry, Jan 12 2006
a(n) is the number of nonnegative lattice paths of upsteps U = (1,1) and downsteps D = (1,-1) that start at the origin and end on the vertical line x = n in which each downstep (if any) is marked with an integer between 1 and the height of its initial vertex above the x-axis. For example, with the required integer immediately preceding each downstep, a(3) = 4 counts UUU, UU1D, UU2D, U1DU. - David Callan, Mar 07 2006
Equals row sums of triangle A152736 starting with offset 1. - Gary W. Adamson, Dec 12 2008
Proof of the recurrence relation a(n) = a(n-1) + (n-1)*a(n-2): number of involutions of [n] containing n as a fixed point is a(n-1); number of involutions of [n] containing n in some cycle (j, n), where 1 <= j <= n-1, is (n-1) times the number of involutions of [n] containing the cycle (n-1 n) = (n-1)*a(n-2). - Emeric Deutsch, Jun 08 2009
Number of ballot sequences (or lattice permutations) of length n. A ballot sequence B is a string such that, for all prefixes P of B, h(i) >= h(j) for i < j, where h(x) is the number of times x appears in P. For example, the ballot sequences of length 4 are 1111, 1112, 1121, 1122, 1123, 1211, 1212, 1213, 1231, and 1234. The string 1221 does not appear in the list because in the 3-prefix 122 there are two 2's but only one 1. (Cf. p. 176 of Bruce E. Sagan: "The Symmetric Group"). - Joerg Arndt, Jun 28 2009
Number of standard Young tableaux of size n; the ballot sequences are obtained as a length-n vector v where v_k is the (number of the) row in which the number r occurs in the tableaux. - Joerg Arndt, Jul 29 2012
Number of factorial numbers of length n-1 with no adjacent nonzero digits. For example the 10 such numbers (in rising factorial radix) of length 3 are 000, 001, 002, 003, 010, 020, 100, 101, 102, and 103. - Joerg Arndt, Nov 11 2012
Also called restricted Stirling numbers of the second kind (see Mezo). - N. J. A. Sloane, Nov 27 2013
a(n) is the number of permutations of [n] that avoid the consecutive patterns 123 and 132. Proof. Write a self-inverse permutation in standard cycle form: smallest entry in each cycle in first position, first entries decreasing. For example, (6,7)(3,4)(2)(1,5) is in standard cycle form. Then erase parentheses. This is a bijection to the permutations that avoid consecutive 123 and 132 patterns. - David Callan, Aug 27 2014
Getu (1991) says these numbers are also known as "telephone numbers". - N. J. A. Sloane, Nov 23 2015
a(n) is the number of elements x in the symmetric group S_n such that x^2 = e where e is the identity. - Jianing Song, Aug 22 2018 [Edited on Jul 24 2025]
a(n) is the number of congruence orbits of upper-triangular n X n matrices on skew-symmetric matrices, or the number of Borel orbits in largest sect of the type DIII symmetric space SO_{2n}(C)/GL_n(C). Involutions can also be thought of as fixed-point-free partial involutions. See [Bingham and Ugurlu] link. - Aram Bingham, Feb 08 2020
From Thomas Anton, Apr 20 2020: (Start)
Apparently a(n) = b*c where b is odd iff a(n+b) (when a(n) is defined) is divisible by b.
Apparently a(n) = 2^(f(n mod 4)+floor(n/4))*q where f:{0,1,2,3}->{0,1,2} is given by f(0),f(1)=0, f(2)=1 and f(3)=2 and q is odd. (End)
From Iosif Pinelis, Mar 12 2021: (Start)
a(n) is the n-th initial moment of the normal distribution with mean 1 and variance 1. This follows because the moment generating function of that distribution is the e.g.f. of the sequence of the a(n)'s.
The recurrence a(n) = a(n-1) + (n-1)*a(n-2) also follows, by writing E(Z+1)^n=EZ(Z+1)^(n-1)+E(Z+1)^(n-1), where Z is a standard normal random variable, and then taking the first of the latter two integrals by parts. (End)

Examples

			Sequence starts 1, 1, 2, 4, 10, ... because possibilities are {}, {A}, {AB, BA}, {ABC, ACB, BAC, CBA}, {ABCD, ABDC, ACBD, ADCB, BACD, BADC, CBAD, CDAB, DBCA, DCBA}. - _Henry Bottomley_, Jan 16 2001
G.f. = 1 + x + 2*x^2 + 4*x^4 + 10*x^5 + 26*x^6 + 76*x^7 + 232*x^8 + 764*x^9 + ...
From _Gus Wiseman_, Jan 08 2021: (Start)
The a(4) = 10 standard Young tableaux:
  1 2 3 4
.
  1 2   1 3   1 2 3   1 2 4   1 3 4
  3 4   2 4   4       3       2
.
  1 2   1 3   1 4
  3     2     2
  4     4     3
.
  1
  2
  3
  4
The a(0) = 1 through a(4) = 10 set partitions into singletons or pairs:
  {}  {{1}}  {{1,2}}    {{1},{2,3}}    {{1,2},{3,4}}
             {{1},{2}}  {{1,2},{3}}    {{1,3},{2,4}}
                        {{1,3},{2}}    {{1,4},{2,3}}
                        {{1},{2},{3}}  {{1},{2},{3,4}}
                                       {{1},{2,3},{4}}
                                       {{1,2},{3},{4}}
                                       {{1},{2,4},{3}}
                                       {{1,3},{2},{4}}
                                       {{1,4},{2},{3}}
                                       {{1},{2},{3},{4}}
(End)
		

References

  • Miklos Bona, editor, Handbook of Enumerative Combinatorics, CRC Press, 2015, pages 32, 911.
  • S. Chowla, The asymptotic behavior of solutions of difference equations, in Proceedings of the International Congress of Mathematicians (Cambridge, MA, 1950), Vol. I, 377, Amer. Math. Soc., Providence, RI, 1952.
  • W. Fulton, Young Tableaux, Cambridge, 1997.
  • D. E. Knuth, The Art of Computer Programming, Vol. 3, Section 5.1.4, p. 65.
  • L. C. Larson, The number of essentially different nonattacking rook arrangements, J. Recreat. Math., 7 (No. 3, 1974), circa pages 180-181.
  • T. Muir, A Treatise on the Theory of Determinants. Dover, NY, 1960, p. 6.
  • J. Riordan, An Introduction to Combinatorial Analysis, Wiley, 1958, p. 86.
  • 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).
  • R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 2, 1999; see Example 5.2.10.

Crossrefs

See also A005425 for another version of the switchboard problem.
Equals 2 * A001475(n-1) for n>1.
First column of array A099020.
A069943(n+1)/A069944(n+1) = a(n)/A000142(n) in lowest terms.
Cf. A152736, A128229. - Gary W. Adamson, Dec 12 2008
Diagonal of A182172. - Alois P. Heinz, May 30 2012
Row sums of: A047884, A049403, A096713 (absolute value), A100861, A104556 (absolute value), A111924, A117506 (M_4 numbers), A122848, A238123.
A320663/A339888 count unlabeled multiset partitions into singletons/pairs.
A322661 counts labeled covering half-loop-graphs.
A339742 counts factorizations into distinct primes or squarefree semiprimes.

Programs

  • Haskell
    a000085 n = a000085_list !! n
      a000085_list = 1 : 1 : zipWith (+)
        (zipWith (*) [1..] a000085_list) (tail a000085_list) -- Reinhard Zumkeller, May 16 2013
    
  • Maple
    A000085 := proc(n) option remember; if n=0 then 1 elif n=1 then 1 else procname(n-1)+(n-1)*procname(n-2); fi; end;
    with(combstruct):ZL3:=[S,{S=Set(Cycle(Z,card<3))}, labeled]:seq(count(ZL3,size=n),n=0..25); # Zerinvary Lajos, Sep 24 2007
    with (combstruct):a:=proc(m) [ZL, {ZL=Set(Cycle(Z, m>=card))}, labeled]; end: A:=a(2):seq(count(A, size=n), n=0..25); # Zerinvary Lajos, Jun 11 2008
  • Mathematica
    <Roger L. Bagula, Oct 06 2006 *)
    With[{nn=30},CoefficientList[Series[Exp[x+x^2/2],{x,0,nn}],x] Range[0,nn]!] (* Harvey P. Dale, May 28 2013 *)
    a[ n_] := Sum[(2 k - 1)!! Binomial[ n, 2 k], {k, 0, n/2}]; (* Michael Somos, Jun 01 2013 *)
    a[ n_] := If[ n < 0, 0, HypergeometricU[ -n/2, 1/2, -1/2] / (-1/2)^(n/2)]; (* Michael Somos, Jun 01 2013 *)
    a[ n_] := If[ n < 0, 0, n! SeriesCoefficient[ Exp[ x + x^2 / 2], {x, 0, n}]]; (* Michael Somos, Jun 01 2013 *)
    Table[(I/Sqrt[2])^n HermiteH[n, -I/Sqrt[2]], {n, 0, 100}] (* Emanuele Munarini, Mar 02 2016 *)
    a[n_] := Sum[StirlingS1[n, k]*2^k*BellB[k, 1/2], {k, 0, n}]; Table[a[n], {n, 0, 40}] (* Jean-François Alcover, Jul 18 2017, after Emanuele Munarini *)
    RecurrenceTable[{a[n] == a[n-1] + (n-1)*a[n-2], a[0] == 1, a[1] == 1}, a, {n, 0, 20}] (* Joan Ludevid, Jun 17 2022 *)
    sds[{}]:={{}};sds[set:{i_,_}]:=Join@@Function[s,Prepend[#,s]&/@sds[Complement[set,s]]]/@Cases[Subsets[set,{1,2}],{i,_}]; Table[Length[sds[Range[n]]],{n,0,10}] (* Gus Wiseman, Jan 11 2021 *)
  • Maxima
    B(n,x):=sum(stirling2(n,k)*x^k,k,0,n);
      a(n):=sum(stirling1(n,k)*2^k*B(k,1/2),k,0,n);
      makelist(a(n),n,0,40); /* Emanuele Munarini, May 16 2014 */
    
  • Maxima
    makelist((%i/sqrt(2))^n*hermite(n,-%i/sqrt(2)),n,0,12); /* Emanuele Munarini, Mar 02 2016 */
    
  • PARI
    {a(n) = if( n<0, 0, n! * polcoeff( exp( x + x^2 / 2 + x * O(x^n)), n))}; /* Michael Somos, Nov 15 2002 */
    
  • PARI
    N=66; x='x+O('x^N); egf=exp(x+x^2/2); Vec(serlaplace(egf)) \\ Joerg Arndt, Mar 07 2013
    
  • Python
    from math import factorial
    def A000085(n): return sum(factorial(n)//(factorial(n-(k<<1))*factorial(k)*(1<>1)+1)) # Chai Wah Wu, Aug 31 2023
  • Sage
    A000085 = lambda n: hypergeometric([-n/2,(1-n)/2], [], 2)
    [simplify(A000085(n)) for n in range(28)] # Peter Luschny, Aug 21 2014
    
  • Sage
    def a85(n): return sum(factorial(n) / (factorial(n-2*k) * 2**k * factorial(k)) for k in range(1+n//2))
    for n in range(100): print(n, a85(n)) # Manfred Scheucher, Jan 07 2018
    

Formula

D-finite with recurrence a(0) = a(1) = 1, a(n) = a(n-1) + (n-1)*a(n-2) for n>1.
E.g.f.: exp(x+x^2/2).
a(n) = a(n-1) + A013989(n-2) = A013989(n)/(n+1) = 1+A001189(n).
a(n) = Sum_{k=0..floor(n/2)} n!/((n-2*k)!*2^k*k!).
a(m+n) = Sum_{k>=0} k!*binomial(m, k)*binomial(n, k)*a(m-k)*a(n-k). - Philippe Deléham, Mar 05 2004
For n>1, a(n) = 2*(A000900(n) + A000902(floor(n/2))). - Max Alekseyev, Oct 31 2015
The e.g.f. y(x) satisfies y^2 = y''y' - (y')^2.
a(n) ~ c*(n/e)^(n/2)exp(n^(1/2)) where c=2^(-1/2)exp(-1/4). [Chowla]
a(n) = HermiteH(n, 1/(sqrt(2)*i))/(-sqrt(2)*i)^n, where HermiteH are the Hermite polynomials. - Karol A. Penson, May 16 2002
a(n) = Sum_{k=0..n} A001498((n+k)/2, (n-k)/2)(1+(-1)^(n-k))/2. - Paul Barry, Jan 12 2006
For asymptotics see the Robinson paper.
a(n) = Sum_{m=0..n} A099174(n,m). - Roger L. Bagula, Oct 06 2006
O.g.f.: A(x) = 1/(1-x-1*x^2/(1-x-2*x^2/(1-x-3*x^2/(1-... -x-n*x^2/(1- ...))))) (continued fraction). - Paul D. Hanna, Jan 17 2006
From Gary W. Adamson, Dec 29 2008: (Start)
a(n) = (n-1)*a(n-2) + a(n-1); e.g., a(7) = 232 = 6*26 + 76.
Starting with offset 1 = eigensequence of triangle A128229. (End)
a(n) = (1/sqrt(2*Pi))*Integral_{x=-oo..oo} exp(-x^2/2)*(x+1)^n. - Groux Roland, Mar 14 2011
Row sums of |A096713|. a(n) = D^n(exp(x)) evaluated at x = 0, where D is the operator sqrt(1+2*x)*d/dx. Cf. A047974 and A080599. - Peter Bala, Dec 07 2011
From Sergei N. Gladkovskii, Dec 03 2011 - Oct 28 2013: (Start)
Continued fractions:
E.g.f.: 1+x*(2+x)/(2*G(0)-x*(2+x)) where G(k)=1+x*(x+2)/(2+2*(k+1)/G(k+1)).
G.f.: 1/(U(0) - x) where U(k) = 1 + x*(k+1) - x*(k+1)/(1 - x/U(k+1)).
G.f.: 1/Q(0) where Q(k) = 1 + x*k - x/(1 - x*(k+1)/Q(k+1)).
G.f.: -1/(x*Q(0)) where Q(k) = 1 - 1/x - (k+1)/Q(k+1).
G.f.: T(0)/(1-x) where T(k) = 1 - x^2*(k+1)/( x^2*(k+1) - (1-x)^2/T(k+1)). (End)
a(n) ~ (1/sqrt(2)) * exp(sqrt(n)-n/2-1/4) * n^(n/2) * (1 + 7/(24*sqrt(n))). - Vaclav Kotesovec, Mar 07 2014
a(n) = Sum_{k=0..n} s(n,k)*(-1)^(n-k)*2^k*B(k,1/2), where the s(n,k) are (signless) Stirling numbers of the first kind, and the B(n,x) = Sum_{k=0..n} S(n,k)*x^k are the Stirling polynomials, where the S(n,k) are the Stirling numbers of the second kind. - Emanuele Munarini, May 16 2014
a(n) = hyper2F0([-n/2,(1-n)/2],[],2). - Peter Luschny, Aug 21 2014
0 = a(n)*(+a(n+1) + a(n+2) - a(n+3)) + a(n+1)*(-a(n+1) + a(n+2)) for all n in Z. - Michael Somos, Aug 22 2014
From Peter Bala, Oct 06 2021: (Start)
a(n+k) == a(n) (mod k) for all n >= 0 and all positive odd integers k.
Hence for each odd k, the sequence obtained by taking a(n) modulo k is a periodic sequence and the exact period divides k. For example, taking a(n) modulo 7 gives the purely periodic sequence [1, 1, 2, 4, 3, 5, 6, 1, 1, 2, 4, 3, 5, 6, 1, 1, 2, 4, 3, 5, 6, ...] of period 7. For similar results see A047974 and A115329. (End)

A047974 a(n) = a(n-1) + 2*(n-1)*a(n-2).

Original entry on oeis.org

1, 1, 3, 7, 25, 81, 331, 1303, 5937, 26785, 133651, 669351, 3609673, 19674097, 113525595, 664400311, 4070168161, 25330978113, 163716695587, 1075631907655, 7296866339961, 50322142646161, 356790528924523, 2570964805355607, 18983329135883665, 142389639792952801, 1091556096587136051
Offset: 0

Views

Author

Keywords

Comments

Related to partially ordered sets. - Detlef Pauly (dettodet(AT)yahoo.de), Sep 25 2003
The number of partial permutation matrices P in GL_n with P^2=0. Alternatively, the number of orbits of the Borel group of upper triangular matrices acting by conjugation on the set of matrices M in GL_n with M^2=0. - Brian Rothbach (rothbach(AT)math.berkeley.edu), Apr 16 2004
Number of ways to use the elements of {1..n} once each to form a collection of sequences, each having length 1 or 2. - Bob Proctor, Apr 18 2005
Hankel transform is A108400. - Paul Barry, Feb 11 2008
This is also the number of subsets of equivalent ways to arrange the elements of n pairs, when equivalence is defined under the joint operation of (optional) reversal of elements combined with permutation of the labels and the subset maps to itself. - Ross Drewe, Mar 16 2008
Equals inverse binomial transform of A000898. - Gary W. Adamson, Oct 06 2008
a(n) is also the moment of order n for the measure of density exp(-(x-1)^2/4)/(2*sqrt(Pi)) over the interval -oo..oo. - Groux Roland, Mar 26 2011
The n-th term gives the number of fixed-point-free involutions in S_n^B, the group of permutations on the set {-n,...,-1,1,2,...,n}. - Matt Watson, Jul 26 2012
From Peter Bala, Dec 03 2017: (Start)
a(n+k) == a(n) (mod k) for all n and k. Hence for each k, the sequence a(n) taken modulo k is a periodic sequence and the exact period divides k. Cf. A115329.
More generally, the same divisibility property holds for any sequence with an e.g.f. of the form F(x)*exp(x*G(x)), where F(x) and G(x) are power series with integer coefficients and G(0) = 1. See the Bala link for a proof. (End)

Crossrefs

Row sums of A067147.
Column k=2 of A359762.
Sequences with e.g.f = exp(x + q*x^2): A158968 (q=-9), A158954 (q=-4), A362177 (q=-3), A362176 (q=-2), A293604 (q=-1), A000012 (q=0), this sequence (q=1), A115329 (q=2), A293720 (q=4).

Programs

  • MATLAB
    N = 18; A = zeros(N,1); for n = 1:N; a = factorial(n); s = 0; k = 0; while k <= floor(n/2); b = factorial(n - 2*k); c = factorial(k); s = s + a/(b*c); k = k+1; end; A(n) = s; end; disp(A); % Ross Drewe, Mar 16 2008
    
  • Magma
    [n le 2 select 1 else Self(n-1) + 2*(n-2)*Self(n-2): n in [1..40]]; // G. C. Greubel, Jul 12 2024
    
  • Maple
    seq( add(n!/((n-2*k)!*k!), k=0..floor(n/2)), n=0..30 ); # Detlef Pauly (dettodet(AT)yahoo.de), Nov 15 2001
    with(combstruct):seq(count(([S,{S=Set(Union(Z,Prod(Z,Z)))},labeled],size=n)),n=0..30); # Detlef Pauly (dettodet(AT)yahoo.de), Sep 25 2003
    A047974 := n -> I^(-n)*orthopoly[H](n, I/2):
    seq(A047974(n), n=0..26); # Peter Luschny, Nov 29 2017
  • Mathematica
    Range[0, 23]!*CoefficientList[ Series[ Exp[x*(1-x^2)/(1 - x)], {x, 0,23 }], x] - (* Zerinvary Lajos, Mar 23 2007 *)
    Table[I^(-n)*HermiteH[n, I/2], {n, 0, 23}] - (* Alyssa Byrnes and C. Vignat, Jan 31 2013 *)
  • PARI
    my(x='x+O('x^66)); Vec(serlaplace(exp(x^2+x))) \\ Joerg Arndt, May 04 2013
    
  • SageMath
    [(-i)^n*hermite(n,i/2) for n in range(41)] # G. C. Greubel, Jul 12 2024

Formula

E.g.f.: exp(x^2+x). - Len Smiley, Dec 11 2001
Binomial transform of A001813 (with interpolated zeros). - Paul Barry, May 09 2003
a(n) = Sum_{k=0..n} C(k,n-k)*n!/k!. - Paul Barry, Mar 29 2007
a(n) = Sum_{k=0..floor(n/2)} C(n,2k)*(2k)!/k!; - Paul Barry, Feb 11 2008
G.f.: 1/(1-x-2*x^2/(1-x-4*x^2/(1-x-6*x^2/(1-x-8*x^2/(1-... (continued fraction). -Paul Barry, Apr 10 2009
E.g.f.: Q(0); Q(k) = 1+(x^2+x)/(2*k+1-(x^2+x)*(2*k+1)/((x^2+x)+(2*k+2)/Q(k+1))); (continued fraction). - Sergei N. Gladkovskii, Nov 24 2011
a(n) = D^n(exp(x)) evaluated at x = 0, where D is the operator sqrt(1+4*x)*d/dx. Cf. A000085 and A115329. - Peter Bala, Dec 07 2011
a(n) ~ 2^(n/2 - 1/2)*exp(sqrt(n/2) - n/2 - 1/8)*n^(n/2). - Vaclav Kotesovec, Oct 08 2012
E.g.f.: 1 + x*(E(0)-1)/(x+1) where E(k) = 1 + (1+x)/(k+1)/(1-x/(x+1/E(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Jan 26 2013
a(n) = i^(-n)*H_{n}(i/2) with i the imaginary unit and H_{n} the Hermite polynomial of degree n. - Alyssa Byrnes and C. Vignat, Jan 31 2013
E.g.f.: -Q(0)/x where Q(k) = 1 - (1+x)/(1 - x/(x - (k+1)/Q(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Mar 06 2013
G.f.: 1/Q(0), where Q(k) = 1 + x*2*k - x/(1 - x*(2*k+2)/Q(k+1)); (continued fraction). - Sergei N. Gladkovskii, Apr 17 2013
E.g.f.: E(0)-1-x-x^2, where E(k) = 2 + 2*x*(1+x) - 8*k^2 + x^2*(1+x)^2*(2*k+3)*(2*k-1)/E(k+1); (continued fraction). - Sergei N. Gladkovskii, Dec 21 2013
E.g.f.: Product_{k>=1} 1/(1 + (-x)^k)^(mu(k)/k). - Ilya Gutkovskiy, May 26 2019
a(n) = Sum_{k=0..floor(n/2)} 2^k*B(n, k), where B are the Bessel numbers A100861. - Peter Luschny, Jun 04 2021

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

Original entry on oeis.org

1, 1, -1, -5, 1, 41, 31, -461, -895, 6481, 22591, -107029, -604031, 1964665, 17669471, -37341149, -567425279, 627491489, 19919950975, -2669742629, -759627879679, -652838174519, 31251532771999, 59976412450835, -1377594095061119, -4256461892701199
Offset: 0

Views

Author

Seiichi Manyama, Oct 12 2017

Keywords

Crossrefs

Sequences with e.g.f = exp(x + q*x^2): A158968 (q=-9), A158954 (q=-4), A362177 (q=-3), A362176 (q=-2), this sequence (q=-1), A000012 (q=0), A047974 (q=1), A115329 (q=2), A293720 (q=4).

Programs

  • Magma
    R:=PowerSeriesRing(Rationals(), 30);
    Coefficients(R!(Laplace( Exp(x-x^2) ))); // G. C. Greubel, Jul 12 2024
    
  • Mathematica
    CoefficientList[Series[E^(x*(1-x)), {x, 0, 20}], x] * Range[0, 20]! (* Vaclav Kotesovec, Oct 13 2017 *)
  • PARI
    my(N=66, x='x+O('x^N)); Vec(serlaplace(exp(x*(1-x))))
    
  • PARI
    a(n) = polhermite(n, 1/2); \\ Michel Marcus, Oct 13 2017
    
  • SageMath
    [hermite(n, 1/2) for n in range(31)] # G. C. Greubel, Jul 12 2024

Formula

a(n) = (-1)^n * A000321(n).
a(n) = a(n-1) - 2 * (n-1) * a(n-2) for n > 1.
E.g.f.: Product_{k>=1} (1 + x^k)^(mu(k)/k). - Ilya Gutkovskiy, May 23 2019
a(n) = Hermite(n, 1/2). - G. C. Greubel, Jul 12 2024

A158954 Numerator of Hermite(n, 1/4).

Original entry on oeis.org

1, 1, -7, -23, 145, 881, -4919, -47207, 228257, 3249505, -13184999, -273145399, 887134513, 27109092817, -65152896535, -3101371292039, 4716976292161, 401692501673153, -239816274060743, -58083536514994775, -21631462857761839, 9271734379541402161
Offset: 0

Views

Author

N. J. A. Sloane, Nov 12 2009

Keywords

Examples

			Numerators of 1, 1/2, -7/4, -23/8, 145/16, 881/32, -4919/64, -47207/128, 228257/256, 3249505/512, ...
		

Crossrefs

Cf. A000079 (denominators).
Sequences with e.g.f = exp(x + q*x^2): A158968 (q=-9), this sequence (q=-4), A362177 (q=-3), A362176 (q=-2), A293604 (q=-1), A000012 (q=0), A047974 (q=1), A115329 (q=2), A293720 (q=4).

Programs

  • Magma
    [Numerator((&+[(-1)^k*Factorial(n)*(1/2)^(n-2*k)/( Factorial(k) *Factorial(n-2*k)): k in [0..Floor(n/2)]])): n in [0..30]]; // G. C. Greubel, Jun 09 2018
    
  • Maple
    A158954 := proc(n)
            orthopoly[H](n,1/4) ;
            numer(%) ;
    end proc: # R. J. Mathar, Feb 16 2014
  • Mathematica
    Numerator[Table[HermiteH[n,1/4],{n,0,50}]] (* Vladimir Joseph Stephan Orlovsky, Mar 23 2011 *)
  • PARI
    a(n)=numerator(polhermite(n,1/4)) \\ Charles R Greathouse IV, Jan 29 2016
    
  • SageMath
    [2^n*hermite(n, 1/4) for n in range(31)] # G. C. Greubel, Jul 12 2024

Formula

D-finite with recurrence a(n) - a(n-1) + 8*(n-1)*a(n-2) = 0. [DLMF] - R. J. Mathar, Feb 16 2014
From G. C. Greubel, Jun 09 2018: (Start)
a(n) = 2^n*Hermite(n,1/4).
E.g.f.: exp(x-4*x^2).
a(n) = numerator(Sum_{k=0..floor(n/2)} (-1)^k*n!*(1/2)^(n-2k)/(k!*(n-2k)!)). (End)

A293720 Expansion of e.g.f.: exp(x + 4*x^2).

Original entry on oeis.org

1, 1, 9, 25, 241, 1041, 10681, 60649, 658785, 4540321, 51972841, 415198521, 4988808529, 44847866545, 563683953561, 5586645006601, 73228719433921, 788319280278849, 10747425123292105, 124265401483446361, 1757874020223846321, 21640338257575264081
Offset: 0

Views

Author

Seiichi Manyama, Oct 15 2017

Keywords

Crossrefs

Column k=2 of A293724.
Column k=8 of A359762.
Sequences with e.g.f = exp(x + q*x^2): A158968 (q=-9), A158954 (q=-4), A362177 (q=-3), A362176 (q=-2), A293604 (q=-1), A000012 (q=0), A047974 (q=1), A115329 (q=2), this sequence (q=4).

Programs

  • Magma
    R:=PowerSeriesRing(Rationals(), 30);
    Coefficients(R!(Laplace( Exp(x+4*x^2) ))); // G. C. Greubel, Jul 12 2024
    
  • Mathematica
    CoefficientList[Series[E^(x + 4*x^2), {x,0,30}], x] * Range[0,30]! (* Vaclav Kotesovec, Oct 15 2017 *)
  • PARI
    my(N=66, x='x+O('x^N)); Vec(serlaplace(exp(x+4*x^2)))
    
  • SageMath
    [(-2*i)^n*hermite(n, i/4) for n in range(31)] # G. C. Greubel, Jul 12 2024

Formula

a(n) ~ 2^((3*n-1)/2) * exp(-1/32 + sqrt(2*n)/4 - n/2) * n^(n/2). - Vaclav Kotesovec, Oct 15 2017
a(n) = (-2*i)^n * Hermite(n, i/4). - G. C. Greubel, Jul 12 2024

A362176 Expansion of e.g.f. exp(x * (1-2*x)).

Original entry on oeis.org

1, 1, -3, -11, 25, 201, -299, -5123, 3249, 167185, 50221, -6637179, -8846903, 309737689, 769776645, -16575533939, -62762132639, 998072039457, 5265897058909, -66595289781995, -466803466259079, 4860819716300521, 44072310882063157, -383679824152382691
Offset: 0

Views

Author

Seiichi Manyama, Apr 10 2023

Keywords

Crossrefs

Column k=4 of A362277.
Sequences with e.g.f = exp(x + q*x^2): A158968 (q=-9), A158954 (q=-4), A362177 (q=-3), this sequence (q=-2), A293604 (q=-1), A000012 (q=0), A047974 (q=1), A115329 (q=2), A293720 (q=4).

Programs

  • Magma
    R:=PowerSeriesRing(Rationals(), 30);
    Coefficients(R!(Laplace( Exp(x-2*x^2) ))); // G. C. Greubel, Jul 12 2024
    
  • Mathematica
    With[{m=30}, CoefficientList[Series[Exp[x-2*x^2], {x,0,m}], x]*Range[0, m]!] (* G. C. Greubel, Jul 12 2024 *)
  • PARI
    my(N=30, x='x+O('x^N)); Vec(serlaplace(exp(x*(1-2*x))))
    
  • SageMath
    [(-sqrt(2))^n*hermite(n, 1/(2*sqrt(2))) for n in range(31)] # G. C. Greubel, Jul 12 2024

Formula

a(n) = a(n-1) - 4*(n-1)*a(n-2) for n > 1.
a(n) = n! * Sum_{k=0..floor(n/2)} (-2)^k / (k! * (n-2*k)!).
a(n) = (-sqrt(2))^n * Hermite(n, 1/(2*sqrt(2))). - G. C. Greubel, Jul 12 2024

A362177 Expansion of e.g.f. exp(x * (1-3*x)).

Original entry on oeis.org

1, 1, -5, -17, 73, 481, -1709, -19025, 52753, 965953, -1882709, -59839889, 64418905, 4372890913, -651783677, -367974620369, -309314089439, 35016249465985, 66566286588763, -3715188655737617, -11303745326856599, 434518893361657441, 1858790804545588915
Offset: 0

Views

Author

Seiichi Manyama, Apr 10 2023

Keywords

Crossrefs

Column k=6 of A362277.
Sequences with e.g.f = exp(x + q*x^2): A158968 (q=-9), A158954 (q=-4), this sequence (q=-3), A362176 (q=-2), A293604 (q=-1), A000012 (q=0), A047974 (q=1), A115329 (q=2), A293720 (q=4).

Programs

  • Magma
    R:=PowerSeriesRing(Rationals(), 30);
    Coefficients(R!(Laplace( Exp(x-3*x^2) ))); // G. C. Greubel, Jul 12 2024
    
  • Mathematica
    With[{m=30}, CoefficientList[Series[Exp[x-3*x^2], {x,0,m}], x]*Range[0, m]!] (* G. C. Greubel, Jul 12 2024 *)
  • PARI
    my(N=30, x='x+O('x^N)); Vec(serlaplace(exp(x*(1-3*x))))
    
  • SageMath
    [(-sqrt(3))^n*hermite(n, 1/(2*sqrt(3))) for n in range(31)] # G. C. Greubel, Jul 12 2024

Formula

a(n) = a(n-1) - 6*(n-1)*a(n-2) for n > 1.
a(n) = n! * Sum_{k=0..floor(n/2)} (-3)^k / (k! * (n-2*k)!).
a(n) = (-sqrt(3))^n * Hermite(n, 1/(2*sqrt(3))). - G. C. Greubel, Jul 12 2024

A158968 Numerator of Hermite(n, 1/6).

Original entry on oeis.org

1, 1, -17, -53, 865, 4681, -73169, -578717, 8640577, 91975825, -1307797649, -17863446149, 241080488353, 4099584856537, -52313249418065, -1085408633265389, 13039168709612161, 325636855090044193, -3664348770051277073, -109170689819225595605, 1144036589538311163361
Offset: 0

Views

Author

N. J. A. Sloane, Nov 12 2009

Keywords

Crossrefs

Sequences with e.g.f = exp(x + q*x^2): this sequence (q=-9), A158954 (q=-4), A362177 (q=-3), A362176 (q=-2), A293604 (q=-1), A000012 (q=0), A047974 (q=1), A115329 (q=2), A293720 (q=4).

Programs

  • Magma
    [Numerator((&+[(-1)^k*Factorial(n)*(1/3)^(n-2*k)/( Factorial(k) *Factorial(n-2*k)): k in [0..Floor(n/2)]])): n in [0..30]]; // G. C. Greubel, Jul 10 2018
    
  • Mathematica
    Numerator[Table[HermiteH[n,1/6],{n,0,50}]] (* Vladimir Joseph Stephan Orlovsky, Apr 01 2011 *)
    Table[3^n*HermiteH[n, 1/6], {n,0, 50}] (* G. C. Greubel, Jul 10 2018 *)
  • PARI
    a(n)=numerator(polhermite(n,1/6)) \\ Charles R Greathouse IV, Jan 29 2016
    
  • SageMath
    [3^n*hermite(n, 1/6) for n in range(31)] # G. C. Greubel, Jul 12 2024

Formula

From G. C. Greubel, Jun 02 2018: (Start)
a(n) = 3^n * Hermite(n, 1/6).
E.g.f.: exp(x - 9*x^2).
a(n) = numerator(Sum_{k=0..floor(n/2)} (-1)^k*n!*(1/3)^(n-2*k)/(k!*(n-2*k)!)). (End)
D-finite with recurrence a(n) -a(n-1) +18*(n-1)*a(n-2)=0. - [DLMF] Georg Fischer, Feb 06 2021

A359762 Array read by ascending antidiagonals. T(n, k) = n!*[x^n] exp(x + (k/2) * x^2). A generalization of the number of involutions (or of 'telephone numbers').

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 4, 3, 1, 1, 1, 10, 7, 4, 1, 1, 1, 26, 25, 10, 5, 1, 1, 1, 76, 81, 46, 13, 6, 1, 1, 1, 232, 331, 166, 73, 16, 7, 1, 1, 1, 764, 1303, 856, 281, 106, 19, 8, 1, 1, 1, 2620, 5937, 3844, 1741, 426, 145, 22, 9, 1, 1
Offset: 0

Views

Author

Peter Luschny, Jan 14 2023

Keywords

Comments

The array is a generalization of the number of involutions of permutations on n letters, A000085, also known as 'telephone numbers'. According to Bednarz et al. the telephone number interpretation "is due to John Riordan, who noticed that T(n, 1) is the number of connection patterns in a telephone system with n subscribers."
In graph theory, the n-th telephone number is the total number of matchings of a complete graph K_n (see the Wikipedia entry). Assuming a network with k possibilities of connections leads to a network that can be modeled by a complete multigraph K(n, k). The total number of connection patterns in such a network is given by T(n, k).

Examples

			Array T(n, k) starts:
  [n\k] 0   1      2        3       4        5        6        7
  --------------------------------------------------------------
  [0] 1,    1,     1,       1,      1,       1,       1,       1, ... [A000012]
  [1] 1,    1,     1,       1,      1,       1,       1,       1, ... [A000012]
  [2] 1,    2,     3,       4,      5,       6,       7,       8, ... [A000027]
  [3] 1,    4,     7,      10,     13,      16,      19,      22, ... [A016777]
  [4] 1,   10,    25,      46,     73,     106,     145,     190, ... [A100536]
  [5] 1,   26,    81,     166,    281,     426,     601,     806, ...
  [6] 1,   76,   331,     856,   1741,    3076,    4951,    7456, ...
  [7] 1,  232,  1303,    3844,   8485,   15856,   26587,   41308, ...
  [8] 1,  764,  5937,   21820,  57233,  123516,  234529,  406652, ...
  [9] 1, 2620, 26785,  114076, 328753,  757756, 1510705, 2719900, ...
   [A000085][A047974][A115327][A115329][A115331]
		

References

  • John Riordan, Introduction to Combinatorial Analysis, Dover (2002).

Crossrefs

Programs

  • Maple
    T := (n, k) -> add(binomial(n, j)*doublefactorial(j-1)*k^(j/2), j = 0..n, 2):
    for n from 0 to 9 do lprint(seq(T(n, k), k = 0..7)) od;
    T := (n, k) -> ifelse(k=0, 1, I^(-n)*(2*k)^(n/2)*KummerU(-n/2, 1/2, -1/(2*k))):
    seq(seq(simplify(T(n-k, k)), k = 0..n), n = 0..10);
    T := proc(n, k) exp(x + (k/2)*x^2): series(%, x, 16): n!*coeff(%, x, n) end:
    seq(lprint(seq(simplify(T(n, k)), k = 0..8)), n = 0..9);
    T := proc(n, k) option remember; if n = 0 or n = 1 then 1 else T(n, k-1) +
    n*(k-1)*T(n, k-2) fi end: for n from 0 to 9 do seq(T(n, k), k=0..9) od;
    # Only to check the interpretation as a determinant of a lower Hessenberg matrix:
    gen := proc(i, j, n) local ev, tv; ev := irem(j+i, 2) = 0; tv := j < i and not ev;
    if j > i + 1 then 0 elif j = i + 1 then -1 elif j <= i and ev then 1
    elif tv and i < n then x*(n + 1 - i) - 1 else x fi end:
    det := M -> LinearAlgebra:-Determinant(M):
    p := (n, k) -> subs(x = k, det(Matrix(n, (i, j) -> gen(i, j, n)))):
    for n from 0 to 9 do seq(p(n, k), k = 0..7) od;
  • Mathematica
    T[n_, k_] := Sum[Binomial[n, j] Factorial2[j-1] * If[j==0, 1,  k^(j/2)], {j, 0, n, 2}];
    Table[T[n-k, k], {n, 0, 10}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jan 25 2023 *)
  • Python
    from math import factorial, comb
    def oddfactorial(n: int) -> int:
        return factorial(2 * n) // (2**n * factorial(n))
    def T(n: int, k: int) -> int:
        return sum(comb(n, 2 * j) * oddfactorial(j) * k**j for j in range(n + 1))
    for n in range(10): print([T(n, k) for k in range(8)])

Formula

T(n, k) = Sum_{j=0..n, j even} binomial(n, j) * (j - 1)!! * k^(j/2).
T(n, k) = T(n, k-1) + n*(k-1)*T(n, k-2) for n >= 2, T(n, 0) = T(n, 1) = 1.
T(n, k) = i^(-n) * (2*k)^(n/2) * KummerU(-n/2, 1/2, -1/(2*k)) for k >= 1, and T(n, 0) = 1.

A293718 Square array A(n,k), n >= 0, k >= 1, read by antidiagonals, where column k is the expansion of e.g.f. exp(Sum_{j=1..k} j*x^j).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 5, 13, 1, 1, 1, 5, 31, 73, 1, 1, 1, 5, 31, 145, 281, 1, 1, 1, 5, 31, 241, 1181, 1741, 1, 1, 1, 5, 31, 241, 1661, 9661, 8485, 1, 1, 1, 5, 31, 241, 2261, 16861, 77155, 57233, 1, 1, 1, 5, 31, 241, 2261, 20461, 181315, 794081
Offset: 0

Views

Author

Seiichi Manyama, Oct 15 2017

Keywords

Examples

			Square array begins:
   1,   1,    1,    1,    1, ...
   1,   1,    1,    1,    1, ...
   1,   5,    5,    5,    5, ...
   1,  13,   31,   31,   31, ...
   1,  73,  145,  241,  241, ...
   1, 281, 1181, 1661, 2261, ...
		

Crossrefs

Columns k=1..4 give A000012, A115329, A293716, A293717.
Rows n=0-1 give A000012.
Main diagonal gives A082579.

Formula

A(0,k) = 1 and A(n,k) = (n-1)! * Sum_{j=1..min(k,n)} j^2*A(n-j,k)/(n-j)!.
Showing 1-10 of 13 results. Next