Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Alternating permutation

From Wikipedia, the free encyclopedia
Type of permutation
Not to be confused withAlternating group.

Incombinatorialmathematics, analternating permutation (orzigzag permutation) of the set {1, 2, 3, ...,n} is apermutation (arrangement) of those numbers so that each entry is alternately greater or less than the preceding entry. For example, the five alternating permutations of {1, 2, 3, 4} are:

  • 1, 3, 2, 4        because       1 < 3 > 2 < 4,
  • 1, 4, 2, 3        because       1 < 4 > 2 < 3,
  • 2, 3, 1, 4        because       2 < 3 > 1 < 4,
  • 2, 4, 1, 3        because       2 < 4 > 1 < 3, and
  • 3, 4, 1, 2        because       3 < 4 > 1 < 2.

This type of permutation was first studied byDésiré André in the 19th century.[1]

Different authors use the term alternating permutation slightly differently: some require that the second entry in an alternating permutation should be larger than the first (as in the examples above), others require that the alternation should be reversed (so that the second entry is smaller than the first, then the third larger than the second, and so on), while others call both types by the name alternating permutation.

The determination of the numberAn of alternating permutations of the set {1, ...,n} is calledAndré's problem. The numbersAn are known asEuler numbers,zigzag numbers, orup/down numbers. Whenn is even the numberAn is known as asecant number, while ifn is odd it is known as atangent number. These latter names come from the study of thegenerating function for the sequence.

Definitions

[edit]

Apermutationc1, ...,cn is said to bealternating if its entries alternately rise and descend. Thus, each entry other than the first and the last should be either larger or smaller than both of its neighbors. Some authors use the term alternating to refer only to the "up-down" permutations for whichc1 <c2 >c3 < ..., calling the "down-up" permutations that satisfyc1 >c2 <c3 > ... by the namereverse alternating. Other authors reverse this convention, or use the word "alternating" to refer to both up-down and down-up permutations.

There is a simpleone-to-one correspondence between the down-up and up-down permutations: replacing each entryci withn + 1 -ci reverses the relative order of the entries.

By convention, in any naming scheme the unique permutations of length 0 (the permutation of theempty set) and 1 (the permutation consisting of a single entry 1) are taken to be alternating.

André's theorem

[edit]
The zigzag numbers in Bernoulli (1742),Opera Omnia vol. 4, p. 105

The determination of the numberAn of alternating permutations of the set {1, ...,n} is calledAndré's problem. The numbersAn are variously known asEuler numbers,zigzag numbers,up/down numbers, or by some combinations of these names. The nameEuler numbers in particular is sometimes used for a closely related sequence. The first few values ofAn are 1, 1, 1, 2, 5, 16, 61, 272, 1385, 7936, 50521, ... (sequenceA000111 in theOEIS).

These numbers satisfy a simple recurrence, similar to that of theCatalan numbers: by splitting the set of alternating permutations (both down-up and up-down) of the set { 1, 2, 3, ..., nn + 1 } according to the positionk of the largest entryn + 1, one can show that

2An+1=k=0n(nk)AkAnk{\displaystyle 2A_{n+1}=\sum _{k=0}^{n}{\binom {n}{k}}A_{k}A_{n-k}}

for alln ≥ 1.André (1881) used this recurrence to give adifferential equation satisfied by theexponential generating function

A(x)=n=0Anxnn!{\displaystyle A(x)=\sum _{n=0}^{\infty }A_{n}{\frac {x^{n}}{n!}}}

for the sequenceAn. In fact, the recurrence gives:

2n1An+1xn+1(n+1)!=n1k=0nAkk!Ank(nk)!xn+1n+1=(k0Akxkk!)(j0Ajxjj!)dxx{\displaystyle 2\sum _{n\geq 1}A_{n+1}{\frac {x^{n+1}}{(n+1)!}}=\sum _{n\geq 1}\sum _{k=0}^{n}{\frac {A_{k}}{k!}}{\frac {A_{n-k}}{(n-k)!}}{\frac {x^{n+1}}{n+1}}=\int \left(\sum _{k\geq 0}A_{k}{\frac {x^{k}}{k!}}\right)\left(\sum _{j\geq 0}A_{j}{\frac {x^{j}}{j!}}\right)\,dx-x}

where we substitutej=nk{\displaystyle j=n-k} andxn+1n+1=xk+jdx{\displaystyle {\frac {x^{n+1}}{n+1}}=\int x^{k+j}\,dx}. This gives the integral equation

2(A(x)1x)=A(x)2dxx,{\displaystyle 2(A(x)-1-x)=\int A(x)^{2}\,dx-x,}

which after differentiation becomes2dAdx2=A21{\displaystyle 2{\frac {dA}{dx}}-2=A^{2}-1}.This differential equation can be solved byseparation of variables (using theinitial conditionA(0)=A0/0!=1{\displaystyle A(0)=A_{0}/0!=1}), and simplified using atangent half-angle formula, giving the final result

A(x)=tan(π4+x2)=secx+tanx{\displaystyle A(x)=\tan \left({\frac {\pi }{4}}+{\frac {x}{2}}\right)=\sec x+\tan x},

the sum of thesecant andtangent functions. This result is known asAndré's theorem. A geometric interpretation of this result can be given using a generalization of a theorem by Johann Bernoulli[2]

It follows from André's theorem that theradius of convergence of the seriesA(x) is π/2. This allows one to compute theasymptotic expansion[3]

An2(2π)n+1n!.{\displaystyle A_{n}\sim 2\left({\frac {2}{\pi }}\right)^{n+1}n!\,.}

Seidel's Algorithm

[edit]

In 1877Philipp Ludwig von Seidel published an algorithm, which makes it simple to calculateAn.[4]

Seidel's algorithm forAn
  1. Start by putting 1 in row 0 and letk denote the number of the row currently being filled
  2. Ifk is odd, then put the number on the left end of the rowk − 1 in the first position of the rowk, and fill the row from the left to the right, with every entry being the sum of the number to the left and the number to the upper
  3. At the end of the row duplicate the last number.
  4. Ifk is even, proceed similar in the other direction.

Seidel's algorithm is in fact much more general (see the exposition of Dominique Dumont[5]) and was rediscovered several times thereafter.

Similar to Seidel's approach D. E. Knuth and T. J. Buckholtz gave a recurrence equation for the numbersA2n and recommended this method for computing theBernoulli numbersB2n andEuler numbersE2n 'on electronic computers using only simple operations on integers'.[6]

V. I. Arnold[7] rediscovered Seidel's algorithm and later Millar, Sloane and Young popularized Seidel's algorithm under the nameboustrophedon transform.

Triangular form:

1
11
221
2455
161614105
163246566161
27227225622417812261

OnlyOEISA000657, with one 1, andOEISA214267, with two 1s, are in the OEIS.

Distribution with a supplementary 1 and one 0 in the following rows:

1
01
−1−10
0−1−2−2
55420
0510141616
−61−61−56−46−32−160

This isOEISA239005, a signed version ofOEISA008280. The main andiagonal isOEISA122045. Themain diagonal isOEISA155585. The central column isOEISA099023. Row sums: 1, 1, −2, −5, 16, 61.... SeeOEISA163747. See the array beginning with 1, 1, 0, −2, 0, 16, 0 below.

The Akiyama–Tanigawa algorithm applied toOEISA046978 (n + 1) /OEISA016116(n) yields:

111/201/41/41/8
013/2103/4
−1−13/2415/4
0−515/21
5551/2
061
−61

1. The first column isOEISA122045. Itsbinomial transform leads to:

110−20160
0−1−2216−16
−1−1414−32
0510−46
55−56
0−61
−61

The first row of this array isOEISA155585. The absolute values of the increasing antidiagonals areOEISA008280. The sum of the antidiagonals isOEISA163747 (n + 1).

2. The second column is1 1 −1 −5 5 61 −61 −1385 1385.... Its binomial transform yields:

122−4−1632272
10−6−1248240
−1−6−660192
−506632
56666
610
−61

The first row of this array is1 2 2 −4 −16 32 272 544 −7936 15872 353792 −707584.... The absolute values of the second bisection are the double of the absolute values of the first bisection.

Consider the Akiyama-Tanigawa algorithm applied toOEISA046978 (n) / (OEISA158780 (n + 1) = abs(OEISA117575 (n)) + 1 =1, 2, 2,3/2, 1,3/4,3/4,7/8, 1,17/16,17/16,33/32....

1223/213/43/4
−103/225/40
−1−33/2325/4
2−327/2−13
5213/2
−1645
−61

The first column whose the absolute values areOEISA000111 could be the numerator of a trigonometric function.

OEISA163747 is an autosequence of the first kind (the main diagonal isOEISA000004). The corresponding array is:

0−1−125−16−61
−1033−21−45
130−24−24
2−3−240
−5−2124
−1645
−61

The first two upper diagonals are−1 3 −24 402... =(−1)n + 1 × OEISA002832. The sum of the antidiagonals is0 −2 0 10... = 2 × OEISA122045(n + 1).

OEISA163982 is an autosequence of the second kind, like for instanceOEISA164555 /OEISA027642. Hence the array:

21−1−2516−61
−1−2−1711−77
−1184−88
27−4−92
5−11−88
−16−77
−61

The main diagonal, here2 −2 8 −92..., is the double of the first upper one, hereOEISA099023. The sum of the antidiagonals is2 0 −4 0... = 2 × OEISA155585(n +1).OEISA163747 − OEISA163982 = 2 × OEISA122045.

Related sequences

[edit]

The odd-indexed zigzag numbers (i.e., the tangent numbers) are closely related toBernoulli numbers. The relation is given by the formula

B2n=(1)n12n42n22nA2n1{\displaystyle B_{2n}=(-1)^{n-1}{\frac {2n}{4^{2n}-2^{2n}}}A_{2n-1}}

for n > 0.

IfZn denotes the number of permutations of {1, ...,n} that are either up-down or down-up (or both, forn < 2) then it follows from the pairing given above thatZn = 2An forn ≥ 2. The first few values ofZn are 1, 1, 2, 4, 10, 32, 122, 544, 2770, 15872, 101042, ... (sequenceA001250 in theOEIS).

The Euler zigzag numbers are related to Entringer numbers, from which the zigzag numbers may be computed. The Entringer numbers can be defined recursively as follows:[8]

E(0,0)=1{\displaystyle E(0,0)=1}
E(n,0)=0for n>0{\displaystyle E(n,0)=0\qquad {\mbox{for }}n>0}
E(n,k)=E(n,k1)+E(n1,nk){\displaystyle E(n,k)=E(n,k-1)+E(n-1,n-k)}.

Thenth zigzag number is equal to the Entringer numberE(n,n).

The numbersA2n with even indices are calledsecant numbers orzig numbers: since the secant function iseven and tangent isodd, it follows from André's theorem above that they are the numerators in theMaclaurin series ofsecx. The first few values are 1, 1, 5, 61, 1385, 50521, ... (sequenceA000364 in theOEIS).

Secant numbers are related to the signedEuler numbers (Taylor coefficients of hyperbolic secant) by the formulaE2n = (−1)nA2n. (En = 0 whenn is odd.)

Correspondingly, the numbersA2n+1 with odd indices are calledtangent numbers orzag numbers. The first few values are 1, 2, 16, 272, 7936, ... (sequenceA000182 in theOEIS).

Explicit formula in terms of Stirling numbers of the second kind

[edit]

The relationships of Euler zigzag numbers with theEuler numbers, and theBernoulli numbers can be used to prove the following[9][10]

Ar=4rark=1r(1)kS(r,k)k+1(34)(k){\displaystyle A_{r}=-{\frac {4^{r}}{a_{r}}}\sum _{k=1}^{r}{\frac {(-1)^{k}\,S(r,k)}{k+1}}\left({\frac {3}{4}}\right)^{(k)}}

where

ar={(1)r12(1+2r)if r is odd(1)r2if r is even,{\displaystyle a_{r}={\begin{cases}(-1)^{\frac {r-1}{2}}(1+2^{-r})&{\mbox{if r is odd}}\\(-1)^{\frac {r}{2}}&{\mbox{if r is even}}\end{cases}},}

(x)(n)=(x)(x+1)(x+n1){\displaystyle (x)^{(n)}=(x)(x+1)\cdots (x+n-1)} denotes therising factorial, andS(r,k){\displaystyle S(r,k)} denotesStirling numbers of the second kind.

See also

[edit]

Citations

[edit]
  1. ^Jessica Millar, N. J. A. Sloane, Neal E. Young,"A New Operation on Sequences: the Boustrouphedon Transform" Journal of Combinatorial Theory, Series A 76(1):44–54 (1996)
  2. ^Philippe Henry, Gerhard Wanner, "Zigzags with Bürgi, Bernoulli, Euler and the Seidel–Entringer–Arnol’d triangle",Elemente der Mathematik 74 (4) : 141–168 (2019)
  3. ^Stanley, Richard P. (2010), "A survey of alternating permutations",Combinatorics and graphs, Contemporary Mathematics, vol. 531, Providence, RI: American Mathematical Society, pp. 165–196,arXiv:0912.4240,doi:10.1090/conm/531/10466,MR 2757798
  4. ^Seidel, L. (1877), "Über eine einfache Entstehungsweise der Bernoullischen Zahlen und einiger verwandten Reihen",Sitzungsber. Münch. Akad.,4:157–187
  5. ^Dumont, D. (1981),"Matrices d'Euler-Seidel",Séminaire Lotharingien de Combinatoire,B05c
  6. ^Knuth, D. E.; Buckholtz, T. J. (1967), "Computation of Tangent, Euler, and Bernoulli Numbers",Mathematics of Computation,21 (100), American Mathematical Society:663–688,doi:10.2307/2005010,JSTOR 2005010
  7. ^Arnold, V. I. (1991), "Bernoulli-Euler updown numbers associated with function singularities, their combinatorics and arithmetics",Duke Math. J.,63 (2):537–555,doi:10.1215/s0012-7094-91-06323-4
  8. ^Weisstein, Eric W. "Entringer Number." From MathWorld--A Wolfram Web Resource.http://mathworld.wolfram.com/EntringerNumber.html
  9. ^Mendes, Anthony (2007). "A Note on Alternating Permutations".The American Mathematical Monthly.114 (5):437–440.doi:10.1080/00029890.2007.11920432.JSTOR 27642223.
  10. ^Mező, István; Ramírez, José L. (2019). "The r-alternating permutations".Aequationes Mathematicae.doi:10.1007/s00010-019-00658-5.

References

[edit]

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Alternating_permutation&oldid=1334668043"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp