DISCRETE EXCURSIONS
MIREILLE BOUSQUET-MÉLOU
Abstrat. Itis wellknown thatthelengthgenerating funtion
E(t)
of Dykpaths(exursions with steps
± 1
) satises1 − E + t 2 E 2 = 0
. The generatingfuntion
E (k) (t)
of Dykpaths of height at mostk
isE (k) = F k /F k+1
, wherethe
F k
are polynomials int
given byF 0 = F 1 = 1
andF k+1 = F k − t 2 F k−1
.Thismeansthat thegeneratingfuntion of thesepolynomialsis
P
k≥0 F k z k = 1/(1 − z + t 2 z 2 )
. Wenotethat thedenominator ofthisfrationistheminimalpolynomialofthealgebraiseries
E(t)
.This pattern persists for walks with general steps. For any nite set
of steps
S
, the generating funtionE (k) (t)
of exursions (generalized Dyk paths) taking their steps inS
and of height at mostk
is the ratioF k /F k+1
of two polynomials. These polynomials satisfy a linear reurrene relation
with oeients in
Q [t]
. Their (rational) generating funtion an be writtenP
k≥0 F k z k = N(t, z)/D(t, z)
. The exursion generatingfuntionE(t)
isalge-braiandsatises
D(t, E(t)) = 0
(whileN(t, E(t)) 6 = 0
).If
max S = a
andmin S = b
,thepolynomialsD(t, z)
andN (t, z)
anbetakentoberespetivelyofdegree
d a,b = a+b a
and
d a,b − a − b
inz
. Thesedegreesareingeneraloptimal: forinstane,when
S = { a, − b }
witha
andb
oprime,D(t, z)
isirreduible, and is thus the minimalpolynomialof theexursion generating
funtion
E(t)
.Theproofsofthese resultsinvolveaslightlyunusual mixtureof ombinato-
rialandalgebraitools,amongwhih thekernelmethod (whihsolvesertain
funtionalequations),symmetrifuntions,andapinh ofGaloistheory.
1. Introdution
One of the most lassial ombinatorial inarnations of the famous Catalan
numbers,
C n = 2n n
/(n + 1)
, isthe set of Dyk paths. These are one-dimensional walksthatstart andendat0
,takesteps± 1
,and alwaysremainatanon-negative level (Figure1,left). Byfatoring suhwalksat their rst returnto 0,one easilyproves that their length generating funtion
E ≡ E(t)
is algebrai, and satisesE = 1 + t 2 E 2 .
This immediatelyyields:
E = 1 − √
1 − 4t 2
2t 2 = X
n≥0
C n t 2n .
Theauthor was supported bythe frenh Agene Nationale de la Reherhe, viathe projet
4 5 6 7 8
3 2 1
4 5 6 7 8
3 2 1
Figure1. Left: A Dyk pathof length
16
and height4. Right: Anexursion (generalized Dyk path) of length
8
and height 7, withsteps in
S = {− 3, 5 }
.The same fatorization gives a reurrene relation that denes the series
E (k) ≡ E (k) (t)
ounting Dyk paths of heightat mostk
:E (0) = 1
and fork ≥ 1, E (k) = 1 + t 2 E (k−1) E (k) .
This reursionan beused toprovethat
E (k) isrational,andmore preisely, that
E (k) = F k
F k+1
,
whereF 0 = F 1 = 1
andF k+1 = F k − t 2 F k−1 .
The aim of this paper is to desribe what happens for generalized Dyk paths
(also known as exursions) taking their steps in an arbitrary nite set
S ⊂ Z
(see anexample in Figure1, right). Their lengthgenerating funtion
E
isknownto be algebrai. What is the degree of this series? How an one ompute its
minimal polynomial? Furthermore, it is easy to see that the generating funtion
E (k) an still be written F k /F k+1, for some polynomials F k. Does the sequene
F k. Does the sequene
(F k ) k satisfyalinearreurrenerelation? Ofwhatorder? Howanone determine
this reursion? Notethat any linear reursion of order
d
, of the formd
X
i=0
a i F k−i = 0
(1)with
a i ∈ Q[t]
, gives a non-linearreursion of orderd
for the seriesE (k),
d
X
i=0
a i E (k−i+1) · · · E (k) = 0,
(2)and, by taking the limit
k → ∞
, an algebrai equation of degreed
satised byE = lim k E (k):
d
X
i=0
a i E i = 0.
This establishes a lose link between the (still hypothetial) reursion for the
sequene
F k and the algebraiity of E
. The onnetion between (1) and (2) is
entralinthe reent paper[2℄dealing with exursions with steps
± 1, ± 2
.A slightly surprising outome of this paper is that symmetri funtions are
summaryofouranswerstotheabovequestions. Assume
min S = − b
andmax S = a
. Thenthe exursiongeneratingfuntionE
is algebraiof degreeatmostd a,b :=
a+b a
. The degree is exatly
d a,b in the generi ase (to be dened), but also
when
S = {− b, a }
witha
andb
oprime. Computing a polynomial of degreed a,b
thatannihilates
E
boilsdown toomputingthe elementaryplethysmse k [e a ]
onanalphabet with
a + b
letters,for0 ≤ k ≤ d a,b.
Thegeneratingfuntion
E (k) ounting exursionsof heightatmostk
isrational
and an be written
F k /F k+1 for some polynomials F k. These polynomials satisfy
a linear reurrene relation of the form (1), of order d a,b, whih is valid for k >
d a,b, whih is valid for k >
d a,b − a − b
. Moreover,F k anbeexpressed asadeterminantof varyingsize k
,but
alsoasa retangular Shurfuntion taking the formof adeterminantof onstant
size
a + b
.These results are detailed in the next setion. Not all of them are new. The
generating funtion of exursions, given in Proposition 1, rst appeared in [6℄,
but an be derived from the earlier paper [17℄. An algorithm for omputing a
polynomial of degree
d a,b that annihilates E
was desribed in [5℄. Hene the rst
part of the next setion, whih deals with unbounded exursions, is mostly a
survey (the results on the exat degree of
E
are however new). The seond partexursions ofbounded height is new,althoughanattempt inthe same vein
appears in[3℄.
Letusnish withtheplanof thispaper. Thekernel methodhas beomeastan-
dard tool to solve ertain funtional equations arising in various ombinatorial
problems [4, 14, 26℄. We illustrateit in Setion 3 by ounting unbounded exur-
sions. Weuse itagaininSetion4toobtainthegenerating funtionofexursions
of bounded height. Remarkably, thesame result anbe obtained byombining the
transfer-matrix methodandthedual JaobiTrudiidentity. InSetion5,wedeter-
mine the reurrene relation satised by the polynomials
F k. More preisely, we
omputetherationalseries
P
k F k z k
. Thisisequivalenttoomputingthe generat-ing funtion of retangular Shur funtions
P
k s k a z k
, wherea = max S
. Finally,we disuss in Setion 6 the exat degree of the series
E
for ertain step setsS
.This involves a bitof Galois theory.
2. Statement of the results
Weonsider one-dimensionalwalksthat startfrom
0
,taketheirstepsinaniteset
S ⊂ Z
, and always remain at a non-negative level. More formally, a (non- negative)walk oflengthn
willbeasequene(s 1 , s 2 , . . . , s n ) ∈ S n suhthatforall
i ≤ n
, the partial sum s 1 + · · · + s i isnon-negative. The nal level of this walk is
s 1 + · · · +s n,anditsheightismax i s 1 + · · · +s i. Anexursionisanon-negativewalk
endingat level 0 (Figure1). Weare interested inthe enumeration of exursions.
Thegeneratingfuntionsweonsider arefairlygeneral,inthateverystep
s ∈ S
is weighted by an element
ω s of some eld K
of harateristi 0. For instane,
all the ω s may be 1. Or they may be independent indeterminates. In the latter
ase, K
is the fration eld Q(ω s , s ∈ S )
. The length of the walks is taken into
K
is the fration eldQ(ω s , s ∈ S )
. The length of the walks is taken intoaount by an additional indeterminate
t
, transendental overK
. In partiular,the generating funtion of exursions is
E := X
ω s 1 · · · ω s n t n ,
where the sum runs over all exursions
(s 1 , s 2 , . . . , s n )
. This is a power series int
with oeients inK
. In one oasion (Example 2), we will then speializethe indeterminates
ω s intopolynomials int
. The series E
beomesa well-dened
powerseries in
t
.If
min S = − b
andmax S = a
, we assume thatω −b and ω a are non-zero. If d
d
divides all the elements of
S
, the exursion generating funtion is unhanged ifwe replaeeah
s ∈ S
bys/d
(up toa renaming of the weightsω s). Thus we an
always assumethat the elementsof
S
are relativelyprime. Also,if(s 1 , s 2 , . . . , s n )
is anexursion,
( − s n , . . . , − s 2 , − s 1 )
isalso anexursion, with steps in−S
. Thusthe exursion series obtained for
S
and−S
oinide, up to a renaming of theweights
ω s.
Theweightingofthewalksthatwehavedeneddependsonthelistofstepsthat
are taken, but not on the positions of these steps in
Z
. For instane, we annotkeep trak of the number of visits to 0 with our weights, whereas this parameter
is sometimes of interest [1, 8℄. However, the methods we present here are fairly
robustandanoftenbeadaptedtosolvevariantsofthetwomainquestionsstudied
inthis paper (inluding the number of visitsto 0).
In the expression of
E
given below(Proposition1), animportantrole is played by the following term,whih enodes the steps ofS
:P (u) = X
s∈S
ω s u s ,
(3)where
u
isanewindeterminate. ThisisaLaurentpolynomialinu
withoeientsin
K
. Ifmin S = − b
, we deneK(u) = u b (1 − tP (u)) .
(4)This isnowapolynomialin
u
withoeientsinK [t]
. Ifmax S = a
, thispolyno-mialhas degree
a + b
inu
. It hasa + b
roots, whih are frational Laurent series(Puiseuxseries)in
t
withoeientsinK
,analgebrailosureofK
. (Wereferthereaderto[30, Ch. 6℄ forgeneralitieson the rootsof apolynomialwith oeients
in
K[t]
.) Exatlyb
of these roots, sayU 1 , . . . , U b, are nite at t = 0
. These roots
are atually formal power series in
t 1/b, and the rst term of U i is ξ i (tω −b ) 1/b,
ξ i (tω −b ) 1/b,
where
ξ
isab
throotof unity. Inpartiular, theseb
series are distint,and vanishat
t = 0
. We all them the small roots ofK
. Thea
other roots,U b+1 , . . . , U a+b,
are the large roots of
K
. They are Laurent series int 1/a, and their rst term is
ct −1/a, forsome c 6 = 0
. Note that K(u)
fators as
c 6 = 0
. Note thatK(u)
fators asK(u) = u b (1 − tP (u)) = − tω a a+b
Y
i=1
(u − U i ) ,
so thatthe elementary symmetrifuntions of the
U i'sare:
e i ( U ) = ( − 1) i ω a−i
ω a − 1 tω a
χ a=i
,
(5)with
U = (U 1 , . . . , U a+b )
. We refer to [30, Ch. 7℄ or [23℄ for generalities on sym- metri funtions.2.1. Unbounded exursions
At least three dierent approahes have been used to ount exursions. The
rst one generalizes the fatorization of Dyk paths mentioned at the beginning
ofthe introdution. Ityieldsasystemofalgebraiequationsdening
E
[1,15, 21,22, 24℄. The fatorization diers from one paper to another. To our knowledge,
the simplest, and most systematione, appears in [15℄.
A seond approah [17℄ relies on a fatorization of unonstrained walks taking
their steps in
S
, and on a related fatorization of formal power series. The ex- pression ofE
that an be derived from [17℄ (by ombining Proposition 4.4 and the proof of Proposition 5.1) oinides with the expression obtained by the thirdapproah, whih is based on a step by step onstrution of the walks [6, 5℄. This
expression of
E
is given in (6) below. We repeat in Setion 3 the proof of (6)published in[6℄, asit willbe extended laterto ount bounded exursions.
Proposition 1. The generating funtion of exursions is algebrai over
K (t)
ofdegree at most
d a,b = a+b a
. It an be written as:
E = ( − 1) b+1 tω −b
b
Y
i=1
U i = ( − 1) a+1 tω a
a+b
Y
i=b+1
1 U i
,
(6)where
U 1 , . . . , U b (respetively U b+1 , . . . , U a+b) are the small (respetively large)
roots of the polynomial K(u)
given by (4). The quantity dened by
K(u)
given by (4). The quantity dened byD(t, z) = Y
I⊂Ja+bK, |I|=a
(1 + ( − 1) a ztω a U I ) ,
(7)with
Ja + bK = { 1, 2, . . . , a + b }
andU I = Y
i∈I
U i ,
is a polynomial in
t
andz
with oeients inK
, of degreed a,b in z
, satisfying
D(t, E) = 0
.
One the expression (6) is established, the other statements easily follow. In-
deed,theseondexpressionof
E
showsthatD(t, E ) = 0
. Moreover, theexpressionof
D(t, z)
is symmetriin the rootsU 1 , . . . , U a+b, sothat its oeientsbelongto
K(t)
. More preisely, the form (5) of the elementary symmetri funtions of the
U i's shows that D(t, z)
is a Laurent polynomial int
. But the valuation of U i in t
D(t, z)
is a Laurent polynomial int
. But the valuation ofU i in t
is atleast
− 1/a
,and this impliesthatD(t, z)
is a polynomialint
.Clearly,thedegreeof
D(t, z)
inz
isd a,b = a+b a
. Thusthe exursiongenerating
funtion
E
has degree atmostd a,b. WeproveinSetion 6that D(t, z)
isatually
irreduible inthe two following ases:
• S = J − b, aK = {− b, . . . , a − 1, a }
andω −b , . . . , ω a are independentindeter-
• S = {− b, a }
withω −b = ω a = 1
anda
andb
oprime(two-stepexursions).As shown by Example2 below,
D(t, z)
is not always irreduible.An algebrai equation for
E
. As argued above,D(t, z)
is a polynomial int
and
z
that vanishes forz = E
. However, itsexpression (7)involves the seriesU i,
while one would prefer to obtain an expliit polynomial in
t
andz
. Reall thatthe series
U i are only known via their elementary symmetri funtions (5). How
an one ompute a polynomial expression of
D(t, z)
? The approahes based onresultants orGröbnerbases beomevery quikly ineetive.
In the generi ase where
S = J − b, aK
and the weightsω s are indeterminates,
K(u)
is the general polynomial of degreea + b
inu
, and the problem an berephrased asfollows: Take
n = a + b
variablesu 1 , . . . , u n,and expand thepolyno-
mial
Q(z) = Y
I⊂JnK, |I|=a
(1 − zu I )
(8)in the basis of elementary symmetri funtions of
u 1 , . . . , u n. For instane, for
a = 2
andb = 1
,Q(z) = (1 − zu 1 u 2 )(1 − zu 1 u 3 )(1 − zu 2 u 3 )
= 1 − z(u 1 u 2 + u 1 u 3 + u 2 u 3 ) + z 2 (u 2 1 u 2 u 3 + u 1 u 2 2 u 3 + u 1 u 2 u 2 3 ) − z 3 (u 1 u 2 u 3 ) 2
= 1 − ze 2 + z 2 e 3,1 − z 3 e 3,3 ,
while for
a = b = 2
,Q(z) = 1 − ze 2 +z 2 (e 3,1 − e 4 ) − z 3 (e 3,3 +e 4,1,1 − 2e 4,2 )+z 4 e 4 (e 3,1 − e 4 ) − z 5 e 4,4,2 +z 6 e 4,4,4 .
(9)
Using the standard notation for plethysm [30, Appendix 2℄, the polynomial
Q(z)
reads
Q(z) =
d a,b
X
k=0
( − z) k e k [e a ].
This shows that, inthe generiase, the problemof expressing
D(t, z)
asa poly-nomial in
t
andz
is equivalent to expanding the plethysmse k [e a ]
in the basis ofelementary symmetrifuntions, foran alphabetof
n = a + b
variables. Unfortu-nately, there is no general expression for the expansion of
e k [e a ]
in any standardbasis of symmetri funtions, and only algorithmi solutions exist [9, 10℄. Most
of them expand plethysms in the basis of Shur funtions. This is justied by
the representation-theoreti meaningof plethysm. Still,inour walk problem, the
natural basis is that of elementary funtions. We have used for our alulations
the simple platypus 1
algorithm presented in [5℄, whih only exploits the onne-
tions between power sums and elementary symmetri funtions. This algorithm
takes advantage automatially of simpliations ourring in non-generi ases.
For instane, when only two steps are allowed, say
− b
anda
, all the elementarysymmetri funtions of the
U i's vanish, apart from e 0 ( U )
, e a ( U )
and e a+b ( U )
. It
would be a shame to ompute the general expansion of
e k [e a ]
in the elementary1
basis,andthenspeializemostofthe
e ito0
. Theplatypusalgorithmdiretlygives
the expansion of
e k [e a ]
modulo the ideal generated by thee i, for i 6 = 0, a, a + b
.
Forinstane, when
a = 2
andb = 1
,Q(z) ≡ 1 − ze 2 − z 3 e 2 3 ,
while for
a = 2
andb = 3
,Q(z) ≡ 1 − ze 2 − 2z 5 e 2 5 + z 6 e 2 e 2 5 − z 7 e 2 2 e 2 5 + z 10 e 4 5 .
and for
a = 5
andb = 2
,Q(z) ≡ 1 − ze 5 − 3z 7 e 5 7 + 2z 8 e 5 e 5 7 − 2z 9 e 2 5 e 5 7 + z 10 e 3 5 e 5 7 − z 11 e 4 5 e 5 7
+ 3z 14 e 10 7 − z 15 e 5 e 10 7 + 2z 16 e 2 5 e 10 7 − z 21 e 15 7 .
From the above examples,one may suspet that, in the two-step ase, the oe-
ientof
z k inQ(z)
isalwaysa monomialin the e i. Goingbak to the polynomial
D(t, z)
, and given thate a ( U ) = ( − 1) a+1 tω a
and
e a+b ( U ) = ( − 1) a+b ω −b
ω a
,
this would mean that the oeient of
z k in D(t, z)
is always a monomial in t
.
This observation rst gave us some hope to nd (in the two-step ase) a simple
desription of
D(t, z)
and, why not, a diret ombinatorialproof ofD(t, E) = 0
.However, this nie patterndoesnot persist: for
a = 3
andb = 5
,the oeient ofz 16 in Q(z)
ontains e 6 8 and e 8 3 e 3 8.
e 8 3 e 3 8.
For the sake of ompleteness, let us desribe this platypus algorithm. Take a
polynomial
L(z)
ofdegreen
withonstantterm1,anddeneU 1 , . . . , U nimpliitly
by
L(z) =
n
Y
k=1
(1 − zU k ).
The algorithmgivesa polynomialexpression of
Q(z) = Y
|I|=a
(1 − zU I ) =
d
X
k=0
( − z) k e k [e a ]( U )
with
d = n a
and
U = (U 1 , . . . , U n )
. The only general identity that is needed isthe expansion of
e a in power sums. This an be obtained from aseries expansion
via
e a = [z a ] exp − X
i≥1
( − z) i i p i
!
= Φ a (p 1 , . . . , p a )
(10)for some polynomial
Φ a. The rest of the alulation also uses series expansions, and goes asfollows:
•
omputep i ( U )
for1 ≤ i ≤ ad
usingp i ( U ) = i[z i ] log(1/L(z))
,•
omputelog Q(z)
up to the oeient ofz d using
log Q(z) = − X
i≥1
z i
i Φ a (p i ( U ), p 2i ( U ), . . . , p ai ( U )),
(11)•
omputeQ(z)
up tothe oeient ofz d using Q(z) = exp(log Q(z))
.
Sine
Q(z)
has degreed
, the alulation is omplete. The identity (11) followsfrom(10) and
log Q(z) = − X
i≥1
z i i
X
|I|=a
U I i = − X
i≥1
z i
i e a (U 1 i , . . . , U n i ).
Given a set of steps
S
, withmax S = a
, one obtainsapolynomialexpression ofD(t, z)
by applying the platypus algorithmtoL(z) = X
s∈S
ω s
ω a
z a−s − z a tω a
.
If the output of the algorithm is the polynomial
Q(z)
, thenD(t, z) = Q(( − 1) a+1 tω a z).
Example 1: Two step exursions. The simplest walks we an onsider are
obtained for
S = {− b, a }
andω a = ω −b = 1
. Wealways assume thata
andb
areoprime.
If
b = 1
,Proposition1givesE = U/t
,whereU
istheonlypowerseriessatisfyingU = t(1+U a+1 )
. Equivalently,E = 1+t a+1 E a+1. Thisequationanbeunderstood
ombinatoriallyby lookingatthe rst visit of the walk at levels
a, a − 1, . . . , 1, 0
,and fatoring the walk at these points. Of ourse, a similar result holds when
a = 1
.If
a, b > 1
, it is still possible, but more diult, to write diretly a system ofpolynomial equations, based on fatorizations of the walks, that dene the series
E
. See forinstane[15,21,22,24℄. Itwouldbeinterestingtoworkout thepreiselinkbetween theomponentsof thesesystemsand theseries
U i. Toompareboth
types of results, take
a = 3
andb = 2
. On the one hand, it is shown in [15℄ thatE
is the rst omponent of the solutionof
E = 1 + L 1 R 1 + L 2 R 2 L 1 = L 2 R 1 + L 3 R 2
R 1 = L 1 R 2 L 2 = L 3 R 1
R 2 = tE L 3 = tE.
On the other hand, Proposition1 gives
E = − U 1 U 2 /t
,whereU 1 , U 2 are the small
rootsof
u 2 = t(1 + u 5 )
. The platypus algorithmgivesD(t, E) = 0
withD(t, z) = 1 − z + t 5 z 5 (2 − z + z 2 ) + t 10 z 10 .
(12)This polynomial isirreduible. Similarly,for
a = 4
andb = 3
,D(t, E) = 0
withD(t, z) = 1 − z + t 7 z 7 5 − 4 z + z 2 + 3 z 3 − z 5 + z 6
+ t 14 z 14 10 − 6 z + 3 z 2 + 5 z 3 − z 4 + z 5 + t 21 z 21 10 − 4 z + 3 z 2 + z 3 − z 4
+ t 28 z 28 5 − z + z 2 − z 3
+ z 35 t 35 .
(13)We prove in Setion 6 that, in the ase of two step walks,
D(t, z)
is always irre-duible. That is, the degreeof
E
is exatlya+b a
.
Example 2: Playing basket-ball with A. and Z. In a reent paper [2℄, the
authors onsider exursions with steps in
{± 1, ± 2 }
, where the steps± 2
havelength2ratherthan1. Theyuse fatorizationsofwalkstoountexursions(more
speially,exursions ofbounded height). Thisproblemtsinour frameworkby
hoosing
ω −2 = ω 2 = ω
andω −1 = ω 1 = 1
, and then speializingω = t
. Observethatthesmallrootsof
u 2 = t(ω+u+u 3 +ωu 4 )
,involvedinProposition1,speialize into the smallrootsU 1 and U 2 of u 2 = t(t + u + u 3 + tu 4 )
when ω
isset tot
. We
u 2 = t(t + u + u 3 + tu 4 )
whenω
isset tot
. Weobtain
E = − U 1 U 2 /t 2. The platypus algorithmyields
D(t, z ) = ¯ D(t, z)(1 + t 2 z) 2 ,
(14)where
D(t, z) = ¯ t 8 z 4 − t 4 1 + 2 t 2
z 3 + t 2 3 + 2 t 2
z 2 − 1 + 2 t 2
z + 1
(15)is the minimal polynomial of
E
. This fatorization is an interesting phenome- non, whih is not related to the unequal lengths of the steps. Indeed, the samephenomenon ours when
S = {± 1, ± 2 }
and all weights are 1. In this ase, onends:
D(t, z) = ¯ D(t, z)(1 + tz) 2
with
D(t, z) = ¯ t 4 z 4 − t 2 (2t + 1)z 3 + t(3t + 2)z 2 − (2t + 1)z + 1,
so thatthe exursiongenerating funtion has degree 4 again.
Thefatorization of
D(t, z)
isdue tothesymmetry ofthe setof steps. Foreahset
S
suhthatS = −S
andweightsω s suhthat ω s = ω −s,the polynomial P (u)
P (u)
given by(3)issymmetriin
u
and1/u
. Inpartiular,a = b
. Thisimpliesthatthesmallandlargerootsof
1 − tP (u)
anbegroupedbypairs:U a+1 = 1/U 1 , . . . , U 2a = 1/U a. In partiular, if a
is even, the polynomial D(t, z)
given by (7) ontains the
fator
(1 + tω a z)
atleasta/2 a
times. Inthe basket-ballase (
a = 2
),this explainsthe fator
(1 + tz) 2 ourring in D(t, z)
. More generally, we prove in Setion 7
that if
S
is symmetri, with symmetri weights, then the degree ofE
is at most2 a, where a = max S
.
2.2. Exursions of bounded height
We now turn our attention to the enumeration of exursions of height at most
k
. Theseare walks onanite diretedgraph, sothatthe lassialtransfer-matrix method applies2
. The verties of the graph are
0, 1, . . . , k
, and there is an edgefrom
i
toj
ifj − i ∈ S
. The adjaenymatrix of this graph isA (k) = (A i,j ) 0≤i,j≤k
with
A i,j =
ω j−i if j − i ∈ S ,
0
otherwise. (16)2
In language theoreti terms, the words of
S ∗
that enode these bounded exursions areBy onsidering the
n
thpower ofA (k), it is easy to see [29, Ch. 4℄ that the series
E (k) ounting exursions of height at most k
is the entry (0, 0)
in (1 − tA (k) ) −1.
k
is the entry(0, 0)
in(1 − tA (k) ) −1.
The translational invarianeof our step system gives
E (k) = F k F k+1
where
F 0 = 1
andF k+1 is the determinant of 1 − tA (k). The size of this matrix,
k + 1
, grows with the height.
k + 1
, grows with the height.As was already observed in [3℄, the series ounting walks onned ina strip of
xedheightanalsobeexpressedusingdeterminantsofsize
a+b
,wherea = max S
and
− b = min S
. However, the expressionsgiven inthe aboverefereneareheavy.A dierent route yields determinants that are Shur funtions in the series
U i
(reall that these series are the roots of the polynomial
K(u)
given by (4)). Thiswasshown in[7℄forthe enumerationof ulminatingwalks. Thease ofexursions
is even simpler,as itonly involves retangular Shur funtions.
Let us reall the denition of Shur funtions in
n
variablesx 1 , . . . , x n. Let
δ = (n − 1, n − 2, . . . , 1, 0)
. For any integer partitionλ
with at mostn
parts,λ = (λ 1 , . . . , λ n )
withλ 1 ≥ λ 2 ≥ · · · ≥ λ n ≥ 0
,s λ (x 1 , . . . , x n ) = a δ+λ
a δ
,
witha µ = det x µ i j
1≤i,j≤n . (17)
Proposition 2. The generating funtion of exursions of height at most
k
isE (k) = F k
F k+1
= ( − 1) a+1 tω a
s k a ( U ) s (k+1) a ( U )
where
U = (U 1 , . . . , U a+b )
is the olletion of roots of the polynomialK(u)
givenby (4), and
F k+1 = det(1 − tA (k) )
whereA (k) is the adjaeny matrix (16). In
partiular,
F k = ( − 1) k(a+1) (tω a ) k s k a ( U ).
(18)This proposition is proved in Setion 4 in two dierent ways. In Setion 5,
we derive from the Shur expression of
F k that these polynomialssatisfy a linear reurrene relation. Equivalently, the generating funtion
P
k F k z k
is a rationalfuntion of
t
andz
.Proposition 3. The generating funtion of the polynomials
F k is rational, and
an be written as
X
k≥0
F k z k = N (t, z) D(t, z)
where
D(t, z)
isgivenby (7), andN(t, z)
has degreea+b a
− a − b
inz
. Moreover,D(t, E ) = 0
andN (t, E) 6 = 0.
In other words, the sequene
F k satises a linear reurrene relation of the
form (1), of order
d a,b = a+b a
, valid for
k > a+b a
− a − b
(withF i = 0
fori < 0
). This proposition follows fromProposition 4 (Setion 5),whih deals withthe generating funtion of retangularShur funtions of height
a
: forsymmetrifuntions in
n
variables,X
k
s k a z k = P (z)
Q(z)
(19)where
Q(z)
is given by (8)and has degreen a
,while
P (z)
has degreen a
− n
.Computational aspets. We have shown in Setion 2.1 that, given the step
set
S
, the polynomialD(t, z)
an be omputed via the platypus algorithm. Oneway to determine the numerator
N (t, z)
is to omputeF k expliitly (e.g. as the
determinant of
(1 − tA (k) )
) fork ≤ δ := a+b a
− a − b
, and then to omputeN (t, z) = D(t, z) P
k F k z k
up tothe oeientofz δ.
In the generi ase, omputing the generating funtion of the polynomials
F k
boils down to omputing the generating funtion (19). As disussed above, the
platypus algorithm an be used to determine
Q(z)
in terms of the elementarysymmetrifuntions. In order to determine
P (z)
, we express the Shur funtionss k a, for k ≤ δ := n a
− n
, in the elementary basis. This an be done using thedualJaobiTrudiidentity(see Setion5fordetails). Onenallyobtains
P (z)
byexpanding the produt
Q(z) P
k s k a z k
in the elementary basis up to orderδ
. Forinstane, for
a = b = 2
,X
k≥0
s k a z k = 1 − z 2 e 4
Q(z) ,
where
Q(z)
is given by (9). More values ofP (z)
are given in Setion7.2. Let usnowrevisit the examples of Setion2.1.
Example1: Twostepexursions. When
S = { a, − 1 }
,onehasD(t, z) = 1 − z+
t a+1 z a+1. ThepolynomialsF k satisfythereursion F k = F k−1 − t a+1 F k−a−1,whih
F k = F k−1 − t a+1 F k−a−1,whih
an be understood ombinatoriallyusing Viennot's theory of heaps of piees [33℄.
Viathistheory,
F k appears asthegenerating funtionoftrivialheaps ofsegments
oflength
a
onthelineJ0, kK
,eahsegmentbeingweightedby− t a+1. Thereursion
is valid for
k ≥ 1
, withF 0 = 1
andF i = 0
fori < 0
. The generating funtion ofthe
F k's is
X
k≥0
F k z k = 1
1 − z + t a+1 z a+1 .
When
a = 3
andb = 2
, the minimalpolynomialof the exursion seriesE
is givenby (12) and the generating funtion of the polynomials
F k is found to be
X
k≥0
F k z k = 1 + t 5 z 5
1 − z + t 5 z 5 (2 − z + z 2 ) + t 10 z 10 .
For
a = 4
andb = 3
, we refer to (13) for the minimal polynomialD(t, z)
ofE
,and
X
k≥0
F k z k = 1 + t 7 z 7 (4 + z 3 + z 4 ) + t 14 z 14 (6 + z 3 ) + 4 t 21 z 21 + t 28 z 28
D(t, z) .
Example 2: Basket-ball again. For
S = {± 1, ± 2 }
withω −2 = ω 2 = t, ω −1 = ω 1 = 1
,X
k≥0
F k z k = 1 − t 2 z
(1 + t 2 z) (1 − z(1 + 2t 2 ) + z 2 t 2 (3 + 2t 2 ) − z 3 t 4 (1 + 2 t 2 ) + z 4 t 8 ) .
The denominator is not irreduible. Its seond fator is the minimal polynomial
of
E
,see (15). Moreover, omparingto(14) shows thatN (t, z )
andD(t, z)
haveafator
(1 + t 2 z)
inommon. Asimilar phenomenon ours forS = {± 1, ± 2 }
withω s = 1
for alls
. In this ase,X
k≥0
F k z k = 1 − tz
(1 + zt) (1 − z (1 + 2 t) + t (2 + 3 t) z 2 − t 2 (1 + 2 t) z 3 + z 4 t 4 ) .
Again, the minimalpolynomialof
E
isthe seond fator ofthe denominator,andN (t, z)
andD(t, z)
have afator(1 + tz)
inommon.3. Enumeration of unbounded exursions
Hereweestablishtheexpression(6)oftheexursiongeneratingfuntion
E
. Theproof is based ona step-by step onstrution of non-negative walks with steps in
S
, and on the so-alled kernel method. This type of argument is by no meansoriginal. The proof that we are going topresent an be found in [6, Example 3℄,
then in [5℄, and nds its origin in [20, Ex. 2.2.1.4 and 2.2.1.11℄. The reason why
we repeat the proofis beause itwillbe adapted inSetion4 toountexursions
of bounded height.
Let
W
be the set of walks that start from 0, take their steps inS
, and alwaysremain at a non-negative level. Let
W (t, u)
be their generating funtion, wherethe variable
t
ounts the length, the variableu
ounts the nal height, and eahstep
s ∈ S
is weighted byω s:
W (t, u) = X
(s 1 ,s 2 ,...,s n )∈W
ω s 1 · · · ω s n t n u s 1 +···+s n .
We often denote
W (t, u) ≡ W (u)
, and use the notationW h for the generating
funtion of walks of
W
endingat heighth
:W (t, u) = X
h≥0
u h W h where W h = X
(s 1 ,s 2 ,...,s n )∈W s 1 +···+s n =h
ω s 1 · · · ω s n t n .
A non-empty walk of
W
is obtained by addinga step ofS
at the end of anotherwalk of
W
. However, wemust avoidaddingastepi
toa walkending atheightj
,if
i + j < 0
. This givesW (u) = 1 + t X
s∈S
ω s u s
!
W (u) − t X
i∈S,j≥0 i+j<0
ω i u i+j W j .
Let
min S = − b
. Rewrite the above equation so as to involve only non-negative powers ofu
:u b (1 − tP (u))W (u) = u b − t
b
X
h=1
u b−h X
i∈S ,j≥0 i+j=−h
ω i W j ,
(20)with
P (u) = P
s∈S ω s u s .TheoeientofW (u)
isthekernelK(u)
oftheequation,
given in (4). As above, we denote by
U 1 , . . . , U b (respetively U b+1 , . . . , U a+b) the
roots of
K(u)
that are nite (respetively innite) att = 0
. For1 ≤ i ≤ b
, theseries
W (U i )
iswell-dened (itisaformalpowerseries int 1/b). The left-handside
of (20) vanishes for
u = U i, with i ≤ b
, and so the right-hand side vanishes too.
Butthe right-handside isapolynomialin
u
,ofdegreeb
,leadingoeient1,andit vanishesat
u = U 1 , . . . , U b. This gives
u b (1 − tP (u))W (u) =
b
Y
i=1
(u − U i ).
Asthe oeientof
u 0 inthe kernel is− tω −b, settingu = 0
inthe aboveequation
u = 0
inthe aboveequationgives the generating funtion of exursions:
E = W (0) = ( − 1) b+1 tω −b
b
Y
i=1
U i .
This is the rst expression in(6). The seond follows using
U 1 · · · U a+b = ( − 1) a+b ω −b /ω a (21)
(see (5)).
Remark. There exists an alternative way to solve (20), whih does not exploit
the fat that the right-hand side of (20) has degree
b
inu
. This variant will beuseful in the enumeration of bounded exursions. Write
Z −h = X
i∈S,j≥0 i+j=−h
ω i W j ,
so thatthe right-handside of (20) reads
u b − t
b
X
h=1
u b−h Z −h .
This term vanishesfor
u = U 1 , . . . , U b. Hene the b
series Z −1 , . . . , Z −b satisfy the
following system of
b
linearequations: ForU = U i,with 1 ≤ i ≤ b
,
b
X
h=1
U b−h Z −h = U b /t.
Inmatrix form,we have
MZ = C /t
,whereM
isthesquare matrixof sizeb
givenby
M =
U 1 b−1 U 1 b−2 · · · U 1 1 1 U 2 b−1 U 2 b−2 · · · U 2 1 1
.
.
.
.
.
.
U b b−1 U b b−2 · · · U b 1 1
,
Z
is the olumn vetor(Z −1 , . . . , Z −b )
, andC
is the olumn vetor(U 1 b , . . . , U b b )
.The determinant of
M
is the Vandermonde inU 1 , . . . , U b, and it is non-zero be-
ausethe
U iaredistint. WeareespeiallyinterestedintheunknownZ −b = ω −b E
.
Applying Cramer's rule to solve the above system yields
Z −b = ( − 1) b+1 t
det(U i b−j+1 ) 1≤i,j≤b
det(U i b−j ) 1≤i,j≤b
.
The two determinantsoinide, up toa fator
U 1 . . . U b,and wenally obtain
E = Z −b
ω −b
= ( − 1) b+1 tω −b
U 1 · · · U b .
4. Enumeration of bounded exursions
AsarguedinSetion2.2,thegeneratingfuntionofexursions ofheightatmost
k
isE (k) = F k
F k+1
,
(22)where
F k+1 = det(1 − tA (k) )
andA (k) is the adjaeny matrix (16) desribing
the allowed steps in the interval
J0, kK
. In order to prove Proposition 2, it re- mains to establish the expression (18) of the polynomialF k as a Shur funtion
of
U 1 , . . . , U a+b. We give two proofs. The rst one uses the dual JaobiTrudi
identity to identify
F k as a Shur funtion. The seond determines E (k) in terms
of Shur funtions via the kernel method, and the Shur expression of
F k then
follows from(22) by indution on
k
(given thatF 0 = 1
).First proof via the JaobiTrudi identity. The dual JaobiTrudi identity
expresses Shurfuntionsasadeterminantinthe elementarysymmetrifuntions
e i [30, Cor. 7.16.2℄: forany partitionλ
,
s λ = det
e λ ′ j +i−j
1≤i,j≤λ 1 ,
where
λ ′ isthe onjugateofλ
. Applythisidentitytoλ = (k + 1) a. Thenλ ′ = a k+1
λ ′ = a k+1
and
s (k+1) a = det J (k) with J (k) = (e a+i−j ) 1≤i,j≤k+1 .
Now,speializethistosymmetrifuntionsinthe
a+b
variablesV = (V 1 , . . . , V a+b )
where
V i = − U i foralli
. By(5),the elementarysymmetrifuntions oftheV i are
e i ( V ) = ω a−i
ω a − 1 tω a
χ i=a = − 1 tω a
(χ i=a − tω a−i ) .
This shows that the matrix
J (k) oinides with − (1 − tA (k) )/(tω a )
, so that
s λ ( V ) = ( − tω a ) −(k+1) F k+1 = ( − 1) a(k+1) s λ ( U ),
sine
s λ is homogeneous of degree a(k + 1)
. This gives the Shur expression of
F k+1.
Seond proof via the kernel method. We adapt the step by step approah
of Setion 3 to ount exursions of height at most
k
. LetW (k) (t, u) ≡ W (k) (u)
be the generating funtion of non-negative walks of height at most
k
. As before,weountthemby theirlength(variable
t
) andnalheight(u
)withmultipliative weightsω s on the steps. We use notations similar to those of Setion 3. When
onstruting walks step by step, we must still avoid going below level0, but also
above level
k
. This yields:W (k) (u) = 1 + t X
s∈S
ω s u s
!
W (k) (u) − t X
i∈S,j≥0 i+j>k
ori+j<0
ω i u i+j W j (k) ,
or,with
min S = − b
,u b (1 − tP (u))W (k) (u) = u b − t
k+a
X
h=k+1
u b+h Z h (k) − t
b
X
h=1
u b−h Z −h (k) ,
(23)where
Z h (k) = X
i∈S,j≥0 i+j=h
ω i W j (k) .
The series
W (k) (u)
isnowapolynomialinu
(withoeientsinthering of powerseries in
t
). This impliesthat any rootU i of the kernel K(u) = u b (1 − tP (u))
an
be legally substituted for
u
in (23). The right-hand side and the left-hand sidethen vanish, and provide a system of
a + b
linear equations satised by theZ h:
For
U = U i, with 1 ≤ i ≤ a + b
,
k+a
X
h=k+1
U b+h Z h (k) +
b
X
h=1
U b−h Z −h (k) = U b /t.
In matrix form,wehave
M (k) Z (k) = C /t
,whereM (k) isthe square matrix of size
a + b
given by
M (k) =
U 1 a+b+k U 1 a+b+k−1 · · · U 1 b+k+1 U 1 b−1 U 1 b−2 · · · 1
U 2 a+b+k · · · · · · 1
.
.
.
.
.
.
U a+b a+b+k U a+b a+b+k−1 · · · U a+b b+k+1 U a+b b−1 U a+b b−2 · · · 1
,
Z (k) is the olumn vetor (Z k+a (k) , . . . , Z k+1 (k) , Z −1 (k) , . . . , Z −b (k) )
, and C
is the olumn
vetor