|
| |
|
|
A000111
|
|
Euler or up/down numbers: e.g.f. sec(x) + tan(x). Also number of alternating permutations on n letters.
(Formerly M1492 N0587)
|
|
118
| |
|
|
1, 1, 1, 2, 5, 16, 61, 272, 1385, 7936, 50521, 353792, 2702765, 22368256, 199360981, 1903757312, 19391512145, 209865342976, 2404879675441, 29088885112832, 370371188237525, 4951498053124096, 69348874393137901
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,4
|
|
|
COMMENTS
| Number of linear extensions of the "zig-zag" poset. See ch. 3, prob. 23 of Stanley. - Mitch Harris (Harris.Mitchell (AT) mgh.harvard.edu), Dec 27, 2005
Number of increasing 0-1-2 trees on n vertices. [David Callan (callan(AT)stat.wisc.edu), Dec 22 2006]
Also the number of refinements of partitions. [Heinz-Richard Halder (halder.bichl(AT)t-online.de), Mar 07 2008]
The ratio a(n)/n! is also the probability that n numbers x1,x2,..,xn randomly choosen uniformly and independently in [0,1] satisfy x1>x2<x3>x4<...xn. [Pietro Majer (majer(AT)dm.unipi.it), Jul 13 2009]
For n >= 2, a(n-2) = number of permutations w of an ordered n-set {x_1 < ... x_n} with the following properties: w(1)=x_n, w(n)=x_{n-1}, w(2)>w(n-1), and neither any subword of w, nor its reversal, has the first three properties. The count is unchanged if the third condition is replaced with w(2)<w(n-1). [From Jeremy Martin (jmartin(AT)math.ku.edu), Mar 26 2010]
A partition of zigzag permutations of order n+1 by the smallest or the largest, whichever is behind. This partition has the same recurrent relation as increasing 1-2 trees of order n, by induction the bijection follows. - Wenjin Woan, May 06 2011
|
|
|
REFERENCES
| D. Andre', Sur les permutations alterne'es, Journal de Math\'{e}matiques Pures et Appliqu\'{e}es, 7 (1881), 167-184.
Arnold, V. I., Bernoulli-Euler updown numbers associated with function singularities, their combinatorics and arithmetics, Duke Math. J. 63 (1991), 537-555.
M. D. Atkinson: Zigzag permutations and comparisons of adjacent elements, Information Processing Letters 21 (1985), 187-189.
M. D. Atkinson: Partial orders and comparison problems, Sixteenth Southeastern Conference on Combinatorics, Graph Theory and Computing, (Boca Raton, Feb 1985), Congressus Numerantium 47, 77-88.
B. Bauslaugh and F. Ruskey, Generating alternating permutations lexicographically, Nordisk Tidskr. Informationsbehandling (BIT) 30 16-26 1990.
Brightwell, Graham; Cohen, Gerard; Fachini, Emanuela; Fairthorne, Marianne; Korner, Janos; Simonyi, Gabor; and Toth, Agnes Permutation capacities of families of oriented infinite paths. SIAM J. Discrete Math. 24 (2010), no. 2, 441-456.
L. Comtet, Advanced Combinatorics, Reidel, 1974, pp. 258-260, section #11.
F. N. David, M. G. Kendall and D. E. Barton, Symmetric Function and Allied Tables, Cambridge, 1966, p. 262.
H. Doerrie, 100 Great Problems of Elementary Mathematics, Dover, NY, 1965, p. 66.
N. D. Elkies, On the sums Sum_{k = -infinity .. infinity} (4k+1)^(-n), Amer. Math. Monthly, 110 (No. 7, 2003), 561-573.
D. Foata and M.-P. Schutzenberger, Nombres d'Euler et permutations alternantes, in J. N. Srivastava et al., eds., A Survey of Combinatorial Theory (North Holland Publishing Company, Amsterdam, 1973), pp. 173-187.
Heinz-Richard Halder, Ueber Verfeinerungen von Partitionen, Periodica Mathematica Hungarica Vol. 12 (3), (1981), pp. 217-220.
O. Heimo and A. Karttunen, Series help-mates in 8, 9 and 10 moves (Problems 2901, 2974-2976), Suomen Tehtavaniekat (Proceedings of the Finnish Chess Problem Society) vol. 60, no. 2/2006, pp. 75, 77.
Aoife Hennessy, A Study of Riordan Arrays with Applications to Continued Fractions, Orthogonal Polynomials and Lattice Paths, Ph. D. Thesis, Waterford Institute of Technology, Oct. 2011; http://repository.wit.ie/1693/1/AoifeThesis.pdf
L. B. W. Jolley, Summation of Series. 2nd ed., Dover, NY, 1961, p. 238.
G. Kreweras, Les preordres totaux compatibles avec un ordre partiel. Math. Sci. Humaines No. 53 (1976), 5-30.
A. Mendes, A note on alternating permutations, Amer. Math. Monthly, 114 (2007), 437-440.
S. Mukai, An Introduction to Invariants and Moduli, Cambridge, 2003; see p. 444.
F. Murtagh, "Counting dendrograms: a survey", Discrete Applied Mathematics, 7 (1984), 191-199.
E. Netto, Lehrbuch der Combinatorik. 2nd ed., Teubner, Leipzig, 1927, p. 110.
C. A. Pickover, The Math Book, Sterling, NY, 2009; see p. 184.
Y. Sano, The principal numbers of K. Saito for the types A_l, D_l and E_l, Discr. Math., 307 (2007), 2636-2642.
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).
J. Staib, Trigonometric power series, Math. Mag., 49 (1976), 147-148.
R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 1, 1997.
R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 2, 1999; see Problem 5.7.
Zhi-Hong Sun, Congruences involving Bernoulli polynomials, Discr. Math., 308 (2007), 71-112.
A. Vieru, Agoh's conjecture: its proof, its generalizations, its analogues, Arxiv preprint arXiv:1107.2938, 2011.
|
|
|
LINKS
| N. J. A. Sloane, The first 200 Euler numbers: Table of n, a(n) for n = 0..199
Joerg Arndt, Fxtbook, pp.281-282
J. L. Arregui, Tangent and Bernoulli numbers related to Motzkin and Catalan numbers by means of numerical triangles.
F. Bergeron, M. Bousquet-M\'{e}lou and S. Dulucq, Standard paths in the composition poset
David Callan, A note on downup permutations and increasing 0-1-2 trees
N. D. Elkies, On the sums Sum((4k+1)^(-n),k,-inf,+inf)
N. D. Elkies, New Directions in Enumerative Chess Problems, The Electronic Journal of Combinatorics, vol. 11(2), 2004.
P. Flajolet, S. Gerhold and B. Salvy, On the non-holonomic character of logarithms, powers and the n-th prime function
M. Josiat-Verges, Enumeration of snakes and cycle-alternating permutations
Kruchinin, Vladimir Victorovich, Composition of ordinary generating functions, arXiv:1009.2565
J. L. Martin and J. D. Wagner, Updown numbers and the initial monomials of the slope variety, Electronic J. Combin. 16, no. 1 (2009), Research Paper R82. [From Jeremy Martin (jmartin(AT)math.ku.edu), Mar 26 2010]
J. Millar, N. J. A. Sloane and N. E. Young, A new operation on sequences: the Boustrophedon on transform, J. Combin. Theory, 17A 44-54 1996 (Abstract, pdf, ps).
A. Randrianarivony and J. Zeng, Sur une extension des nombres d'Euler et les records des permutations alternantes, J. Combin. Theory Ser. A 68 (1994), 68-99.
A. Randrianarivony and J. Zeng, Une famille des polynomes qui interpole plusieurs suites..., Adv. Appl. Math. 17 (1996), 1-26.
N. J. A. Sloane, My favorite integer sequences, in Sequences and their Applications (Proceedings of SETA '98).
R. P. Stanley, Queue problems revisited, Suomen Tehtavaniekat (Proceedings of the Finnish Chess Problem Society), vol. 59, no. 4 (2005), 193-203.
R. P. Stanley, Permutations
Ross Tang, An Explicit Formula for the Euler zigzag numbers (Up/down numbers) from power series [From Ross Tang (ph.tchaa(AT)gmail.com), Jul 28 2010]
Eric Weisstein's World of Mathematics, Euler Zigzag Number
Eric Weisstein's World of Mathematics, Alternating Permutation
Eric Weisstein's World of Mathematics, Entringer Number
Index entries for "core" sequences
Index entries for sequences related to boustrophedon transform
|
|
|
FORMULA
| E.g.f.: (1+sin(x))/cos(x) = tan(x) + sec(x).
E.g.f. for a(n+1) is 1/(cos(x/2)-sin(x/2))^2 = 1/(1-sin(x)) = d/dx(sec(x)+tan(x)).
E.g.f. A(x)=-log(1-sin(x), for a(n+1) [From Kruchinin Vladimir, Aug 09 2010]
O.g.f.: A(x) = 1+x/(1-x-x^2/(1-2*x-3*x^2/(1-3*x-6*x^2/(1-4*x-10*x^2/(1-... -n*x-(n*(n+1)/2)*x^2/(1- ...)))))) (continued fraction). - Paul D. Hanna, Jan 17 2006
O.g.f. A(x) = y satisfies 2y' = 1 + y^2. - Michael Somos, Feb 03 2004
a(n) = P_n(0) + Q_n(0) (see A155100 and A104035), defining Q_{-1} = 0. Cf. A156142.
2*a(n+1) = Sum_{k=0..n} binomial(n, k)*a(k)*a(n-k).
Asymptotics: a(n) ~ 2^(n+2)*n!/Pi^(n+1).
a(n) = (n-1)*a(n-1) - sum{i=2, n-2, (i-1)*E(n-1, i)}, where E are the Entringer numbers A008280. - Jon Perry (perry(AT)globalnet.co.uk), Jun 09 2003
a(2*k) = (-1)^k euler(2k) and a(2k-1) = (-1)^(k-1)2^(2k)(2^(2k)-1) bernoulli(2k)/(2k) - C. Ronaldo (aga_new_ac(AT)hotmail.com), Jan 17 2005
|a(n+1)-2*a(n)|=A000708(n) . - Philippe DELEHAM, Jan 13 2007
a(n) = 2^n|E(n,1/2)+E(n,1)| where E(n,x) are the Euler polynomials. [Peter Luschny, Jan 25 2009]
a(n) = 2^{n+2}*n!*S(n+1)/(Pi)^{n+1}, where S(n)=Sum(1/(4k+1)^n, k=-inf..inf) (see the Elkies reference). [From Emeric Deutsch, Aug 17 2009]
a(n) = i^{n+1} sum_{k=1..n+1} sum_{j=0..k} binomial(k,j)(-1)^j (k-2j)^{n+1} (2i)^{-k} k^{-1} [From Ross Tang (ph.tchaa(AT)gmail.com), Jul 28 2010]
a(n)=sum((if evenp(n+k) then (-1)^((n+k)/2)*sum(j!*stirling2(n,j)*2^(1-j)*(-1)^(n+j-k)*binomial(j-1,k-1),j,k,n) else 0),k,1,n), n>0. [From Vladimir Kruchinin, Aug 19 2010]
If n==1(mod 4) is prime, then a(n)==1(mod n); if n==3(mod 4) is prime, then a(n)==-1(mod n). [From Vladimir Shevelev (shevelev(AT)bgu.ac.il), Aug 31 2010]
For m>=0, a(2^m)==1(mod 2^m); If p is prime, then a(2*p)==1(mod 2*p). [From Vladimir Shevelev, Sep 03 2010]
From Peter Bala, Jan 26 2011: (Start)
a(n) = A(n,I)/(1+I)^(n-1), where I = sqrt(-1) and {A(n,x)}n>=1 = [1,1+x,1+4*x+x^2,1+11*x+11*x^2+x^3,...] denotes the sequence of Eulerian polynomials.
Equivalently, a(n) = I^(n+1)*sum {k=1..n} (-1)^k*k!*Stirling2(n,k) * ((1+I)/2)^(k-1) = I^(n+1)*sum {k = 1..n} (-1)^k*((1+I)/2)^(k-1)* sum{j = 0..k} (-1)^(k-j)*binomial(k,j)*j^n.
This explicit formula for a(n) can be used to obtain congruence results. For example, for odd prime p, a(p) = (-1)^((p-1)/2) (mod p), as noted by Vladimir Shevelev above.
For the corresponding type B results see A001586. For the corresponding results for plane increasing 0-1-2 trees see A080635.
For generalized Eulerian, Stirling and Bernoulli numbers associated with the zigzag numbers see A145876, A147315 and A185424, respectively. For a recursive triangle to calculate a(n) see A185414.
(End)
a(n) = I^(n+1)*2*Li_{-n}(-I) for n > 0. Li_{s}(z) is the polylogarithm. [Peter Luschny, Jul 29 2011]
a(n)=2*sum(m=0..(n-2)/2, 4^m*(sum(i=m..(n-1)/2, (i-(n-1)/2)^(n-1)*binomial(n-2*m-1,i-m)*(-1)^(n-i-1)))), n>1, a(0)=1, a(1)=1. [From Vladimir Kruchinin, Aug 09 2011]
E.g.f.: tan(x)+sec(x)=1+x/U(0); U(k)= 4k+1-x/(2-x/(4k+3+x/(2+x/U(k+1))));(continued fraction). - Sergei N. Gladkovskii, Nov 14 2011
a(n) = D^(n-1)(1/(1-x)) evaluated at x = 0, where D is the operator sqrt(1-x^2)*d/dx. Cf. A006154. a(n) equals the alternating sum of the nonzero elements of row n-1 of A196776. This leads to a combinatorial interpretation for a(n); for example, a(4*n+2) counts the number of ordered set partitions of 4*n+1 into k odd-sized blocks, k = 1 (mod 4), minus the number of ordered set partitions of 4*n+1 into k odd-sized blocks, k = 3 (mod 4). Cf A002017 - Peter Bala, Dec 06 2011
E.g.f. for a(n+1) is E(x)=1/(1-sin(x))=1 + x/(1 - x + x^2/G(0)) ; G(k)= (2*k+2)*(2*k+3)-x^2+(2*k+2)*(2*k+3)*x^2/G(k+1); (continued fraction Euler's kind, 1-step ). - Sergei N. Gladkovskii, Jan 06 2012
E.g.f. for a(n+1) is E(x)=1/(1-sin(x))=1/(1 - x/(1 + x^2/G(0)) ; G(k)= 8*k+6-x^2/(1 + (2*k+2)*(2*k+3)/G(k+1)); (continued fraction Euler's 2 kind, 2-step ). - Sergei N. Gladkovskii, Jan 06 2012
E.g.f. for a(n+1) is E(x)= 1/(1 - sin(x))=1/(1 - x*G(0)) ; G(k)= 1 - x^2/(2*(2*k+1)*(4*k+3) - 2*x^2*(2*k+1)*(4*k+3)/(x^2 - 4*(k+1)*(4*k+5)/G(k+1))); (continued fraction 3 kind, 3-step ). - Sergei N. Gladkovskii, Jan 06 2012
|
|
|
EXAMPLE
| 1 + x + x^2 + 2*x^3 + 5*x^4 + 16*x^5 + 61*x^6 + 272*x^7 + 1385*x^8 + ...
Sequence starts 1,1,2,5,16,... since possibilities are {}, {A}, {AB}, {ACB, BCA}, {ACBD, ADBC, BCAD, BDAC, CDAB}, {ACBED, ADBEC, ADCEB, AEBDC, AECDB, BCAED, BDAEC, BDCEA, BEADC, BECDA, CDAEB, CDBEA, CEADB, CEBDA, DEACB, DEBCA}, etc. - Henry Bottomley (se16(AT)btinternet.com), Jan 17 2001
|
|
|
MAPLE
| A000111 := n-> n!*coeff(series(sec(x)+tan(x), x, n+1), x, n);
s := series(sec(x)+tan(x), x, 100): A000111 := n-> n!*coeff(s, x, n);
A000111:=n->piecewise(n mod 2=1, (-1)^((n-1)/2)*2^(n+1)*(2^(n+1)-1)*bernoulli(n+1)/(n+1), (-1)^(n/2)*euler(n)):seq(A000111(n), n=0..30); A000111:=proc(n) local k: k:=floor((n+1)/2): if n mod 2=1 then RETURN((-1)^(k-1)*2^(2*k)*(2^(2*k)-1)*bernoulli(2*k)/(2*k)) else RETURN((-1)^k*euler(2*k)) fi: end:seq(A000111(n), n=0..30); (C. Ronaldo)
T := n -> 2^n*abs(euler(n, 1/2)+euler(n, 1)): [Peter Luschny, Jan 25 2009]
S := proc(n, k) option remember; if k=0 then RETURN(`if`(n=0, 1, 0)) fi; S(n, k-1)+S(n-1, n-k) end:
A000364 := n -> S(2*n, 2*n);
A000182 := n -> S(2*n+1, 2*n+1);
A000111 := n -> S(n, n); [Peter Luschny, Jul 29 2009]
a := proc (n) options operator, arrow: 2^(n+2)*factorial(n)*(sum(1/(4*k+1)^(n+1), k = -infinity .. infinity))/Pi^(n+1) end proc: 1, seq(a(n), n = 1 .. 22); [From Emeric Deutsch, Aug 17 2009]
|
|
|
MATHEMATICA
| n=22; CoefficientList[Series[(1+Sin[x])/Cos[x], {x, 0, n}], x] * Table[k!, {k, 0, n}] (* From Jean-François Alcover, May 18 2011, after M. Somos *)
|
|
|
PROG
| (PARI) {a(n) = if( n<1, n==0, n--; n! * polcoeff(1 / (1 - sin(x + x * O(x^n))), n))} /* Michael Somos, Feb 03 2004 */
(PARI) {a(n) = local(v=[1], t); if( n<0, 0, for(k=2, n+2, t=0; v = vector(k, i, if(i>1, t+= v[k+1-i]))); v[2])} /* Michael Somos, Feb 03 2004 */
(PARI) {a(n)=local(an); if( n<1, n>=0, an = vector(n+1, m, 1); for(m=2, n, an[m+1] = sum(k=0, m-1, binomial(m-1, k) * an[k+1] * an[m-k]) / 2); an[n+1])} /* Michael Somos, Feb 03 2004 */
(PARI) x='x+O('x^66); /* that many terms */
egf = (1+sin(z))/cos(z); /* = 1 +z +1/2*z^2 +1/3*z^3 +5/24*z^4 +2/15*z^5 + ... */
Vec(serlaplace(egf)) /* show terms */ /* Joerg Arndt, Apr 30 2011 */
(Maxima) a(n):=sum((if evenp(n+k) then (-1)^((n+k)/2)*sum(j!*stirling2(n, j)*2^(1-j)*(-1)^(n+j-k)*binomial(j-1, k-1), j, k, n) else 0), k, 1, n); [From Kruchinin Vladimir, Aug 19 2010]
(Maxima)
a(n):=if n<2 then 1 else 2*sum(4^m*(sum((i-(n-1)/2)^(n-1)*binomial(n-2*m-1, i-m)*(-1)^(n-i-1), i, m, (n-1)/2)), m, 0, (n-2)/2); [From Vladimir Kruchinin, Aug 09 2011]
|
|
|
CROSSREFS
| Cf. A000364 (secant numbers), A000182 (tangent numbers). See also A008280, A008281, A008282, A010094, A059720 for related triangles.
A diagonal of A008970.
Cf. A109449 for an extension to an exponential Riordan array.
First column of A162170. [From Mats Granvik, Jun 27 2009]
Sequence in context: A178123 A138265 * A163747 A007976 A058259 A033543
Adjacent sequences: A000108 A000109 A000110 * A000112 A000113 A000114
|
|
|
KEYWORD
| nonn,core,eigen,nice,easy,changed
|
|
|
AUTHOR
| N. J. A. Sloane (njas(AT)research.att.com).
|
| |
|
|