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 11 results. Next

A000182 Tangent (or "Zag") numbers: e.g.f. tan(x), also (up to signs) e.g.f. tanh(x).

Original entry on oeis.org

1, 2, 16, 272, 7936, 353792, 22368256, 1903757312, 209865342976, 29088885112832, 4951498053124096, 1015423886506852352, 246921480190207983616, 70251601603943959887872, 23119184187809597841473536, 8713962757125169296170811392, 3729407703720529571097509625856
Offset: 1

Views

Author

Keywords

Comments

Number of Joyce trees with 2n-1 nodes. Number of tremolo permutations of {0,1,...,2n}. - Ralf Stephan, Mar 28 2003
The Hankel transform of this sequence is A000178(n) for n odd = 1, 12, 34560, ...; example: det([1, 2, 16; 2, 16, 272, 16, 272, 7936]) = 34560. - Philippe Deléham, Mar 07 2004
a(n) is the number of increasing labeled full binary trees with 2n-1 vertices. Full binary means every non-leaf vertex has two children, distinguished as left and right; labeled means the vertices are labeled 1,2,...,2n-1; increasing means every child has a label greater than its parent. - David Callan, Nov 29 2007
From Micha Hofri (hofri(AT)wpi.edu), May 27 2009: (Start)
a(n) was found to be the number of permutations of [2n] which when inserted in order, to form a binary search tree, yield the maximally full possible tree (with only one single-child node).
The e.g.f. is sec^2(x)=1+tan^2(x), and the same coefficients can be manufactured from the tan(x) itself, which is the e.g.f. for the number of trees as above for odd number of nodes. (End)
a(n) is the number of increasing strict binary trees with 2n-1 nodes. For more information about increasing strict binary trees with an associated permutation, see A245894. - Manda Riehl, Aug 07 2014
For relations to alternating permutations, Euler and Bernoulli polynomials, zigzag numbers, trigonometric functions, Fourier transform of a square wave, quantum algebras, and integrals over and in n-dimensional hypercubes and over Green functions, see Hodges and Sukumar. For further discussion on the quantum algebra, see the later Hodges and Sukumar reference and the paper by Hetyei presenting connections to the general combinatorial theory of Viennot on orthogonal polynomials, inverse polynomials, tridiagonal matrices, and lattice paths (thereby related to continued fractions and cumulants). - Tom Copeland, Nov 30 2014
The Zigzag Hankel transform is A000178. That is, A000178(2*n - k) = det( [a(i+j - k)]{i,j = 1..n} ) for n>0 and k=0,1. - _Michael Somos, Mar 12 2015
a(n) is the number of standard Young tableaux of skew shape (n,n,n-1,n-2,...,3,2)/(n-1,n-2,n-3,...,2,1). - Ran Pan, Apr 10 2015
For relations to the Sheffer Appell operator calculus and a Riccati differential equation for generating the Meixner-Pollaczek and Krawtchouk orthogonal polynomials, see page 45 of the Feinsilver link and Rzadkowski. - Tom Copeland, Sep 28 2015
For relations to an elliptic curve, a Weierstrass elliptic function, the Lorentz formal group law, a Lie infinitesimal generator, and the Eulerian numbers A008292, see A155585. - Tom Copeland, Sep 30 2015
Absolute values of the alternating sums of the odd-numbered rows (where the single 1 at the apex of the triangle is counted as row #1) of the Eulerian triangle, A008292. The actual alternating sums alternate in sign, e.g., 1, -2, 16, -272, etc. (Even-numbered rows have alternating sums always 0.) - Gregory Gerard Wojnar, Sep 28 2018
The sequence is periodic modulo any odd prime p. The minimal period is (p-1)/2 if p == 1 mod 4 and p-1 if p == 3 mod 4 [Knuth & Buckholtz, 1967, Theorem 1]. - Allen Stenger, Aug 03 2020
From Peter Bala, Dec 24 2021: (Start)
Conjectures:
1) The sequence taken modulo any integer k eventually becomes periodic with period dividing phi(k).
2) The Gauss congruences a(n*p^k) == a(n*p^(k-1)) ( mod p^k ) hold for all prime p and positive integers n and k, except when p = 2, n = 1 and k = 1 or 2.
3) For i >= 1 define a_i(n) = a(n+i). The Gauss congruences a_i(n*p^k) == a_i(n*p^(k-1)) ( mod p^k ) hold for all prime p and positive integers n and k. If true, then for each i >= 1 the expansion of exp(Sum_{n >= 1} a_i(n)*x^n/n) has integer coefficients. For an example, see A262145.(End)

Examples

			tan(x) = x + 2*x^3/3! + 16*x^5/5! + 272*x^7/7! + ... = x + 1/3*x^3 + 2/15*x^5 + 17/315*x^7 + 62/2835*x^9 + O(x^11).
tanh(x) = x - 1/3*x^3 + 2/15*x^5 - 17/315*x^7 + 62/2835*x^9 - 1382/155925*x^11 + ...
(sec x)^2 = 1 + x^2 + 2/3*x^4 + 17/45*x^6 + ...
a(3)=16 because we have: {1, 3, 2, 5, 4}, {1, 4, 2, 5, 3}, {1, 4, 3, 5, 2},
  {1, 5, 2, 4, 3}, {1, 5, 3, 4, 2}, {2, 3, 1, 5, 4}, {2, 4, 1, 5, 3},
  {2, 4, 3, 5, 1}, {2, 5, 1, 4, 3}, {2, 5, 3, 4, 1}, {3, 4, 1, 5, 2},
  {3, 4, 2, 5, 1}, {3, 5, 1, 4, 2}, {3, 5, 2, 4, 1}, {4, 5, 1, 3, 2},
  {4, 5, 2, 3, 1}. - _Geoffrey Critzer_, May 19 2013
		

References

  • Miklos Bona, editor, Handbook of Enumerative Combinatorics, CRC Press, 2015, page 932.
  • L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 88.
  • John H. Conway and Richard K. Guy, The Book of Numbers, New York: Springer-Verlag, 1996. See p. 111.
  • H. Doerrie, 100 Great Problems of Elementary Mathematics, Dover, NY, 1965, p. 69.
  • L. M. Milne-Thompson, Calculus of Finite Differences, 1951, p. 148 (the numbers |C^{2n-1}|).
  • J. W. Milnor and J. D. Stasheff, Characteristic Classes, Princeton, 1974, p. 282.
  • S. Mukai, An Introduction to Invariants and Moduli, Cambridge, 2003; see p. 444.
  • H. Rademacher, Topics in Analytic Number Theory, Springer, 1973, Chap. 1, p. 20.
  • L. Seidel, Über eine einfache Entstehungsweise der Bernoullischen Zahlen und einiger verwandten Reihen, Sitzungsberichte der mathematisch-physikalischen Classe der königlich bayerischen Akademie der Wissenschaften zu München, volume 7 (1877), 157-187.
  • 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).
  • E. van Fossen Conrad, Some continued fraction expansions of elliptic functions, PhD thesis, The Ohio State University, 2002, p. 28.
  • J. V. Uspensky and M. A. Heaslet, Elementary Number Theory, McGraw-Hill, NY, 1939, pp. 267-268.

Crossrefs

A350972 is essentially the same sequence.
a(n)=2^(n-1)*A002105(n). Apart from signs, 2^(2n-2)*A001469(n) = n*a(n).
Cf. A001469, A002430, A036279, A000364 (secant numbers), A000111 (secant-tangent numbers), A024283, A009764. First diagonal of A059419 and of A064190.
Equals A002425(n) * 2^A101921(n).
Equals leftmost column of A162005. - Johannes W. Meijer, Jun 27 2009

Programs

  • Maple
    series(tan(x),x,40);
    with(numtheory): a := n-> abs(2^(2*n)*(2^(2*n)-1)*bernoulli(2*n)/(2*n));
    A000182_list := proc(n) local T,k,j; T[1] := 1;
    for k from 2 to n do T[k] := (k-1)*T[k-1] od;
       for k from 2 to n do
           for j from k to n do
               T[j] := (j-k)*T[j-1]+(j-k+2)*T[j] od od;
    seq(T[j], j=1..n)  end:
    A000182_list(15);  # Peter Luschny, Apr 02 2012
  • Mathematica
    Table[ Sum[2^(2*n + 1 - k)*(-1)^(n + k + 1)*k!*StirlingS2[2*n + 1, k], {k, 1, 2*n + 1}], {n, 0, 7}] (* Victor Adamchik, Oct 05 2005 *)
    v[1] = 2; v[n_] /; n >= 2 := v[n] = Sum[ Binomial[2 n - 3, 2 k - 2] v[k] v[n - k], {k, n - 1}]; Table[ v[n]/2, {n, 15}] (* Zerinvary Lajos, Jul 08 2009 *)
    Rest@ Union[ Range[0, 29]! CoefficientList[ Series[ Tan[x], {x, 0, 30}], x]] (* Harvey P. Dale, Oct 19 2011; modified by Robert G. Wilson v, Apr 02 2012 *)
    t[1, 1] = 1; t[1, 0] = 0; t[n_ /; n > 1, m_] := t[n, m] = m*(m+1)*Sum[t[n-1, k], {k, m-1, n-1}]; a[n_] := t[n, 1]; Table[a[n], {n, 1, 15}]  (* Jean-François Alcover, Jan 02 2013, after A064190 *)
    a[ n_] := If[ n < 1, 0, With[{m = 2 n - 1}, m! SeriesCoefficient[ Tan[x], {x, 0, m}]]]; (* Michael Somos, Mar 12 2015 *)
    a[ n_] := If[ n < 1, 0, ((-16)^n - (-4)^n) Zeta[1 - 2 n]]; (* Michael Somos, Mar 12 2015 *)
    Table[2 PolyGamma[2n - 1, 1/2]/Pi^(2n), {n, 1, 10}] (* Vladimir Reshetnikov, Oct 18 2015 *)
    a[ n_] := a[n] = If[ n < 2, Boole[n == 1], Sum[Binomial[2 n - 2, 2 k - 1] a[k] a[n - k], {k, n - 1}]]; (* Michael Somos, Aug 02 2018 *)
    a[n_] := (2^(2*n)*(2^(2*n) - 1)*Abs[BernoulliB[2*n]])/(2*n); a /@  Range[20]  (* Stan Wagon, Nov 21 2022 *)
  • Maxima
    a(n):=sum(sum(binomial(k,r)*sum(sum(binomial(l,j)/2^(j-1)*sum((-1)^(n)*binomial(j,i)*(j-2*i)^(2*n),i,0,floor((j-1)/2))*(-1)^(l-j),j,1,l)*(-1)^l*binomial(r+l-1,r-1),l,1,2*n)*(-1)^(1-r),r,1,k)/k,k,1,2*n); /* Vladimir Kruchinin, Aug 23 2010 */
    
  • Maxima
    a[n]:=if n=1 then 1 else 2*sum(sum(binomial(2*j,j+k)*(-4*k^2)^(n-1)*(-1)^k/(4^j),k,1,j),j,1,n-1);
    makelist(a[n],n,1,30); /* Tani Akinari, Sep 20 2023 */
    
  • PARI
    {a(n) = if( n<1, 0, ((-4)^n - (-16)^n) * bernfrac(2*n) / (2*n))};
    
  • PARI
    {a(n) = my(an); if( n<2, n==1, an = vector(n, m, 1); for( m=2, n, an[m] = sum( k=1, m-1, binomial(2*m - 2, 2*k - 1) * an[k] * an[m-k])); an[n])}; /* Michael Somos */
    
  • PARI
    {a(n) = if( n<1, 0, (2*n - 1)! * polcoeff( tan(x + O(x^(2*n + 2))), 2*n - 1))}; /* Michael Somos */
    
  • PARI
    {a(n) = my(X=x+x*O(x^n),Egf); Egf = x*sum(m=0,n, prod(k=1,m, tanh(2*k*X))); (n-1)!*polcoeff(Egf,n)} /* Paul D. Hanna, May 11 2010 */
    
  • PARI
    /* Continued Fraction for the e.g.f. tan(x), from Paul D. Hanna: */
    {a(n)=local(CF=1+O(x)); for(i=1, n, CF=1/(2*(n-i+1)-1-x^2*CF)); (2*n-1)!*polcoeff(x*CF, 2*n-1)}
    
  • PARI
    /* O.g.f. Sum_{n>=1} a(n)*x^n, from Paul D. Hanna Feb 05 2013: */
    {a(n)=polcoeff( x+2*x*sum(m=1, n, x^m*prod(k=1, m, (2*k-1)^2/(1+(2*k-1)^2*x +x*O(x^n))) ), n)}
    
  • Python
    # The objective of this implementation is efficiency.
    # n -> [0, a(1), a(2), ..., a(n)] for n > 0.
    def A000182_list(n):
        T = [0 for i in range(1, n+2)]
        T[1] = 1
        for k in range(2, n+1):
            T[k] = (k-1)*T[k-1]
        for k in range(2, n+1):
            for j in range(k, n+1):
                T[j] = (j-k)*T[j-1]+(j-k+2)*T[j]
        return T
    print(A000182_list(100)) # Peter Luschny, Aug 07 2011
    
  • Python
    from sympy import bernoulli
    def A000182(n): return abs(((2-(2<<(m:=n<<1)))*bernoulli(m)<Chai Wah Wu, Apr 14 2023
    
  • Sage
    # Algorithm of L. Seidel (1877)
    # n -> [a(1), ..., a(n)] for n >= 1.
    def A000182_list(len) :
        R = []; A = {-1:0, 0:1}; k = 0; e = 1
        for i in (0..2*len-1) :
            Am = 0; A[k + e] = 0; e = -e
            for j in (0..i) : Am += A[k]; A[k] = Am; k += e
            if e > 0 : R.append(A[i//2])
        return R
    A000182_list(15) # Peter Luschny, Mar 31 2012

Formula

E.g.f.: log(sec x) = Sum_{n > 0} a(n)*x^(2*n)/(2*n)!.
E.g.f.: tan x = Sum_{n >= 0} a(n+1)*x^(2*n+1)/(2*n+1)!.
E.g.f.: (sec x)^2 = Sum_{n >= 0} a(n+1)*x^(2*n)/(2*n)!.
2/(exp(2x)+1) = 1 + Sum_{n>=1} (-1)^(n+1) a(n) x^(2n-1)/(2n-1)! = 1 - x + x^3/3 - 2*x^5/15 + 17*x^7/315 - 62*x^9/2835 + ...
a(n) = 2^(2*n) (2^(2*n) - 1) |B_(2*n)| / (2*n) where B_n are the Bernoulli numbers (A000367/A002445 or A027641/A027642).
Asymptotics: a(n) ~ 2^(2*n+1)*(2*n-1)!/Pi^(2*n).
Sum[2^(2*n + 1 - k)*(-1)^(n + k + 1)*k!*StirlingS2[2*n + 1, k], {k, 1, 2*n + 1}]. - Victor Adamchik, Oct 05 2005
a(n) = abs[c(2*n-1)] where c(n)= 2^(n+1) * (1-2^(n+1)) * Ber(n+1)/(n+1) = 2^(n+1) * (1-2^(n+1)) * (-1)^n * Zeta(-n) = [ -(1+EN(.))]^n = 2^n * GN(n+1)/(n+1) = 2^n * EP(n,0) = (-1)^n * E(n,-1) = (-2)^n * n! * Lag[n,-P(.,-1)/2] umbrally = (-2)^n * n! * C{T[.,P(.,-1)/2] + n, n} umbrally for the signed Euler numbers EN(n), the Bernoulli numbers Ber(n), the Genocchi numbers GN(n), the Euler polynomials EP(n,t), the Eulerian polynomials E(n,t), the Touchard / Bell polynomials T(n,t), the binomial function C(x,y) = x!/[(x-y)!*y! ] and the polynomials P(j,t) of A131758. - Tom Copeland, Oct 05 2007
a(1) = A094665(0,0)*A156919(0,0) and a(n) = Sum_{k=1..n-1} 2^(n-k-1)*A094665(n-1, k)*A156919(k,0) for n = 2, 3, .., see A162005. - Johannes W. Meijer, Jun 27 2009
G.f.: 1/(1-1*2*x/(1-2*3*x/(1-3*4*x/(1-4*5*x/(1-5*6*x/(1-... (continued fraction). - Paul Barry, Feb 24 2010
From Paul Barry, Mar 29 2010: (Start)
G.f.: 1/(1-2x-12x^2/(1-18x-240x^2/(1-50x-1260x^2/(1-98x-4032x^2/(1-162x-9900x^2/(1-... (continued fraction);
coefficient sequences given by 4*(n+1)^2*(2n+1)*(2n+3) and 2(2n+1)^2 (see Van Fossen Conrad reference). (End)
E.g.f.: x*Sum_{n>=0} Product_{k=1..n} tanh(2*k*x) = Sum_{n>=1} a(n)*x^n/(n-1)!. - Paul D. Hanna, May 11 2010 [corrected by Paul D. Hanna, Sep 28 2023]
a(n) = (-1)^(n+1)*Sum_{j=1..2*n+1} j!*Stirling2(2*n+1,j)*2^(2*n+1-j)*(-1)^j for n >= 0. Vladimir Kruchinin, Aug 23 2010: (Start)
If n is odd such that 2*n-1 is prime, then a(n) == 1 (mod (2*n-1)); if n is even such that 2*n-1 is prime, then a(n) == -1 (mod (2*n-1)). - Vladimir Shevelev, Sep 01 2010
Recursion: a(n) = (-1)^(n-1) + Sum_{i=1..n-1} (-1)^(n-i+1)*C(2*n-1,2*i-1)* a(i). - Vladimir Shevelev, Aug 08 2011
E.g.f.: tan(x) = Sum_{n>=1} a(n)*x^(2*n-1)/(2*n-1)! = x/(1 - x^2/(3 - x^2/(5 - x^2/(7 - x^2/(9 - x^2/(11 - x^2/(13 -...))))))) (continued fraction from J. H. Lambert - 1761). - Paul D. Hanna, Sep 21 2011
From Sergei N. Gladkovskii, Oct 31 2011 to Oct 09 2013: (Start)
Continued fractions:
E.g.f.: (sec(x))^2 = 1+x^2/(x^2+U(0)) where U(k) = (k+1)*(2k+1) - 2x^2 + 2x^2*(k+1)*(2k+1)/U(k+1).
E.g.f.: tan(x) = x*T(0) where T(k) = 1-x^2/(x^2-(2k+1)*(2k+3)/T(k+1)).
E.g.f.: tan(x) = x/(G(0)+x) where G(k) = 2*k+1 - 2*x + x/(1 + x/G(k+1)).
E.g.f.: tanh(x) = x/(G(0)-x) where G(k) = k+1 + 2*x - 2*x*(k+1)/G(k+1).
E.g.f.: tan(x) = 2*x - x/W(0) where W(k) = 1 + x^2*(4*k+5)/((4*k+1)*(4*k+3)*(4*k+5) - 4*x^2*(4*k+3) + x^2*(4*k+1)/W(k+1)).
E.g.f.: tan(x) = x/T(0) where T(k) = 1 - 4*k^2 + x^2*(1 - 4*k^2)/T(k+1).
E.g.f.: tan(x) = -3*x/(T(0)+3*x^2) where T(k)= 64*k^3 + 48*k^2 - 4*k*(2*x^2 + 1) - 2*x^2 - 3 - x^4*(4*k -1)*(4*k+7)/T(k+1).
G.f.: 1/G(0) where G(k) = 1 - 2*x*(2*k+1)^2 - x^2*(2*k+1)*(2*k+2)^2*(2*k+3)/G(k+1).
G.f.: 2*Q(0) - 1 where Q(k) = 1 + x^2*(4*k + 1)^2/(x + x^2*(4*k + 1)^2 - x^2*(4*k + 3)^2*(x + x^2*(4*k + 1)^2)/(x^2*(4*k + 3)^2 + (x + x^2*(4*k + 3)^2)/Q(k+1) )).
G.f.: (1 - 1/G(0))*sqrt(-x), where G(k) = 1 + sqrt(-x) - x*(k+1)^2/G(k+1).
G.f.: Q(0), where Q(k) = 1 - x*(k+1)*(k+2)/( x*(k+1)*(k+2) - 1/Q(k+1)). (End)
O.g.f.: x + 2*x*Sum_{n>=1} x^n * Product_{k=1..n} (2*k-1)^2 / (1 + (2*k-1)^2*x). - Paul D. Hanna, Feb 05 2013
a(n) = (-4)^n*Li_{1-2*n}(-1). - Peter Luschny, Jun 28 2012
a(n) = (-4)^n*(4^n-1)*Zeta(1-2*n). - Jean-François Alcover, Dec 05 2013
Asymptotic expansion: 4*((2*(2*n-1))/(Pi*e))^(2*n-1/2)*exp(1/2+1/(12*(2*n-1))-1/(360*(2*n-1)^3)+1/(1260*(2*n-1)^5)-...). (See Luschny link.) - Peter Luschny, Jul 14 2015
From Peter Bala, Sep 11 2015: (Start)
The e.g.f. A(x) = tan(x) satisfies the differential equation A''(x) = 2*A(x)*A'(x) with A(0) = 0 and A'(0) = 1, leading to the recurrence a(0) = 0, a(1) = 1, else a(n) = 2*Sum_{i = 0..n-2} binomial(n-2,i)*a(i)*a(n-1-i) for the aerated sequence [0, 1, 0, 2, 0, 16, 0, 272, ...].
Note, the same recurrence, but with the initial conditions a(0) = 1 and a(1) = 1, produces the sequence n! and with a(0) = 1/2 and a(1) = 1 produces A080635. Cf. A002105, A234797. (End)
a(n) = 2*polygamma(2*n-1, 1/2)/Pi^(2*n). - Vladimir Reshetnikov, Oct 18 2015
a(n) = 2^(2n-2)*|p(2n-1,-1/2)|, where p_n(x) are the shifted row polynomials of A019538. E.g., a(2) = 2 = 2^2 * |1 + 6(-1/2) + 6(-1/2)^2|. - Tom Copeland, Oct 19 2016
From Peter Bala, May 05 2017: (Start)
With offset 0, the o.g.f. A(x) = 1 + 2*x + 16*x^2 + 272*x^3 + ... has the property that its 4th binomial transform 1/(1 - 4*x) A(x/(1 - 4*x)) has the S-fraction representation 1/(1 - 6*x/(1 - 2*x/(1 - 20*x/(1 - 12*x/(1 - 42*x/(1 - 30*x/(1 - ...))))))), where the coefficients [6, 2, 20, 12, 42, 30, ...] in the partial numerators of the continued fraction are obtained from the sequence [2, 6, 12, 20, ..., n*(n + 1), ...] by swapping adjacent terms. Compare with the S-fraction associated with A(x) given above by Paul Barry.
A(x) = 1/(1 + x - 3*x/(1 - 4*x/(1 + x - 15*x/(1 - 16*x/(1 + x - 35*x/(1 - 36*x/(1 + x - ...))))))), where the unsigned coefficients in the partial numerators [3, 4, 15, 16, 35, 36,...] come in pairs of the form 4*n^2 - 1, 4*n^2 for n = 1,2,.... (End)
a(n) = Sum_{k = 1..n-1} binomial(2*n-2, 2*k-1) * a(k) * a(n-k), with a(1) = 1. - Michael Somos, Aug 02 2018
a(n) = 2^(2*n-1) * |Euler(2*n-1, 0)|, where Euler(n,x) are the Euler polynomials. - Daniel Suteu, Nov 21 2018 (restatement of one of Copeland's 2007 formulas.)
x - Sum_{n >= 1} (-1)^n*a(n)*x^(2*n)/(2*n)! = x - log(cosh(x)). The series reversion of x - log(cosh(x)) is (1/2)*x - (1/2)*log(2 - exp(x)) = Sum_{n >= 0} A000670(n)*x^(n+1)/(n+1)!. - Peter Bala, Jul 11 2022
For n > 1, a(n) = 2*Sum_{j=1..n-1} Sum_{k=1..j} binomial(2*j,j+k)*(-4*k^2)^(n-1)*(-1)^k/(4^j). - Tani Akinari, Sep 20 2023
a(n) = A110501(n) * 4^(n-1) / n (Han and Liu, 2018). - Amiram Eldar, May 17 2024

A002425 Denominator of Pi^(2n)/(Gamma(2n)*(1-2^(-2n))*zeta(2n)).

Original entry on oeis.org

1, 1, 1, 17, 31, 691, 5461, 929569, 3202291, 221930581, 4722116521, 968383680827, 14717667114151, 2093660879252671, 86125672563201181, 129848163681107301953, 868320396104950823611, 209390615747646519456961
Offset: 1

Views

Author

Keywords

Comments

Differs from the absolute values of A275994 the first time at index 60.
Consider the C(k)-summation process for divergent series: the series Sum((-1)^n*(n+1)^k) == 1 - 2^k + 3^k - 4^k + ..., summable C(1) to the value 1/2 for k = 0, is for each k >= 1 exactly summable C(k+1) to the sum s(k+1) = (2^(k+1)-1)*B(k+1)/ (k+1) and so a(n) = abs(numerator(s(2n))). - Benoit Cloitre, Apr 27 2002
Odd part of tangent numbers A000182 (even part is 2^A101921(n)). - Ralf Stephan, Dec 21 2004
(-1)^n*a(n+1) is the numerator of Euler(2n+1,1). - N. J. A. Sloane, Nov 10 2009 (a misprint corrected by Vladimir Shevelev, Sep 18 2017)
a(n) is the absolute value of the constant term of the Euler polynomial E_{2n-1} times the even part of 2n. - Peter Luschny, Nov 26 2010
From Vladimir Shevelev, Aug 31 2017: (Start)
Let E_m(x) = x^m + Sum_{odd k=1..m} e_k(m)*x^(m-k) be the Euler polynomial, let 2*n-1 <= m. Show that the expression c(m,n) = |e_(2*n-1)(m)|/binomial(m,2*n-1) does not depend on m and c(m,n) = a(n)/A006519(2*n). Indeed, by the formula in the Shevelev link |e_(2*n-1)(m)| = binomial(m,2*n-1)*(4^n-1)*B_(2*n)/n. On the other hand, by Cloitre's formula, we have a(n) = (4^n-1)*|B_(2*n)|*2^A001511(n) /n. Taking into account that 2^A001511 = A006519(2*n) we obtain the claimed equality. Since sign(e_k(n)) = (-1)^((k+1)/2), we have the following application of the sequence: e_k(n) = (-1)^((k+1)/2))*a((k+1)/2)*binomial(n,k)/A006519(k+1). (End)

References

  • A. Fletcher, J. C. P. Miller, L. Rosenhead and L. J. Comrie, An Index of Mathematical Tables. Vols. 1 and 2, 2nd ed., Blackwell, Oxford and Addison-Wesley, Reading, MA, 1962, Vol. 1, p. 73.
  • S. A. Joffe, Sums of like powers of natural numbers, Quart. J. Pure Appl. Math. 46 (1914), 33-51.
  • Konrad Knopp, Theory and application of infinite series, Divergent series, Dover, p. 479
  • L. Oettinger, Archiv. Math. Phys., 26 (1856), see esp. p. 5.
  • 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).

Crossrefs

Numerator given by A037239.
Different from A089171, A275994.

Programs

  • Magma
    [Denominator(4*n/((4^n-1)*Bernoulli(2*n))): n in [1..20]]; // G. C. Greubel, Jul 03 2019
  • Maple
    A002425 := n -> (-1)^n*euler(2*n-1,0)*2^padic[ordp](2*n,2); # Peter Luschny, Nov 26 2010
    A002425_list := proc(n) 1/(1+1/exp(z)); series(%,z,2*n+4);
    seq(numer((-1)^i*(2*i+1)!*coeff(%,z,2*i+1)),i=0..n) end;
    A002425_list(17); # Peter Luschny, Jul 12 2012
  • Mathematica
    a[n_]:= (-1)^(n-1) * Numerator[EulerE[2n-1, 1]]; Table[a[n], {n, 1, 20}] (* Jean-François Alcover, Sep 20 2011, after N. J. A. Sloane's comment *)
    a[n_]:= If[n<1, 0, With[{m = 2n-1}, Numerator[ m! SeriesCoefficient[ Tan[x/2], {x, 0, m}]]]] (* Michael Somos, Sep 14 2013 *)
    Table[2*(4^n-1)*Zeta[1-2n] // Abs // Numerator, {n, 1, 20}] (* Jean-François Alcover, Oct 16 2013 *)
  • PARI
    for(n=1,20,print1(abs(numerator(2*bernfrac(2*n)*(4^n-1)/(2*n))),","))
    
  • PARI
    a(n)=if(n<1,0,(-1)^n/n*(1-4^n)*bernfrac(2*n)*2^valuation(2*n,2))
    
  • PARI
    a(n)=(-1)^n*4*bitand(n,-n)*polylog(1-2*n,-1); \\ Peter Luschny, Nov 22 2012
    
  • Sage
    def A002425_list(n):
        T = [0]*n; T[0] = 1; S = [0]*n; k2 = 0
        for k in (1..n-1): T[k] = k*T[k-1]
        for k in (1..n):
            if is_odd(k): S[k-1] = 4*k2; k2 += 1
            else: S[k-1] = S[k2-1]+2*k2-1
            for j in (k..n-1): T[j] = (j-k)*T[j-1]+(j-k+2)*T[j]
        return [T[j]>>S[j] for j in (0..n-1)]
    A002425_list(20)  # Peter Luschny, Nov 17 2012
    
  • Sage
    [denominator(4*n/((4^n-1)*bernoulli(2*n))) for n in (1..20)] # G. C. Greubel, Jul 03 2019
    

Formula

a(n) = (-1)^n/n*(1 - 4^n)*B(2*n)*2^A001511(n) where B(k) denotes the k-th Bernoulli number. - Benoit Cloitre, Dec 30 2003
This is different from the sequence of numerators of the expansion of cosec(x) - cot(x) - see A089171.
From Johannes W. Meijer, May 24 2009: (Start)
a(n) = denominator(4*n/((2^(2*n)-1)*bernoulli(2*n))).
Equals A160469(n)/A048896(n-1).
Equals A089171(n)*A089170(n-1). (End)
E.g.f.: a(n) = numerator((2*n+1)!*[x^(2*n+1)](1/(1+1/exp(x)))). - Peter Luschny, Jul 12 2012
a(n) = numerator(abs(2*(4^n-1)*zeta(1-2*n))). - Jean-François Alcover, Oct 16 2013
For every positive integers n,k we have a(n) = (-1)^(n+k)*N(2*n-1,k) + 2*(-1)^(n-1)*A006519(2*n)*(1^(2*n-1)-2^(2*n-1)+..+(-1)^k*(k-1)^(2*n-1)), where N(n,k) is the numerator of Euler(n,k). So, the right hand side is an invariant of k. - Vladimir Shevelev, Sep 19 2017
a(n) = numerator(r(n)) where r(n) = (-1)^binomial(2*n, 2)*Sum_{k=1..2*n}(-1)^k*Stirling2(2*n, k)*2^(-k)*(k-1)!. - Peter Luschny, May 24 2020
a(n) = 2*(-1)^n*A335956(2*n)*zeta(1-2*n). - Peter Luschny, Aug 30 2020

Extensions

The n=15 term was formerly incorrectly given as 86125672563301143.
Formula and cross-references edited by Johannes W. Meijer, May 21 2009

A131758 Coefficients of numerators of rational functions whose binomial transforms give the normalized polylogarithms Li(-n,t)/n!.

Original entry on oeis.org

1, 0, 1, -1, 1, 2, 4, -14, 10, 6, -15, 83, -157, 89, 24, 56, -424, 1266, -1724, 826, 120, -185, 1887, -8038, 17642, -19593, 8287, 720, 204, -4976, 36226, -126944, 239576, -234688, 90602, 5040
Offset: 0

Views

Author

Tom Copeland, Sep 17 2007, Sep 27 2007, Sep 30 2007, Oct 01 2007, Oct 08 2007

Keywords

Comments

Coefficients may be generated from a modified Riordan array (MRA) formed from Rgf(z,t) = (t/(1+z))/(exp(-z/(1+z))-t) with each row of the array acting to generate the succeeding polynomial P(n,t) from the preceding n polynomials.
The MRA is constructed by appending an n! to the left of the n-th row of the Riordan array A129652 and removing the unit diagonal.
The MRA is partially
1;
1, 1;
2, 3, 2;
6, 13, 9, 3;
24, 73, 52, 18, 4;
120, 501, 365, 130, 30, 5;
720, 4051, 3006, 1095, 260, 45, 6;
For the MRA:
1) First column is the n!'s.
2) Second column is A000262.
Then, e.g., from the terms in the MRA,
P(0,t) = 0!*(t-1)^0 = 1 from the n=0 row,
P(1,t) = 1!*(t-1)^1 + 1*P(0,t) = t from the n=1 row,
P(2,t) = 2!*(t-1)^2 + 3*P(0,t)*(t-1)^1 + 2*P(1,t)
P(3,t) = 3!*(t-1)^3 + 13*P(0,t)*(t-1)^2 + 9*P(1,t)*(t-1)^1 + 3*P(2,t)
generating
P(0,t) = (1)
P(1,t) = (0, 1)
P(2,t) = (-1, 1, 2)
P(3,t) = (4, -14, 10, 6) = 4 + -14 t + 10 t^2 + 6 t^3
P(4,t) = (-15, 83, -157, 89, 24)
P(5,t) = (56, -424, 1266, -1724, 826, 120)
P(6,t) = (-185, 1887, -8038, 17642, -19593, 8287, 720)
P(7,t) = (204, -4976, 36226, -126944, 239576, -234688, 90602, 5040)
For the polynomial array:
1) The first column is A009940 = (-1)^n * n!*Lag(n,1) =(-1)^n* n!* Lag(n,-1,-1).
2) Row sums are n!.
3) Highest order coefficient is n!.
4) Alternating row sum is below.
Then, with Rf(n,t) = [ t/(1-t)^(n+1) ] * P(n,t)/n!, the polylogs are given umbrally by
Li(-n,t)/n! = [ 1 + Rf(.,t) ]^n for n = 0,1,2,... so conversely
Rf(n,t) = {[ Li(-(.),t))/(.)! ]-1}^n.
Note umbrally [ Rf(.,t) ]^n = Rf(n,t) and
(1+Rf)^0 = 1^0 * [ Rf(.,t) ]^0 = Rf(0,t) = t/(1-t) = Li(0,t).
More generally, Newton interpolation holds and for Re(s) >= 0,
Li(-s,t)/(s)! = [ 1 + Rf(.,t) ]^s, when convergent in t.
Alternatively, the Rf's may be formed through differentiation of their o.g.f., the Rgf(z,t) above, which may also be written as
Rgf(z,t) = Sum_{k>=1} [ t^k ] * exp[ k * z/(z+1) ]/(z+1)
= Sum_{n>=0} [ (-z)^n ] * Sum_{k>=1} [ (t^k * Lag(n,k) ]
= Sum_{k>=0} [ (-z)^k ] * Lag(k,Li(-(.),t))
= Sum_{k>=0} [ z^k ] * {[ Li(-(.),t))/(.)! ]-1}^k
= exp[ Li(-(.),t)*z/(1+z) ]/(1+z),
and operationally as
Rgf(z,t) = {Sum_{k>=0} (-z)^k * Lag(k,tD)} [ t/(1-t) ]
= {Sum_{k>=0} (-z)^k * Lag(k,T(.,:tD:))} [ t/(1-t) ]
= {Sum_{k>=0} (-z)^k * Sum_{j>=0} Lag(k,j) (tD)^j /j!} [ x/(1-x) ]
where D is w.r.t. x at 0
= {Sum_{k>=0} (-z)^k*Sum_{j=0..k} (-1)^j*[ 1-Lag(k,.) ]^j*(:tD:)^j/ j!} [ t/(1-t) ]
= {Sum_{k>=0} (-z)^k * exp[ -[ 1-Lag(k,.) ]* :tD: ]} [ t/(1-t) ]
where (:tD:)^n = t^n * D^n, D is the derivative w.r.t. t unless otherwise stated, Lag(n,x) is a Laguerre polynomial and T(n,t) is a Touchard / Bell / exponential polynomial.
Hence [ t/(1-t)^(n+1) ] * P(n,t)/n! = Rf(n,t)
= {Sum_{k=0..n} (-1)^n-k)*[ C(m,k)/k! ]*(tD)^k} [ t/(1-t) ]
= {Sum_{k=0..n} (-1)^(n-k)*[ C(m,k)/k! ]*Sum_{j=0..k} S2(k,j)*(:tD:)^j} [ t/(1-t) ]
= {Sum_{k>=0} (-1)^(n-k) * Lag(n,k) * (tD)^k/k!} [ x/(1-x) ] where D is w.r.t. x at 0
= {Sum_{k=0..n} (-1)^(n-k)* [ 1-Lag(n,.) ]^k *(:tD:)^k/k!}[ t/(1-t) ],
where S2(k,j) are the Stirling numbers of the second kind and C(m,k), binomial coefficients.
The P(n,t) are related to the Laguerre polynomials through
P(n,t) = (-1)^n n! [ (1-t)^(n+1)} ] Sum_{k>=0} [ (t^k*Lag(n,k+1) ] = Sum_{m=0..n} a(n,m) * t^m
where a(n,m) = (-1)^n n! [ Sum_{k=0..m} (-1)^k * C(n+1,k) *Lag(n,m-k+1) ] .
Conjecture for the polynomial array:
The greatest common divisor of the coefficients of each polynomial is given by A060872(n)/n or, equivalently, by A038548(n).
Some e.g.f.'s for the Rf's are
exp[ -Rf(.,t)*z ] = exp{[ 1-Li(-(.),t)/(.)! ]*z}
= Sum_{n>=0} { (z^n/n!) * Sum_{k>=1} [ t^k * Lag(n,k) ] }
= Sum_{k>=1} { t^k * (e^z) * J_0[ 2*sqrt(k*z)}
= Sum_{n>=0} {(-1)^n*(z^n/n!)*(z^/j!)*Lag(n,-1)*Sum_{k>=1} [ t^k*k^n*(k+1)^j ]}
where J_0(x) is the zeroth Bessel function of the first kind.
The expressions (:tD:)^j}[ t/(1-t) ] and the Laguerre polynomials are intimately connected to Lah numbers and rook polynomials.
Some interesting relations to physics, probability and number theory are, for abs(t) < 1 and abs(z) < 1 at least,
BE(t,z) = Sum_{k>=0} [ (-z)^k ] *[ 1 + Rf(.,t) ]^k
= Rgf(-z/(1+z),t)/(1+z) = t/{exp(z)-t}, a Bose-Einstein distribution,
FD(t,z) = Sum_{k>=0} [ (-z)^k+1 ] *[ 1 + Rf(.,-t) ]^k
= -Rgf(-z/(1+z),-t)/(1+z) = t/{exp(z)+t}, a Fermi-Dirac distribution
and as t tends to 1 from below, z*BE(t,z) tends to the Bernoulli e.g.f., which is related by the Mellin transform to (s-1)!*Zeta(s). Taking Mellin transforms of BE and FD w.r.t. z gives the polylogarithm over different domains.
Since BE(2,z) is essentially the e.g.f. for the ordered Bell numbers, it follows that umbrally
n! * Lag(n,OB(.)) = P(n,2) and
n! * Lag(n,P(.,2)) = OB(n)
where OB(n) are the signed ordered Bell/Fubini numbers A000670.
I.e., P(n,2) and the ordered Bell numbers form a reciprocal Laguerre combinatorial transform pair,
or, equivalently, P(n,2)/n! and OB(n)/n! form a reciprocal finite difference pair, so
P(n,2)/n! = (-1)^(n+1) * Rf(n,2) = -{1-[ Li(-(.),2))/(.)! ]}^n and
OB(n) = -Li(-n,2).
Note that n!*Lag(n,(.)!*Lag(.,x)) = x^n is a true identity for general Laguerre polynomials Lag(n,x,a) with a = -1,0,1,..., so one could look at analogous higher-order reciprocal pairs containing OB(n).
In addition, a mixed-order iterated Laguerre transform gives
n!*Lag{n,(.)!*Lag[ .,P(.,2),0 ],-1}
= P(n,2) - n*P(n-1,2)
= n!*Lag[ n,OB(.),-1 ] = A084358(n), lists of sets of lists.
For Eulerian polynomials, E(n,t), given by A173018 (A008292),
E(n,t)/n! = [ 1-t+P(.,t)/(.)! ]^n
P(n,t)/n! = [ E(.,t)/(.)!-(1-t) ]^n, or equivalently
[ E(.,t)/(1-t) ]^n = n!*Lag[ n,-P(.,t)/(1-t) ]
[ -P(.,t)/(1-t) ]^n = n!*Lag[ n,E(.,t)/(1-t) ], a Laguerre transform pair.
Then from known relations for the Eulerian polynomials, the alternating row sum of the polynomial array is
P(n,-1) = (-2)^(n+1) * n! * Lag[ n,c(.)*Zeta(-(.)) ]
where c(n) = [ 2^(n+1) - 1 ] and Zeta is the Riemann zeta function. And so
Zeta(-n) = n! * Lag[ n,-P(.,-1)/2 ] / [ 2 - 2^(n+2) ],
which also holds, with the summation limit of Lag extended to infinity, for n = s, any complex number with Re(s) > 0.
Then from standard formulas for the signed Euler numbers EN(n), the Bernoulli numbers Ber(n), the Genocchi numbers GN(n), the Euler polynomials EP(n,t), the Eulerian polynomials E(n,t), the Touchard / Bell polynomials T(n,t) and the binomial C(x,y) = x!/[ (x-y)!*y! ]
2^(n+1) * (1-2^(n+1)) * (-1)^n * Zeta(-n)
= 2^(n+1) * (1-2^(n+1)) * Ber(n+1)/(n+1)
= [ -(1+EN(.)) ]^n
= 2^n * GN(n+1)/(n+1)
= 2^n * EP(n,0)
= (-1)^n * E(n,-1)
= (-2)^n * n! * Lag[ n,-P(.,-1)/2 ]
= (-2)^n * n! * C{T[ .,P(.,-1)/2 ] + n, n}
= an integer = Q(n)
These are related to the zag numbers A000182 by Zag(n) = abs[ Q(2*n-1) ]. And, abs[ Q(2*n-1) ] / 2^q(n) = Zag(n) / 2^q(n) = A002425(n) with q(n) = A101921.
These may be generalized by letting n = s, a complex number, (or interpolating) to obtain generalized Laguerre functions or confluent hypergeometric functions of the first kind, M(a,b,x), or second kind, U(a,b,x), whose arguments are P(.,-1)/2, such as
E(s,-1)/[ 2^s*s! ] = -2*Li(-s,-1)/s! = (2-2^(s+2)) * Zeta(-s)/s!
= C{T[ .,P(.,-1)/2 ] + s, s} = Lag[ s,-P(.,-1)/2 ] = M[ -s,1,-P(.,-1)/2 ] or,
GN(s+1)/(s+1)! = EP(s,0)/s! = C{-T[ .,P(.,-1)/2 ]-1, n} = U[ -s,1,-P(.,-1)/2 ]/(s)!
And even more generally
E(s,t)/(1-t)^s = [ (1-t)/t ] Li(-s,t) = s!*Lag[ s,-P(.,t)/(1-t) ]
= s! * C{T[ .,P(.,t)/(1-t) ] + s, s} = s! * M[ -s,1,-P(.,t)/(1-t) ] .
The Laguerre polynomial expressions are fundamental as they can be interpolated to form general M[ a,b,-P(.,t)/(1-t) ] or U[ a,b,-P(.,t)/(1-t) ] which can then be related either directly or by binomial transforms to many important Sheffer sequences, not to mention group theory and Riemann surfaces.
Note for frequently occurring expressions above: The Laguerre polynomials of order -1 and 0 are intimately connected to Lah numbers and rook polynomials and (tD)^n [t/(1-t)] = T(n,:tD:) [t/(1-t)] generates an Eulerian polynomial in the numerator of a rational function. - Tom Copeland, Sep 09 2008
The deformed Todd operator on p. 12 of Gunnells and Villegas is Td(a,D) = -D / (a*exp(-D) - 1) = [-D/(1-D)] * Rgf(D/(1-D), 1/a) = -D * BE(1/a,-D) = D * FD(-1/a,-D), where BE and FD are the Bose-Einstein and Fermi-Dirac distributions given above. See also connections among the Eulerian polynomials, Ehrhart polynomials, and the Todd operator in Beck and Robins, especially pages 31 and 37. - Tom Copeland, Jun 20 2017

References

  • M. Beck and S. Robins, Computing the Continuous Discretely, illustrated by D. Austin, Springer, 2007.

Crossrefs

Programs

  • Mathematica
    a[n_, m_] := (-1)^n *n!*Sum[(-1)^k*Binomial[n+1, k]*LaguerreL[n, m-k+1], {k, 0, m}]; Table[a[n, m], {n, 0, 8}, {m, 0, n}] // Flatten (* Jean-François Alcover, Apr 23 2014 *)

Formula

a(n,m) = (-1)^n*n!*Sum_{k=0..m} (-1)^k*C(n+1,k)*Lag(n, m-k+1).

Extensions

A173018 given as reference for Eulerian polynomials and typo in a Laguerre function corrected by Tom Copeland, Oct 02 2014

A052510 Number of labeled planar binary trees with 2n-1 elements (external nodes or internal nodes).

Original entry on oeis.org

1, 6, 240, 25200, 5080320, 1676505600, 821966745600, 560992303872000, 508633022177280000, 591438478187741184000, 858123464716031754240000, 1519736656012092236759040000, 3226517823533365056503808000000, 8089341114715793820234547200000000
Offset: 1

Views

Author

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

Keywords

Comments

Equals central terms of A174449. - G. C. Greubel, Nov 29 2021

Crossrefs

Programs

  • Magma
    [Factorial(2*n-1)*Catalan(n-1): n in [1..15]]; // G. C. Greubel, Nov 29 2021
  • Maple
    spec := [S, {S=Union(Z, Prod(Z, S, S))}, labeled]:
    seq(combstruct[count](spec, size=2*n-1), n=1..14);
    # second Maple program:
    a:= proc(n) option remember; `if`(n<2, n,
          4*(n-1)*(2*n-3)*(2*n-1)*a(n-1)/n)
        end:
    seq(a(n), n=1..22);  # Alois P. Heinz, Dec 03 2019
  • Mathematica
    nn=20;f[x_]:=Sum[a[n]x^n/n!,{n,0,nn}];s=SolveAlways[0==Series[f[x]-x(1+f[x]^2),{x,0,nn}],x];Select[Flatten[Table[a[n],{n,0,nn}]/.s],#>0&]  (* Geoffrey Critzer, Mar 23 2013 *)
    RecurrenceTable[{a[1]==1, n*a[n]==(4*(n-1)*(2*n-3)*(2*n-1))*a[n-1]}, a[n], {n,1,22}] (* Georg Fischer, Dec 03 2019 following Alois P. Heinz *)
    a[n_]:= CatalanNumber[n-1] Gamma[2n]; Array[a,14] (* Peter Luschny, Dec 03 2019 *)
  • PARI
    a=vector(28);print1(a[1]=1,", ");forstep(k=1,#a-2,2,print1(a[k+2]=4*a[k]*(k^3+3*k^2+2*k)/(k+3),", ")) \\ Hugo Pfoertner, Dec 04 2019
    
  • Sage
    [factorial(2*n-1)*catalan_number(n-1) for n in (1..15)] # G. C. Greubel, Nov 29 2021
    

Formula

E.g.f.: ((1/2)/x)*(1-sqrt(1-4*x^2)). [With interspersed zeros.]
Recurrence: b(1)=1, b(2)=0, b(n)=(4*n^3-12*n^2+8*n)*b(n-2)/(n+1) and a(n) = b(2*n-1).
a(n) = (2n-1)/n * ( (2(n-1))! / (n-1)! )^2. - Travis Kowalski (kowalski(AT)euclid.UCSD.Edu), Dec 15 2000
i*sin(arcsec(2*x)) = -1/(2*x) + x + 6*x^3/3! + 240*x^5/5! + 25200*x^7/7! + ...
a(n) = 2^(n-1) * A036770(n).
a(n) = (2*n-1)! * A000108(n-1). - Michail Stamatakis, Jan 24 2019
Sum_{n>=1} 1/a(n) = 1 + StruveL(0, 1/2)*Pi/8 + StruveL(1, 1/2)*Pi/4, where StruveL is the modified Struve function. - Amiram Eldar, Dec 04 2022

Extensions

Edited by Georg Fischer, Dec 03 2019

A024299 a(n) = (2*n)! [x^(2*n)] log(1 + tanh(x)^2)/2.

Original entry on oeis.org

0, 1, -14, 496, -34544, 4055296, -724212224, 183218384896, -62380415842304, 27507260369207296, -15250924309151350784, 10384039093607251050496, -8517991922318587187953664, 8285309769460200661892202496, -9429010285390912531529354706944
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    L:=RiemannZeta();
    [0] cat [-Round(2^(2*n-1)*(4^n-2)*(4^n-1)*Evaluate(L, 1-2*n)): n in [1..15]]; // G. C. Greubel, Jul 12 2022
    
  • Maple
    a := n -> `if`(n=0, 0, -2^(2*n-1)*(4^n-2)*(4^n-1)*Zeta(1-2*n)):
    seq(a(n), n=0..14); # Peter Luschny, Oct 29 2020
  • Mathematica
    With[{nn=30},Take[CoefficientList[Series[Log[1+Tanh[x]^2]/2,{x,0,nn}],x] Range[0,nn]!,{1,-1,2}]] (* Harvey P. Dale, Dec 12 2021 *)
  • PARI
    my(x='x+O('x^30), v = concat([0,0], Vec(serlaplace (log(1+tanh(x)^2)/2)))); vector(#v\2, k, v[2*k-1]) \\ Michel Marcus, Oct 29 2020
    
  • SageMath
    [0]+[-2^(2*n-1)*(4^n-2)*(4^n-1)*zeta(1-2*n) for n in (1..15)] # G. C. Greubel, Jul 12 2022

Formula

a(n) = A009403(n)/2.
a(n) = -2^(2*n-1)*(4^n - 2)*(4^n - 1)*zeta(1-2*n) for n >= 1. - Peter Luschny, Oct 29 2020

Extensions

Extended with signs, Mar 1997
Previous Mathematica program replaced by Harvey P. Dale, Dec 12 2021

A008775 Expansion of e.g.f. 2/(1 + cos x * cosh x) in powers of x^4.

Original entry on oeis.org

1, 2, 272, 261392, 923578112, 8687146706432, 179207715900772352, 7123449535546491471872, 497301503279765920504020992, 56869795869126246818618490355712, 10089974849557868979545831504092332032, 2659150134955694814127423122143061660925952
Offset: 0

Views

Author

Keywords

References

  • Goulden and Jackson, Combin. Enum., Wiley, 1983 p. 287.

Crossrefs

Programs

  • Magma
    m:=70; R:=PowerSeriesRing(Rationals(), m); b:=Coefficients(R!( 2/(1+Cos(x)*Cosh(x)) )); [Factorial(4*n-4)*b[4*n-3]: n in [1..Floor(m/4)]]; // G. C. Greubel, Sep 11 2019
    
  • Maple
    seq(factorial(4*n)*coeff(series(2/(1+cos(x)*cosh(x)), x, 4*n+1), x, 4*n), n = 0..15); # G. C. Greubel, Sep 11 2019
  • Mathematica
    Table[(CoefficientList[Series[2/(1 + Cos[x]*Cosh[x]), {x, 0, 60}], x] * Range[0, 60]! )[[n]], {n, 1, 61, 4}] (* Vaclav Kotesovec, Sep 15 2014 *)
  • PARI
    my(x='x+O('x^60)); v=Vec(serlaplace(2/(1+cos(x)*cosh(x)) )); vector(#v\4, n, v[4*n-3]) \\ G. C. Greubel, Sep 11 2019
    
  • Sage
    [factorial(4*n)*( 2/(1+cos(x)*cosh(x)) ).series(x,4*n+2).list()[4*n] for n in (0..30)]; # G. C. Greubel, Sep 11 2019

Formula

a(n) ~ 8 * (4*n)! / ((cosh(r)*sin(r) - cos(r)*sinh(r)) * r^(4*n+1)), where r = 1.875104068711961166445308241... is the root of the equation cosh(r)*cos(r) = -1. See A076417. - Vaclav Kotesovec, Sep 15 2014

Extensions

More terms from Vaclav Kotesovec, Sep 15 2014

A009670 E.g.f. tan(sin(x)*cos(x)) (odd powers only).

Original entry on oeis.org

1, -2, -48, 880, 59136, -4558336, -358510592, 87349164032, 5261729398784, -4294386293800960, -9972473469599744, 442881767885962739712, -50940651947982996897792, -83250857495799899292172288
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A101921.

Programs

  • Maxima
    a(n):=2*sum(4^(n-m)*((sum(j!*2^(-j)*(-1)^(j+1)*stirling2(2*m+1, j), j, 1, 2*m+1))*sum((2*i-(2*m+1))^(2*n+1)*binomial(2*m+1, i)*(-1)^(n+1-i), i, 0, (2*m+1)/2))/(2*m+1)!, m, 0, n); /* Vladimir Kruchinin, Jun 28 2011 */

Formula

a(n)=2*sum(m=0..n, 4^(n-m)*((sum(j=1..2*m+1, j!*2^(-j)*(-1)^(j+1)*stirling2(2*m+1, j)))*sum(i=0..(2*m+1)/2, (2*i-(2*m+1))^(2*n+1)*binomial(2*m+1, i)*(-1)^(n+1-i)))/(2*m+1)!). - Vladimir Kruchinin, Jun 29 2011

Extensions

Extended with signs by Olivier Gérard, Mar 15 1997

A009798 E.g.f. tanh(sin(x)*cos(x)) (odd powers only).

Original entry on oeis.org

1, -6, 112, -5488, 451840, -57057792, 10262228992, -2484525168640, 779280513040384, -307370299649556480, 148889329569589362688, -86890528715348714192896, 60129120979379216762011648
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A101921.

Programs

  • Maxima
    a(n):=(-1)^n*sum(4^(n-k)/(2*k+1)!*sum((-1)^i*(2*k+1-2*i)^(2*n+1)*binomial(2*k+1, i), i, 0,2*k+1)*(sum(j!*2^(-j)*(-1)^(k+1+j)*stirling2(2*k+1, j), j, 1, 2*k+1)), k, 0, n); /* Vladimir Kruchinin, Jun 28 2011 */

Formula

a(n):=(-1)^n*sum(k=0..n, 4^(n-k)/(2*k+1)!*sum(i=0..2*k+1, (-1)^i*(2*k+1-2*i)^(2*n+1)*binomial(2*k+1, i))*(sum(j=1..2*k+1, j!*2^(-j)*(-1)^(k+1+j)*stirling2(2*k+1, j)))). - Vladimir Kruchinin, Jun 29 2011

Extensions

Extended with signs by Olivier Gérard, Mar 15 1997

A012227 tanh(arctan(tanh(x)))=x-6/3!*x^3+176/5!*x^5-12016/7!*x^7...

Original entry on oeis.org

1, -6, 176, -12016, 1469696, -280971776, 77198422016, -28793654081536, 13988424620507136, -8578076577450295296, 6478101995566379565056, -5906079803365219349037056, 6394716233788355978540875776
Offset: 0

Views

Author

Patrick Demichel (patrick.demichel(AT)hp.com)

Keywords

Crossrefs

Cf. A101921.

Programs

  • Mathematica
    With[{nn=30},Take[CoefficientList[Series[Tanh[ArcTan[Tanh[x]]],{x,0,nn}],x] Range[0,nn-1]!,{2,-1,2}]] (* Harvey P. Dale, Dec 08 2018 *)

A024236 Expansion of log(1+tan(x)*x)/2.

Original entry on oeis.org

0, 1, -2, 48, -1040, 62720, -4314624, 498003968, -70081316864, 13529482592256, -3175495421788160, 933402531586899968, -326784893253162369024, 136568449424117316190208, -66517446960602151366164480
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A009379.
Cf. A101921.

Programs

  • Maple
    S:= series(log(1+tan(x)*x)/2, x, 101): seq(coeff(S, x, 2*j)*(2*j)!, j=0..50); # Robert Israel, Jun 29 2015
  • Mathematica
    With[{nn=30},Take[CoefficientList[Series[Log[1+Tan[x]x]/2,{x,0,nn}],x] Range[0,nn]!,{1,-1,2}]] (* Harvey P. Dale, Jun 24 2018 *)

Formula

E.g.f. of aerated sequence: Sum(n>=0, a(n)*x^(2*n)/(2*n)!) = log(1+tan(x)*x)/2. - Robert Israel, Jun 29 2015

Extensions

Extended with signs, Mar 1997
Previous Mathematica program replaced by Harvey P. Dale, Jun 24 2018
Showing 1-10 of 11 results. Next