<<

hrtl Cptr Sn ELSEVIER eoeica Comue Sciece 1 (1995 3-5

Mellin transforms and asymptotics: Harmonic sums

Philippe Flajolet*, Xavier Gourdon, Philippe Dumas INRIA Rocquencourt, B.P. 105, 78153 Le Chesnay Cedex, France

eicae o o Ku a G e ui o ei ioeeig woks o Mei asoms a comiaoics

Abstract

is suey eses a uiie a esseiay se-coaie aoac o e asymoic aaysis o a age cass o sums a aise i comiaoia maemaics iscee oaiisic moes a e aeage-case aaysis o agoims I eies o e Mei asom a cose eaie o e iega asoms o aace a ouie e meo aies o amoic sums a ae sueosiios o ae aiay "amoics" o a commo ase ucio Is icie is a ecise coesoece ewee iiiua ems i e asymoic easio o a oigia ucio a siguaiies o e asome ucio e mai aicaios ae i e aea o igia aa sucues oaiisic agoims a commuicaio eoy

ie eoie e eioke ukioe u Iegae 1s em ceaes Geie weces mace aee Geiee e Aaysis mieiae eie

ama Mei

Introduction

Hjalmar Mellin (1854-1933, see [59] for a summary of his works) gave his name to the MeIlin transform that associates to a function f (x) defined over the positive reals the complex function f * (s) where

f * (s) = f(s1 dx. (1)

The change of variables x = e """ shows that the Mellin transform is closely related to the and the . However, despite this connection,

Coesoig auo Emai iieaoeiia

Eseie Sciece SSD1 3-3975(95-

4 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58

there are numerous applications where it proves convenient to operate directly with the Mellin form (1) rather than the Laplace-Fourier version. This is often the case in complex function theory (asymptotics of Gamma-related functions [64, 65]), in num- ber theory (coefficients of , after Riemann), in applied mathematics (asymptotic estimation of integral forms), and in the analysis of algorithms (harmonic sums introduced below). Thus, throughout this paper, we operate directly with the Mellin transform. The major use of the Mellin transform examined here is for the asymptotic analysis of sums obeying the general pattern

G(x) = E g(pk x), (2)

either as x 0 or as x -+ co. Following a proposal of [31], sums of this type are called harmonic sums as they represent a linear superposition of "harmonics" of a single base function g(x). Harmonic sums surface at many places in combinatorial mathematics as well as in the analysis of algorithms and data structures. De Bruijn and Knuth are responsible in an essential way for introducing the Mellin transform in this range of problems, as attested by Knuth's account in [56, p. 131] and the classic paper [16] which have been the basis of many later combinatorial applications. For instance, the analyses of the radix-exchange sort algorithm [56] and of the expected height of plane (Catalan) trees [16] involve the quantities 1 n n (2nk) S„ = E [i - (i - - and T„ = E d(k) (3) k= k = ( where d(k) is the number of divisors of k and (g is the binomial coefficient. These discrete quantities have continuous analogues that are harmonic sums

_k] G(x) E i and H(x) = E (ke - k (4) k= k= and elementary arguments establish that asymptotically S„ G(n) and T„ H (n). There are inherent difficulties in the asymptotic analysis of the discrete sums S„, 7'„ or their continuous analogues G(x), H (x). The divisor function in T„ and H (x) fluctuates heavily in a rather irregular manner (for instance it equals 2 if and only if k is prime). The quantities S„ and G(x) look more innocuous; however, a Mellin based analysis to be shown later reveals that they involve subtle fluctuations of a tiny amplitude, less than 10 -5 . Such behaviors preclude the use of elementary real asymptotic techniques in most sums of this type. Over the past 20 years, perhaps some 50 odd analyses of algorithms or related evaluations of parameters of combinatorial structures have involved in a crucial way a Mellin treatment of harmonic sums of sorts. We shall organize and detail in later sections several of these examples that can be broadly categorized, in terms of their range of applications, as follows. Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-5 5

— igia seacig meos ai-ecage so igia ees igia seac ees [5] a ei geeaiaios ike "ucke" ees [3] aicia ees [5 ] sui ees [] igia ees aiace a iase-i moes [5 79] ee maiuaio agoims eig a sack e [1] egise aocaio [5] Sig seacig a e occuece o aes i sigs [] (a eeeces eei wi aicaios o cay oagaio i iay aes [57] a aa comessio [ 7] Muiimesioa seacig oems [9] a Euciea macig [7] Eeie asig a gi ie meos [7 73] aae a isiue agoims ike e eae eecio ecique o [7] commuicaio oocos ase o e Caeaakis—syako sceme [ 39 3] aae soig ewoks ase o aces o—ee sceme [75] iie-a-coque agoims megeso [5] a geomeic maima iig [] aomie aa sucues ike ski iss [5] oaiisic esimaio agoims oaiisic couig [7] aaie samig [3] o aoimae couig [ 71] I may cases oay igia seac ees amoic sums ae a aeaie o e meo o "ice iegas" a is iscusse i eai esewee [3] Some ie accous o e meo ae gie i e ooks y oi [ ] Kem [51 11] Mamou [] a i e aook cae [] We oow ee e aciecue o e ioma suey [31] Geea oeies o e Mei asom ae usuay eae i eai i ooks o iega asoms ike ose o oesc [1] Wie [] o icmas [] Asymoic meos i coecio wi Mei asoms ae iscusse wii e coe o aie maemaics i eaises y aies [13] ige [17] a Wog [] I aicua ou wok is cose i sii o Wogs wo iscusses eesiey a aaogue o amoic sums i e om o "amoic iegas"

G( = 3 1(1cg(i1(k (5 o (I is coiuous case y a cage o aiaes oe may aways assume a k(K K Some o e may uses i ume eoy ae eae o isace i [ 7 ]

Principles. A mao use o Mei asom i asymoic aaysis is o esimaig asymoicay amoic sums ( e 1 1 ae e "amiues" e /k ae e "equecies" a g( is e "ase ucio" amoic sums euce o usua ouie seies we e ase ucio g( is ake o e a come eoeia g( = e a e equecies ae e ieges a --E- k 1 Mei asoms a e "seaaio" oey e Mei asom as eie i (1 coeges i a si o e come ae cae e uamea si y 6 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58

a direct change of variables, the Mellin transform of g (px) is p times the transform g*(s) of g(x). Thus, by linearity, the Mellin transform of a general harmonic sum is (conditionally) G* (s) = A (s)• g* (s), (6) where

A(s)= E1kk5 g* (s g (x) dx. It therefore factors as the product of the transform of the base function and of a generalized Dirichlet series: Mellin transforms applied to harmonic sums "separate" the amplitude—frequency pair from the base function. The inversion theorem for Mellin transforms is analogous to Fourier inversion, 1 f (x) = 2in— c_ f * (s) x' ds . (7)

There, the integration line 9i (s) = c should be taken in the fundamental strip of the Mellin transform. Basic functional properties of the Mellin transform are recalled in Section 1 (Theorem 1) and the separation property is expressed by Lemma 2 of Section 3. 2. Poles of transforms and asymptotics of originals. There is a fundamental corres- pondence between the of a function (either at 0 or co) and singularities of the transformed function. First and foremost, Mellin asymptotics crucially relies on of transforms. Consider the problem of asymptotically expanding f(x) as x 0 when f * (s) is known to be meromorphically continuable in C. The starting point is the inversion formula (7). The line of integration is then shifted to the left while taking residues into account. For instance when c > 0 and f * (s) has simple poles at the nonpositive integers, each simple pole at s = — m contributes a term proportional to et since Res ( f * (s) x"), _„, = Res( f * (s)),„ _ ,„ • xm (There Res(g(s)),--,„ denotes the residues of g(s) at s = so .) Thus, globally integrating along an infinite rectangle with sides 9i (s) = c and 91(s) = — M — 1/2 (M an integer) gives by the residue theorem

f (x) = E (Res f * (s)),, _ „, xin + 0 (x m + / ). (8) m=o Some additional decay condition on f*(s) is evidently necessary in order to justify (8). The computation outlined above reflects a general phenomenon: Poles of a Mellin transform are in direct correspondence with terms in the asymptotic expansion of the original function at either 0 or + cc. Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995) 3-58 7

o e asymoic eauaio o a amoic sum G(x) is icie aies o G* (s) oie e iice seies A (s a e asom g* (s) ae eac aayicay coiuae a o cooe gow is assumio is eaisic o may auay occuig ase ucios a o amiue a equecies gie y "aws" a ae egua eoug e uamea coesoece is eoe i Secio (eoems 3 a 4); is aicaio o amoic sums is see ou i Secio 3

Example. e moe o oeaio o Mei asymoics is we iusae y e amoic sum

G (x) = E - 1k (og k) e k (9 k = 1 I is case e cassica equaios 1 F(s) e s a C(s E O k= 1 eie e Gamma ucio o Eue a e iema ea ucio [5] us F(s) is e Mei asom o e ase ucio g( = e a a sime comuaio yies

s) A - = 111 -(1 - 2 1 ')C(s). ( s I is way e asom o G( is ou o e s = [ 1- G( si (og (2s) + (1 - 1 5 C (2s)] • F (s). (1 Aayicay e eeseaio (1 is easiy usiie we 9i (s) > 1, a coiio a esues simuaeousy asoue coegece o e iice seies a o e Mei iega I is kow a e Gamma ucio a e ea ucio ae o coiuae o e come ae F (s) as sime oes a e oosiie ieges wie C(s as oy a sime oe a s = 1. Aso F (s) eceases as aog eica ies wie (s is oy o moeae gow us goay G* (s) ges sma o s + ioo a e iegaio coou ca egiimaey e sie o e e o isace y sweeig e iega- io coou i e eica ie 91(s = - 5/ oe ges om e oes a s = - 1, -

G( = og - + c i + c + ( 51

wi c 1 = 7( - a c = - C ( - e is ew ems ae e eemie i a mae o secos wi e e o a comue agea sysem ike Mae a "kows" e easios o (s a F (s) a ois o iees ike C( = - C( = - og /7c

8 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995) 3-58

The computation is easily carried out to any order, and one finds _ G(x) — log (2,2k_ oc(-20xk. k=1 k Such an expansion might be obtained otherwise via a reduction to Euler—Maclaurin summation but application of this formula would be hampered by the alternation of sign and by the presence of the logarithmic factor. Mellin asymptotics is the approach of choice here.

The method is susceptible to a large number of variations. It is applicable each time the Dirichlet series of an amplitude—frequency pair is reducible to a standard function, like for instance

CO 1 1 (k 2 E = c (s). k=0 (2kY = 1 — 2 - s ' k = 1 In this way sums involving geometrically increasing frequencies or highly fluctuating amplitudes of an arithmetic nature can be analyzed effortlessly, see Sections 4-7. Another feature is that the correspondence between poles of transforms, and asymp- totic terms of originals fares both ways; this fact allows for base functions that admit of no explicit transform, like

g(x) = -2 as well as exotic Dirichlet series like

og k ( — 1) k A() = E k=1 /1 k ks This flexibility explains the power of the Mellin method in asymptotic analysis, which would apply for instance to a harmonic sum like

G(x) = E (_ 1)k (log k)e -k x k=1 The general methodology for analyzing such "implicit" sums is discussed in Section 8. Plan of the paper: Part I is devoted to the general functional and asymptotic properties of Mellin transforms. Our presentation assumes only rudiments of complex analysis (contour integrals, residue theorem) as found for instance in [81, 85]. The general framework is conveniently built on the Lebesgue integral [81, Ch. X] allowing dominated convergence properties, rather than on the Riemann integral. This distinc- tion is however somewhat immaterial as specific examples can be dealt with using Riemann integrals only. A number of examples related to combinatorial analysis and the analysis of algorithms are then presented in Part II. Finally, methods for dealing with wider classes of sums form the subject of Part III. Ph. Flajolet et al.1 Theoretical Computer Science 144 (1995) 3-58 9

PART I. MELLIN TRANSFORMS AND ASYMPTOTICS

In this part, we lay down the basic framework of Mellin asymptotics. Section 1 gives the basic functional properties of Mellin transforms and Section 2 discusses the fundamental correspondence between asymptotic properties of an original function and singularities of its transform. Section 3 develops the basic treatment of harmonic sums that form the subject of this paper. Section 4 briefly examines consequences for general summatory formulae.

1. Basic properties

We start by recalling the salient properties of the Mellin transform. The definition domain of a Mellin transform turns out to be a strip. We thus introduce the notation 1 for the oe si of complex numbers s = a + i such that a a

Definition 1. Let ( be a locally Lebesgue integrable over (0, + co). The Mei asom of ( is defined by +co [ (; 3] (s = 1 ( 5- dx (11)

The largest open strip a 13 in which the integral converges is called the uamea si

From the decomposition 1 ' =1 1 + , we see that a is the infimum of all A such that (A is integrable over (0, 1] and fl is the supremum of all such that (x x is integrable over [1, + co). Most functions have an order at 0 and co so that an existence strip for (s can be guaranteed.

Lemma 1. e coiios

( = (u ( = ( -o+ --• +

we u guaaee a (s eiss i e si — u —

Thus, existence of a Mellin transform is granted for locally integrable functions' whose exponent in the order at 0 is strictly larger than the exponent of the order at infinity. e asymoic om o ( a 0 cosais e emos ouay o e uamea si o (s; e asymoic om a + oo cosais e igmos

I e seque a ucios cosiee ae aciy assume o e ocay iegae 10 Ph. Flajolet et al.1 Theoretical Computer Science 144 ( 1995) 3-58 boundary. Monomials x`, including constants, thus do not have transforms under Definition 1. As the integral defining f *(s) depends analytically on the complex parameter s a Mellin transform is in addition analytic in its fundamental strip. For instance, the function f (x) = (1 + x) -1 is 0(x° ) at 0 and 0(x -1 ) at infinity, hence a guaranteed existence strip for f * (s) that is <0, 1>, which here coincides with the fundamental strip. In this case, the Mellin transform may be found from the classical Beta integral [85, p. 254] to be

f (s) = si is which is analytic in <0, I>, as predicted. The function g(x) = e satisfies

e x - 1, e - x = 0(x') for any b > 0 x-o* so that its transform, known as the [85, Ch. XII] +0,, F (s) = i e'xs--1 dx, (12) J o is a priori defined in <0, + co> and analytic there. Let ( be the (Heaviside-like) step function defined by H(x) = 1 if 0 x <1, H(x) = 0 if 1< x. (13) Then, 1 H* (s) = - , s E + co>. s

The complementary function 171(x) = 1 - H(x) satisfies H* (s) = - s 1 for s e <- co, 0>, where the fundamental strips corresponding to H and ii are disjoint.

Functional properties. Simple changes of variables in the definition of Mellin transforms yield a basic set of transformation rules summarized in Fig. 1 and Theorem 1 below.

Theorem 1 (Functional properties). Let f (x) be a function whose transform admits the fundamental strip

[f (Px); = tcss f*(s), s fl>

EEk Akf(mkx); = (Ek„ Ak • f * (s), itc finite, > O. di [x' f (x); s] f * (s + v), s E a i

Ef (x°); s] = —1 f* S E . P \P Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995) 3-58 11

( * (s 3

xv f (x) * (s + ik( s 0 ( p ) (1 / — * ( — s — 13 — a 1 3 ( fix) — (s a 3 > 0 lt- Ek Ak(ik (Ek ak (s Theorems 1, 5, Lemma 1

( log x —f * (S ds a 13

5 ( — s * (s a e = dx —f ( — (s — 1 * (s — 1 dx 1 1; ( dt — — (s + 1

Fig. 1. Basic functional properties of Mellin transforms. The table lists the original function, its Mellin transform, and the validity strips.

The most important rule is the rescaling rule that gives the transform of (/ux) as s (s via the change of variables x 1—* fix, provided that it > 0. By linearity of the transform, one also has

A Ji[E i(1,1kx); si=( E—) .f* (s k whenever k ranges over a finite set of indices. This formula can usually be extended to infinite sums that define the harmonic sums already mentioned in the introduction, see Lemma 1 and Theorem 5 below. For instance from

e' ( = = e - e- e-3 1 — ex

one finds 1 1 1 (s = F (s)• + • •• = F(s)C(s),

as long as 91(s) > 1, a condition that simultaneously entails absolute convergence of the Mellin integral of ( and of the sum defining the zeta function. 12 Ph. Flajolet et al. 1 Theoretical Computer Science 144 ( 1995 ) 3-58

A particular case of the rule for powers is

[ (x-1 ); s = —(— s

Since the function 1/x exchanges 0 and oo, this permits to limit consideration of asymptotic properties of a function to one of the two places 0, + oo. A useful application of the rule is for the transform of the Gaussian function,

[e - ; s] = (-s 2 2 which arises in estimates of sums involving binomial coefficients. The formal rule

(s = ( (log x) dx ds is readily justified analytically by "differentiation under the integral sign". (As com- plex-differentiable implies analytic, this also supports our earlier claim that Mellin transforms are analytic in the fundamental strip.) Thus

[ ( (log x); s] = —s (s

For instance, the transform of ( log x is - 1/s , the transform of e log x is (s Conversely, the rule for transforming the derivative of an original function is best enunciated in terms of the operator

= x — . dx Frequently the fundamental strips of ( and O ( have a nonempty intersection a 3 This is ensured in the common case where ( = 0(x) as x 0 and ( 0(x - ° as -■ co weee e ( satisfies the same estimates (i.e., the asymptotic form of the derivative of coincides with the derivative of the asymptotic form of Under this sufficient condition, with ( continuous and piecewise differentiable, integration by parts yields

+ + ef ( dx = [ (s];" - s ( dx, a 91(s 13 a e em [ (s E equals 0 for s e a 1 us

[ef (x) ; = - s (s This permits to deduce Mellin transforms of primitive functions by identification. For instance, from the transform of (1 + x) - 1 , we find I di [log (1 + x), s] = — 1 9(1 s sin is Ph. Flajolet et al. I Theoretical Computer Science 144 (1995) 3-58 13

e F (s + co e — 1 F (s) < — 1,

e - — 1 + F (s — —1

- 2 IF(1 s + co 1 C 1 + si is it og(1 + — 0> s si ICS 1 ( 11 + co (-1q (og ( —a + co Ice (s +

Fig. 2. A microdictionary of Mellin transforms.

I e same ei (s + 1 [e - — 1 s] = — F (s — 1 91(s a so o see ig oe o asoms o aayic ucios Aoug we o o make use o i ee ee is a uiu aoac o e eemiaio o asoms o aayic ucios a is ase o a cassica oo iega eeseaio ue o ake [3 5] A ake coou e is a sime oo a sas i e ue a-ae ea + co cices aou e oigi couecockwise a eus o + co i e owe a- ae I ( is aayic i some oe se a coais [ + co a saisies easoae gow coiios e akes omua os — 1 [ ( s] = (w( _w)1 0< a < (1 i si is o e oo is ase o sikig e coou owas e ea ais a usig e ac a i e iiiesima imi e iega is ( S 1 muiie y (e -i" — e i" = —i si is akes omua emis o eemie a asoms o aioa ucios as we as may asoms o meomoic ucios See [77 3 5]

Invrn Wi agai s = a + i a e cage o aiaes = e - Y e Mei asom ecomes a ouie asom

(s =f ( 5 - 1 = — --3 (e - Ye - "e -iY y - 14 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995) 3-58

This links the two transforms; hence it provides directly inversion theorems for Mellin transforms. We cite here two main versions, one related to Lebesgue integration, the other to Riemann integration.

Theorem 2 (Inversion). (i) Let f(x) be integrable with fundamental strip . If c is such that a < c < 13 and f* (c + it) is integrable, then the equality 1 c-Hoo f * (s) x' ds = f (x) 2ini e _ ;, holds almost everywhere. Moreover, if f (x) is continuous, then equality holds everywhere on (0, + co). (ii) Let f(x) be locally integrable with fundamental strip and be of bounded variation in a neighborhood of xo . Then, for any c in the interval (a, 13), 1 i r (- + (- im (s - s s = . 7.-.3 2iit c-i 2

Proof. See [18, 82, 86]. C7

Fig. 2 presents a few classical original-transform pairs ( f, f *). More can be found in standard tables of integral transforms [19, 66, 67] and in [61, 77].

2. The fundamental correspondence

There is a very precise correspondence between the asymptotic expansion of a function at 0 (and co), and poles of its Mellin transform in a left (resp. right) half-plane. Each individual term in such an asymptotic expansion of f(x) having the form xe (log x)k is associated to a pole of f *(s) at s = — c with multiplicity k + 1. The correspondence fares both ways. It is thus the basis of an asymptotic process: For estimating asymptotically a function F(x) - typically a harmonic sum -, determine its Mellin transform and translate back its singularities into asymptotic terms in the expansion of F(x). Let (s) be meromorphic at s = so : it admits near so a Laurent expansion k 0(s) = E ck (s — so (15) k —

The function Os) has a pole of order r if r > 0 and c _ 0 0, it is analytic (regular, holomorphic) at so if r = 0. A singular element of 0(s) at so is an initial sum of the Laurent expansion (15) truncated at terms of order 0(1) or smaller.

Definition 2 (Singular expansion). Let 0(s) be meromorphic in Q with 9' including all the poles of 0(s) in Q. A singular expansion of 0(s) in Q is a formal sum of singular elements of 0(s) at all points of 99. h ljlt t l I hrtl Cptr Sn 44 ( -8 15

When E is a singular expansion of Cs), in Q, we write E (s e 0).

For instance, one has

1 + 2 + 3(s + 1)1 s (s + 1) Ls + 1 s= -1 1 1 1 + — —1 + (s e < — 2, + 2> ), (16) s s L s = 1 where the point of expansion may be indicated whenever needed as a subscript to the corresponding singular element. The expansion (16) is a concise way of combining information contained in the Laurent expansions of the function 0(s) s - (s + 1)_ 1 at the three points of 99 = { — 1, 0, 1}:

s- 1 1_ 1 + = (S + ) 1 + 2 + 3(s + 1) + •-• , = s-■ -1

= - (S - 1 + 7 (S - 1 + • • • s-1

Example 1. The Gamma function. The Mellin transform of the function e - x defines the Gamma function,

F(s) = e - x x 3-1 dx, for 91(s) > 0. Integration by part permits to verify the well-known functional equation F(s + 1) = sT(s), which allow to extend F (s) to a meromorphic function in the whole of C. The function (s) satisfies F(1) = 1, and from the functional equation one has T (s + m + 1) T (s) = s(s + 1)(s + 2) • • -(s + m)

Thus, F(s) has poles at the points s = — m with m E NI, near which (-1' 1 F (s) m! s + m' so that the Gamma function admits

( — 1)k 1 F E (s e C) (17) k= k! s + k as singular expansion in the whole of C. Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58

(s

Order at 0: 0(xa) Leftmost boundary of f.s. at 9i(s) = —a Order at + co : 0(xb ) Rightmost boundary of f.s. at at 9i(s) — Expansion till 0(xv) at 0 Meromorphic continuation till 9i(s) — y Expansion till 0(x 5) at co Meromorphic continuation till 91(s) —(5

( —1k k Term xa (log x)k at 0 Pole with singular element (s + +1 ( —1)k k Term X' (log x)k at co Pole with singular element (s + ak +1

ig 3 e uamea coesoece asecs o e iec maig (eoem 3

Direct mapping. The function e - x has a Taylor expansion at x = 0:

— k e - = E (18) k= 0 k• There is a striking coincidence of coefficients in the Taylor expansion (18) of the original function e - x and in the singular expansion (17) of the transform (s expressed by the rule

1 1— s + k •

This is in fact a completely general phenomenon.

Theorem 3 (Direct mapping; see Fig. 3). e ( ae a asom (s wi oemy uamea si a (i Assume a ( amis as 0 + a iie asymoic easio o e om

( = E c k (og k + 0 (x 7 ) (19) (4, ke A

wee e saisy — y < — c a e k ae oegaie e (s is coiu- ae o a meomoic ucio i e si —y i wee i amis e sigua easio

( — 1k k f(- E (s ok+ 1 (s (kAe

(ii) Simiay assume a ( amis as + co a iie asymoic easio o e om (19 wee ow 13 — — y. e (s is coiuae o a meomoic Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58 17

function in the strip where

( — 1k k (s — E ck __ )k+1 (s e ). (4,k)e A kS

Thus terms in the asymptotic expansion of f (x) at 0 induce poles of (s) in a strip to the left of the fundamental strip; terms in the expansion at + co induce poles in a strip to the right.

Proof (see [18]). Since II( f (1 / x), s) = — ( f (x), — s), it suffices to treat the case (i) corresponding to x — 0. By assumption, the function g(x),

g(x) = f (x) — E C4 k x (log x)k , (4,k)eA satisfies g(x) = O(x). For s in the fundamental strip, a split of the definition domains yields 1 f * (s) = f (x) xs dx + (x) sdx o .1 1 1 = g (x) X 1 + E C4 k (og x)x x' dx o (4,k)e A

+ co f (x) xs dx (20)

In the last line of (20), the first integral defines an analytic function of s in the strip < —y, + oo > since g(x) = 0 (xv) as x 0; the third integral is analytic in < — co fl>, so that the sum of these two is analytic in < — y, /3>. Finally, straight integration expresses the middle integral as

( — 1k k E cA k (s k+1 (4,k)e A which is meromorphic in all C and provides the singular expansion of f * (s) in the extended strip.

In the case where there exists a complete expansion of f (x) at 0 (or co), the transform f * (s) becomes meromorphic in a complete left (or right) half-plane. This situation always occurs for functions that are analytic at 0 (or + cc

Example 2. The zeta function. We gave earlier the Mellin pair e' f (x) = f * (s) = F (s) (s) 1— e ' 18 Ph. Flajolet et al.1 Theoretical Computer Science 144 (1995) 3-58 with fundamental strip < co>. The function f(x) is exponentially small at infinity and it admits a complete expansion near x = 0,

CO k e = E k+ 1 ii e k= —1 (k + 1 which defines the Bernoulli numbers k == 1, B 1 = 1, etc. Thus, (s = (s)C(s) is meromorphic in the whole of C with singular expansion

F (s) (s) E k+1 1 (21) k = _ (k + 1)! s +

Therefore, ((s) is meromorphic in the whole of C (this is often proved by means of its functional equation). In addition comparison of the singular expansions of F(s) in (17) and r(s)(s) in (21) yields

1 — CO) = 1 C( ni) = m s — 1 — 1m + 1

Expl The transform of (1 + x) -1 . The function f(x) (1 + x) -1- has <0, 1> as its fundamental strip. The two expansions,

1 CO 1 _ E ( o (o+ a = + + „ 1+ n-1 translate into

" f E —1 (s < —co , I.>) and n=0 s + n ( 1)" f — E (sE +co s — n which is consistent with the known form,

— f * (s) = E (se C). sin is „ S n

The next example illustrates the fact the Mellin analysis may be applied to functions without explicit transforms.

Expl 4 A nonexplicit transform. The function f (x) = (cosh (x)) -1 / is exponenti- ally small at co and near 0 it satisfies 1 1 7 139 5473 = 1 + + + (1 cosh (x) 4 96 5760 645120 Ph. Flajolet et al. 1 Theoretical Computer Science 1 ( 1995 ) 3-58 19 so a is asom (s is meomoic i C a 1 1 7 1 139 1 5473 1 + + + s s + 9 s + 57 s + 51 s +

A geea icie aso eies om e oo o eoem 3 subtracting from a function a truncated form of its asymptotic expansion at either or co does not alter its Mellin transform and only shifts the fundamental strip. A isace is oie y e equaiies

s = F (s), S E + CO (e- —1 s) = F (s), s e — 1 ( eiousy esaisig usig iegaio y as a seciic oeies o e eoeia e oowig oo o ( emosaes e geea ecique o is aicua eame ake e ucio 1 F* (s) = - + I (e — 1s -1 + I es s i Cosieaio o o iegas sows a e ucio is meomoic i —1 + co Is esicio o + co is

F(s)= e - xxs

a is esicio o —1 is

(e - — 1)xs -1 1 ° is agume sows a e asoms o e a o e — 1 ae eemes o e same meomoic ucio i iee sis

Converse mapping. Ue a se o mi coiios a coese o e iec Maig eoem aso os e siguaiies o a Mei asom wic is sma eoug owas + i co ecoe e asymoic oeies o e oigia ucio

Theorem 4 (Coese maig; see ig 4). Let f (x) be continuous in 1 + co[ with Mellin transform f * (s) having a nonempty fundamental strip a i (i Assume that f* (s) admits a meromorphic continuation to the strip y for some y a with a finite number of poles there, and is analytic on 9l(s) = y Assume also that there exists a real number j e (cc, 13) such that f * (s) = 0(Isr) with r > 1 (3 when Is' -4 co in y s 1(s q. If f * (s) admits the singular expansion for s E y a 1 E C1k ( (ke A —

Ph. Flajolet et al. 1 Theoretical Computer Science 144 ( 1995 ) 3-58

f *(s) f (x)

oe a em i asymoic easio x - e o u si easio a ig o u si easio a + oo Muie oe ogaimic aco 1 ( e (og k a (s )k+1 k! 1 _ ig x (og k a co (s ok +1 k! oe wi imagiay a = o + it ucuaios = e1 og eguay sace oes ouie seies i og

ig 4. e uamea coesoece asecs o e coese maig (eoem a Cooay 1

then an asymptotic expansion of f (x) at is

1 k — f (x) = E (k— )! g ( — (ke A (ii Similarly assume that f * (s) admits a meromorphic continuation to for some y > # and is analytic on 91(s = y. Assume also that the growth condition (3 holds in <17, y> for some n E (a, 13). If f * (s) admits the singular expansion ( for s E y>, then an asymptotic expansion of f (x) at co is ok- 4 f (x) = — k ( ik 1 (og x)k + ( (kA

rf e oo makes use o e iesio eoem a o a esiue comuaio usig age ecagua coous i e eee si o f *(s), see ig 5 As eoe i suices o cosie case (i coesoig o coiuaio o e e e 9' e e se o oes i < fi>. Cosie e iega 1 J(T) = . f *(s)x - s s 1 7 wee C e(T) eoes e ecagua coou eie y e segmes

[11 — iT, + [ + iT, y + [y + iT, y — [y — iT, —

Assume a T is age a 13 (so 1 o a oes so E Y y Caucys eoem J (T) is equa o e sum o esiues wic is y a iec comuaio ( _ - 1 ( - s E k Res E d (og k (ke A s = ( k e A 4'k ( (k 1)! Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995) 3-58 1

7 + i + i

7

— iT — iT

ig 5 e coou C use i e oo o eoem os eese oes o f*(s).

e ow T es o + co e iega aog e wo oioa segmes is (T r ) a us es o as T cc. e iega aog e eica ie 91(s = a ies isie e uamea si es o e iese Mei iega wic coeges gie e ecease assumio o f* a equas f ( y e iesio eoem (sice f (x) is coiuous e iega aog e eica ie 9i (s) = y is oue y a quaiy o e om 1 y+i s I I s = (1 (1 + y = O( 7c i _ i „

gie e gow assumio o f * . us i e imi J( cc equas f (x) us a emaie em a is ( Y us e sum o esiues a is o e sae om i a og

I may cases f* (s) is meomoic i a comee e o ig a-ae a saisies e coiios o eoem ; e a comee asymoic easio o f * (s) esus Suc a easio may e eie coege o iege I iege e easio is y ecessiy oy asymoic I coege i may i some cases eese e ucios eacy u is cao e a geea eomeo eciae om e seies aoe as f ( a f (x) + (x) ae e same asymoic easios

a a co weee m( is a "a" ucio ike 3( = e ( +

A oo o a eac eeseaio equies a e emaie iegas aog eica ies e o eo; is ees a as eoug a uiom ecease o f*(s) aog eica ies 22 Ph. Flab/el et al. Theoretical Computer Science 144 ( 1995 ) 3-58

Example 5. The transform of (1 + x)'. Take v > 0, and consider the function

(s (v — s) ck(s) = (v) that is analytic in the strip <0, v>. The singular expansion to the left of 91(s) = 0 is

E ( — 1)k F (v + k — 1) 1 k=0 k! (v) (s + k) • The problem here is the behavior of the original function

1vi2+ico f (x) = )(s)x- ds 27E fv/2—ico as —■ e ecease o (s along vertical lines results from the decrease of the Gamma function. Thus, the conditions of Theorem 5 are satisfied. In this way, one finds, for any integer M,

( — 1)1` (v + k — 1) k m+1/2 f (x) = E + ( k=0 ( The series on the right-hand side is a truncation of the Taylor series of (1 + x)', by virtue of the binomial theorem. We have thus proved that f (x) = (1 + + vi (x) for a function w(x) that decreases at 0 faster than any power of x. Sharper estimates of inverse Mellin integrals show that the remainder integral tends uniformly to 0 when 0 < x < 1, so that the representation is in fact exact. We have thus found indirectly the Mellin pair

1(s (v — s) f (x) f * (s) = (1 + x)" (v)

Example 6. A classical divergent series. The function

0(s) = 1(1 s) . sin its is analytic in the strip <0, 1>. In 91(s) < 1, it admits the singular expansion

E (— n! 1 n=0 s + n which encodes for the original function the asymptotic expansion

CO f (x) E (—o n! x". n=0

Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58 23

In fact 4)(s) is the Mellin transform of the "harmonic integral" " e f (x) = dt 1 + whose consideration goes back to Euler.

Periodicities. A pole of at a point = o- + it with a nonzero imaginary part induces a term of the form

x - = x -a e -i logx

which contains an oscillating component that is periodic in log x with period 27c/t. Mellin transforms are precisely useful for quantifying many nonelementary fluctu- ation phenomena. In this context, there sometimes occurs a vertical line of regularly spaced poles (see Section 6). A direct extension of Theorem 4 allows for the presence of infinitely many poles in a finite strip.

Corollary 1. The conclusions of Theorem 4 remain valid assuming only a weaker form of the growth condition (23) along a denumerable set of horizontal segments 13(s)I = T ; where T— co.

Proof. Use the proof of Theorem 4 but restrict T to belong to the discrete set T; which, by the growth condition imposed, must avoid the poles of f * (s).

In particular regularly spaced poles of f * (s) along a vertical line correspond to a Fourier series in log x. For instance, simple poles of f* (s) at the xk = o- + 2ikn/log will arise from a component of the form (1 — /3 - s) -1 in f * (s). The corresponding residues rk induce for f (x) the infinite sum

+ E rk x -k = + x rk exp ( — 2iloc log B x), k Ez kEz where the sign is + for poles left of the fundamental strip (expansion at 0) and — otherwise (expansion at cc).

3. Harmonic sums

This section builds upon the functional properties of the Mellin transform and the fundamental correspondence to develop a framework adapted to the analysis of harmonic sums.

Definition 3 (Harmonic sums). A sum of the form

G(x) = E .1k g (itk x) (25) 24 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58

is called a harmonic sum. The ilk are the amplitudes, the ilk are the frequencies, and g(x) is called the base function. The Dirichlet series of the harmonic sum is the sum

A (s) = E Akik- s (26)

In this paper, the frequencies either decrease to zero or increase to co. By possibly considering G(1/x) and changing the base function accordingly, we may always reduce ourselves to the single case il k + co, which we assume in this section, unless otherwise stated. The Mellin transform of a harmonic sum factors, as already mentioned in the introduction, into a product of the Dirichlet series A (s) and of the transform g* (s) of the base function. This is true unconditionally for finite harmonic sums Elementary arguments provide a first extension to infinite sums.

Lemma 2. Assume that g(x) is bounded over any interval [a, b] c (0, + co), and that it satisfies g(x) = 0 (xv) when x 0 and g(x) = 0(x") when x + cc, with u > v. Assume that the Dirichlet series A (s) has a half-plane of absolute convergence 92(s) > a. that has a nonempty intersection z1 with the strip < —u, —v>. Then the harmonic sum G(x) of (25) is defined for all x in (0, + co). The transform G* (s) is well-defined in z1 where it factors as G* (s) -= A (s) • g* (s).

We recall that the theory of generalized Dirichlet series [41] guarantees that a Dirichlet series like A (s) has a half-plane of absolute convergence 91(s) > aa and a half-plane of simple convergence 91(s) > er, where

Proof. First consider the special case where g(x) is 0(1) at 0, is 0(x -1 ) at co, and A (s) convergence absolutely for 91(s) > — 6 for some 6 > 0. Then over (0, +oo), we have both I g (x)I < C/x and lg (x) I 0. Thus, one has

I G( 1 < • E I Ak I 9

by the assumption that A(0) converges absolutely. Consequently, G (x) = 0 (1) every- where and in particular at 0. By summation, G (x) is also 0(x -1 ) everywhere, and in particular as x + cc. By the dominated convergence theorem, G* (s) therefore exists in the strip <0, 1>. The general case reduces to the special case by normalizing g(x) and considering 4'(x) = x-ut(v-u)g(x 1 - o Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995 ) 3-58 25

Our treatment throughout this paper relies on the assumption that g* (s) and A (s) in Lemma 2 are continuable as meromorphic functions in regions of the complex plane larger than what their definitions imply, and additionally satisfy controlled growth conditions towards + i cc.

Definition 4. (i) A function 0(s) is said to be of fast decrease in the closed strip a ...C. 91(s) a if for any r > 0,

Cs = (1s1 as I s I —> co in the strip. (ii) A function is said to be of slow increase in the closed strip a -C. 91(s) a if for some r > 0, 0(s) = 0(1 s r ), as I .51 —> co in the strip.

The property of fast decrease means that 0(s) decays faster than any negative power of Is I. For instance, the function 7t/sin TES is of fast decrease in any finite closed strip since the complex exponential representation yields

it — 0(e s = o- + it, si is which exhibits an exponential decrease along vertical lines. A similar exponential decay holds for F (s) by the complex version of Stirling's formula [1, p. 257]:

y-1/ e — itito 0_ + co na + 27c t y (27) The property of slow increase holds for many Dirichlet series and, for a < 1, one has [83, p. 94]

+ it) = (1t1 1 ). (28) (Uniform versions of (27), (28) also exist, see the cited references.) The property of slow increase is also called "finite order". It means that 4)(s) is of at most polynomial growth in the strip. The function ((s) is bounded in any closed strip of the form [1 + E, M] and thus is of slow increase there. Classical theorems [83] that extend (28) near 91(s) = 1 show that it is of slow increase in any finite strip of the complex plane. The theorem below represents the basic paradigm for the analysis of harmonic sums. It presupposes that the Mellin transform of the base function is of fast decrease and the Dirichlet series of the harmonic sum is of moderate growth in an extended region of the complex plane. In the statement, only the abscissa of simple convergence is needed, a handy improvement for many applications. 26 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58

hr (amoic sums Consider the general harmonic sum G(x). Let the trans- form of the base function g* (s) have a fundamental strip

- the half-plane of convergence of A (s) intersects the fundamental strip of g*(s): a < 13 and let a' = ma (a cc ); - the functions g* (s) and A (s) admit a meromorphic continuation in a strip y fl> and are analytic on 91(s) = y, for some y a; - on the closed strip y (s (a + / the function g* (s) is of fast decrease and the function A(s) is of slow increase. Then the harmonic sum G(x) converges for all x > on ( + co An asymptotic expansion of G(x) as x till an error term 0 ( is obtained by termwise translation of the singular expansion of G* (s) = A (s)g* (s) according to the rule

A 1_ A ( —1)k - (og k (s _ k + 1 k!

rf is seec a aiay iegaio ascissa a in (a', 13) a ake some ao suc a a ao a e iesio eoem oies

1 +icc

- E Ang(tinx)=—,, E - g(s scs (9 n=1 zin —leo =1 ee is a we-kow ou o e gow o a (geeaie iice seies i ay ie a-ae sicy ieio o is sime coegece omai a eas C(Is + 1 o some cosa C, see [1 3-] om is we ae

E - g(s C(Isj + 1)• Ig*(s)l- (3 =1 wi emis o ay e omiae coegece eoem a esaises e coegece o G(x) eesse as a iese Mei iega 1 +ico G ( = A (s)g* (s) ds (31 _ c„ I aiio e ou (3 sows a G(x) is ( ° wee a was cose aiaiy i (a us e si is icue i e uamea si o G(x). e ue ou o ( aso os o a e aia sums E A g ( ktx) wic ae eeoe omiae y a iegae ucio oe ( + co us e omiae coegece eoem aies oce moe a yies

co N A G*(s) = lim E 2„ • g ( x) xs = im E -) • g* (s), N-0.0 5 =1 - co i i„ a is o say e uamea eaio G*(s) = A(s)g*(s). Ph. Flajolet et al.( Theoretical Computer Science 144 (1995) 3-58 27

The proof is now completed by a straight application of the Coese Maig eoem (Theorem 4). El

A symmetric result holds near x co, assuming now the meromorphic extensions to hold to the left of the fundamental strip; the sign is reversed due to the orientation of the contour. This discussion is summarized by the following informal statement.

Mellin summation formula. Ue e coiios o eoem 5,

E Ao(iik ± E Res (g(sA(s - s se

- o a easio ea 0, e sum is oe e se o oes o e e o e uamea si a e sig is +; - o a easio ea co e sum is oe oes o e ig o e uamea si a e sig is -

In addition, the relation (31) shows that G(x) is of C class since A(s g (s is of fast decrease so that derivation under the integral sign is permitted.

Example 7. amoic umes The function

[ 1 1 1 I k ( k1= k k + x i = k=1 k 1 + /k

satisfies (= where „ is the harmonic number. (It is closely related to (d/dx) log ( Its Mellin transform is

It (s = C(1 - s sin is

with fundamental strip < -1, 0> and singular expansion to the right of this funda- mental strip

1 y - E s S k=1 S — k • Thus (with a minus sign corresponding to the expansion at cc)

1 —11k 131 1 1 1 1 „ — log n + y + — + L - log + y + + 2n k k 2n 12n2 1 +

Generalized harmonic numbers can be analyzed in the same way, see [37, p. 300] for a table giving Ph. Flab/el et al. I Theoretical Computer Science 144 ( 1995 ) 3-58

Example 8. Stirling's formula. om e ouc ecomosiio o e Gamma ucio oe as

(x):= og ( + 1 — y = [ -c — og (1 +1] (se - +GO =1 is eame is simia i sii o e eious oe e Mei asom is

It e (s = C( s si It wi uamea si — —1 ee ae oue oes a s = —1, s = a sime oes a e osiie ieges

1 — y] [ 1 og 7 ( e * (s) 1 + + + E (s + 1 + 1 s S =1 n(s + n) ece Siigs omua 2 og ( — og (e - 17c + E n ( — 1 "

Example 9. Polylogarithms. e ucio

" e - " L(x)= E n =, is eae o oyogaims a ae eie o iege w y i( = z'1 w E I oe as L(x)= i(e - We assume is a w is a osiie iege w = k. e ucio k ( is a yica amoic sum wi asom (s) = C(s + k)r(s), ai i 91(s > 1 a eas e sigua easio oais om e sigua ea- sios o C(s) (sie a r(s):

((k — 1 E ( = n! s + n k-1

( _1k— - 1 k_i (S e —oo +co (k-1)!L(s+k-1)+ s+k— 1 e oue oe a s = k — 1 iuces a ogaimic aco a

_ - E (k — n) ( [ og + k-i] + (k — 1)! = n! k-1

Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58 29

e ig-a sie is a ioi oy a asymoic eeseaio ai as u ee e eeseaio is eac as see om uiom ous eiig om gow omuae o e Gamma a ea ucios ((7 ( We ae oaie i is way e Coe-agie eeseaio omua o oyogaims [5 37] We w is o a iege ee is o couece o siguaiies a accoigy e ogaimic em isaeas o isace

C - 11 (E_-- E + E ( 1„ =1 n=0 n!

Example 10. Modified theta functions. e sum

e - ( = E n= nw is eae o ea ucios e geea case ca e eae ike eoe u we esic aeio o w = 1 e case w = 1 aises i e aaysis o ue so see [5 19 a E 5-5] Oe as

ONs)=-1 F(-s )C(s+ 1 ee is a oue oe a s = a oes o r(s/2) ae e ee egaie ieges is gies e easio as 1 y 1 1 1 1 1 + e(s--[- s+ 2s J + 1 s + + s +

y 1 4 e i (x) 1°gx ± + 1 + + • e siuaio o eo ( is iee sice e oes o r(s/2) a e ee ieges ae cacee y e aues o e ea ucio C ( — = C ( — = • • • = us

j e ( = 04 — o ay M > e egeeae asymoic seies ca oy e asymoic

is as eame is eae o e moua asomaio o ea ucios (see aso oissos summaio omua i Secio a aious eae oms ae ee iesigae om e asymoic saoi y amaua e e ui Ku a Goe see [; 15 3; 3; 5 19] amaua iscusses some cieia a eai e eisece o iie easios [ C ] o simia ucios I geea e asece o siguaiies i a e a-ae iicaes a emiaig easio wi eoeiay sma eo em (I may acica siuaios esimaes o e eo em esu om ayig e sae oi meo o emaie iegas 30 Ph. Flajolet et al. 1 Theoretical Computer Science 144 ( 1995 ) 3-58

The two examples that follow are motivated by the two types of harmonic sums mentioned in the introduction. One involves strongly fluctuating amplitudes resulting though in a smooth global behavior. The other has geometrically increasing frequen- cies so that the Dirichlet series has a line of poles resulting, by Corollary 1, in an oscillating asymptotic behavior expressed by a Fourier series.

Example 11. A iiso sum The analysis of the height of trees (see the introduction) suggests considering the sum

( = E (k e - kx k=1 with (k being the number of divisors of k Given the equality

(k 2 =c (s k=1 i the Mellin transform of ( is

(s = (s C2 (s

with fundamental strip <1, + cc >. There are singularities at s = 1 s = 0, then at all the odd negative integers, so that

1 7 1 (C( — k — 1 2 1

D* (s)-- [(s — 12 ± s — 11 + s s= k- (2k + 1)! s + 2k + 1 .

This translates into the asymptotic expansion of ( as x .— 0:

1 (C( —2k — 1))2 k+1 ( — - ( — log x + y + — — 4 x k=0 (2k + 1)! Clearly sums of divisors can be treated in a similar way as their Dirichlet series are expressible in terms of the . Ramanujan discovered a number of related formulae later treated by Berndt and Evans using Mellin transforms [8]. From the proof of Theorem 5, what essentially matters is the aace between the growth of A (s and the decrease of g (s The asymptotic expansion remains valid as long as G (s is globally 0(s') for some r > 1 in the extended strip (the C character mentioned above may get lost, though). Also, in accordance with Corollary 1, it is sufficient that the decrease of G (s hold along a discrete set of horizontal segments. This permits to cope with situations involving infinitely many imaginary poles, corresponding to an oscillatory behavior.

Example 12. A ouy eoeia sum a eioiciies The prototype of harmonic sums with a fluctuating behavior is the function

G( = E e-k k= Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995) 3-58 31 wose eaio is soug as e Mei asom is

(s G (s = (s • E( (1 — s = _ k 1 — s ee ae iiiey may oes o A (s a e ois

ik7C k = og • e Gamma ucio eceases as as 3(s + co e iice seies A(s = (1 — - s_ says oue aog oioa segmes a ass i ewee oes a 13(s1 = (k + 1 i/og o k a iege us Cooay 1 o eoem aies ee e esiue o A (s is 1/(og y iue o eioiciy us

1 j 1 (3 — kI7 og s — k C) Goay e oes o G (s ae us a oue oe a sige oes iuce y A (s a e k a oes a e egaie ieges asaig o G ( yies

Y 1 1 ( — G ( = — og ( + + Q (og + E og n=i —

agai a eac eeseaio ee Q (og coeses e coiuio om e o-eo imagiay oes a eecs (3

1 1 Q (og = E r(x0x - x , =,,, E rock)e -2iknlog,x ioe-- k €1{} - - k E {} us ae e ogaimic em G ( coais a ucuaig em o oe (1 a is eesse as a ouie seies i og wi eici coeicies o a Gamma ye A eiey simia meo emis o eac ucuaios o sum ike

K ( = E (1 — e k k= we + oc see oosiio eow

We osee a I( + i /og 1 551 1 - a ue o e as ecease o (s aog imagiay ies e ucuaig ucio Q (og says oue y 1 - Suc miue ucuaios cosiue a commo eaue o may Mei aayses A cosey eae eame is aaye y ay (is ucio ( i [ 37] wo oes a amaua aie o oai a eemeay oo o e ime ume eoem ecause is agume egece ese iy "woes" aisig om imagiay oes 32 Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995) 3-58

4. Summatory formulae

What we call here an asymptotic summatory formula is a formula that gives the asymptotic form of a class of harmonic sums when either the amplitude-frequency pair stays fixed (and the base function is taken in a wide class of functions) or the base function stays fixed (and the amplitude-frequency pair varies). The generality afforded by Theorem 5 permits to deduce a large number of summatory formulae, a typical case being generalizations of the Euler-Maclaurin formula.

Euler-Maclaurin summation. The classical Euler-Maclaurin formula provides a full asymptotic expansion expressing the convergence of a Riemann sum to the corres- ponding integral. The expansion assumes the base function to be C and then involves the Bernoulli numbers. The formula has been extended by Barnes [6] and later revisited by Gonnet [36] in the case of certain functions singular at the origin.

Proposition 1 (Generalized Euler-Maclaurin summation). Let g(x) be such that

g(x) E ck k for some increasing sequence {ock } with occ, > - 1. Assume that g* (s) exists in - o 13> for some 13 > 1 and is meromorphically continuable to a function of fast decrease in any finite strip of < - co, 13>. Then

G(x) E--- E g(kx) - g (x) dx + E ckC( - cek /k k=1 .- 0 x k =0

Proof. The transform G* (s) is g* (s) c(s) with residue at s = 1 that equals g* (1), itself the integral of g (x). By Theorem 3, there are also poles of g* (s) and G* (s) at each - ock . The result then follows by Theorem 5 after taking into account the slow increase of (s) in finite strips.

Example 13. A sum with half-integer exponents. The sum 1 s = k=E 1 10 1 (n + k) 31 is an Euler-Maclaurin sum since 1 1 1 S„ = — G (-- ) where G(x) E (kx), (x) x11(1 + 31 k= 1 The expansion of g(x) near x = 0 involves half-integer exponents:

CO k + 1\ g(x) E ck k - 11 ck = ( -1)k (k 02-2k ( k= k )* Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995) 3-58 33

I aiio g (s as uamea si 1/ 5/ a a eici asom (eiig om e Eueia ea iega o om a eaie eame (s - 1/1( - s g(s= (s -1 - s = (3/ wic guaaees is as ecease us a sime comuaio yies 1 S„ - + E ck c( -k +1 k+ 3/ k=

eae eames ike n 1 E k=1 k( - k moiae y e aaysis o ieoaio sequeia seac ae iscusse i [3] a auae i [37 9] (e aaysis is owee moe eicae wi g(s oy eceasig ike s -11

Example 14. A eoeia sum wi squae oos e ucio

G(= E e •/;;x n= amis e easio 2 1 ce _ G( - - + E c(-- k .-o x k=i k sice is Mei asom is (sC(s/

May simia summaoy omuae ca e gie ue e assumios o oosi- io 1 ike

E —ok - i g (kx)— E cko — 1+ "C( - ck k k=1 k=

1 1 E (og k g (k- og - g ( + g ( (og k=1

CO + E ckc( —cox". k= o isace amaua gies []

k og E e - IC 1 (og - y + og /7( + ( 3 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58

Several examples of Ramanujan have been treated systematically by Berndt and Evans using Mellin transforms [9]. Functions with logarithmic singularities at 0 can also be dealt with in this way; see the papers by Barnes [6] and Gonnet [36] for alternative approaches. oe o oma Mei aayses In this range of problems, it is of interest to observe that asymptotic series follow omay from an exchange of summations in the harmonic sum, with the Dirichlet series coming out as a purely divergent series (!). This observation often constitutes a useful heuristic in the discovery of possible summation formulae then rigorously established by Mellin transforms. An illustration is provided by the formula

G( = E — g((k + 1 — E ckri( —ock ik k=1 k= where

" (1k (s = E k1 (2k + 1)s is an entire "L-function" associated with a character modulo 4, see [12]. In effect, one has formally

G(x) E — E c, k (2m + 1) k )

= E ck cck — ok(2m + k m=0

E Co ( - ak k k= The Mellin transform justifies such formal manipulations while "explaining" the occurrence of additional terms like the integral in the Euler—Maclaurin summation.

Dyadic sums. Sums involving powers of 2, of the type

Gw ( = E 2 g k o are particularly frequent in the analysis of algorithms and we call them yaic sums. In applications x usually represents a large parameter.

Proposition 2 (Dyadic sums). e g( e suc a

g( E dk x - k

- c° k= Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995) 3-58 35

g for some increasing sequence {fik } with 13 > 0. Assume that (s) exists in

12ikrc _ ikog dk -Ok GO ( E g kEE 9* k 0 log 2 ( log 2 ) e k= 1 — k

Proof. The transform of G o (x) is g* (s) (s) = 1 — 2s and it is readily subjected to Theorem 5 and Corollary 1.

Proposition 2 is characteristic of a large number of similar summation formulae. Confluence of singularities will in general induce logarithmic factors.

Example 15. The standard dyadic sum. Consider the analysis of Go (x) when now g(co) 0 0 and

g (x) E dk x - k. -"- c° k=

(Thus do = g(co) 0 0.) There is now a double pole of Gt (s) at s 0 so that a two-term expansion is required for g* (s) there. By the fundamental splitting, one has ( ) f:1 g* (s) = + g (x) dx + (g (x) — g(co))xs - 1 dx,

so that

g (co goo dx (goo goo dx g* (s) = + [g] + 0(s) where y [g] = o The constant y[g] is called the Euler constant of g since y[e - x — 1] = — y. Thus,

k G(x) g(oo) log x + g () + + P(log x) + E log 2 k=1 1 —

for an explicitly determined periodic function (• This example illustrates in passing the general technique for determining terms of the series expansion of a Mellin transform outside of its convergence strip by adapting the technique of subtracted singularities of Theorem 3.

Poisson's summation formula. There is a fruitful connection between the classical Poisson summation formula [43, Vol. 2, p. 271] + 1 " (2n + E f (kx) = — E f — ) , I(u) = f (t)e iu du, (33) k= 3 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58

e ucioa equaio o e iema ea ucio a oe omuae o aaysis ike e moua asomaio o ea ucios (is was is osee y iema i is oigia memoi o e aia acio easio o e coage a coecio ca e ase o e Mei asom o we-cose amoic sums We oy oie ee ie iicaios a ee o eais o [55] a woks cie eei e yeoic coage amis wo equiae eessios oe as a (amoic sum o eoeias e oe as a (amoic sum aia acio ecomosiio

1+ e 2" co (ic = 1 _ e - 2 x — 1 + E e 1 1 = _ I (3 x =, + n • e ucioa equaio o e iema ea ucio

ES C(S = s cs -1 si — (1 — s) (1 — s). (35 2 aeas o e e "image" ue e Mei asom o e ieiy ewee e wo oms o (3 see [3 ] e oo o oissos summaio omua e esus om akig e Mei asom o o sies o (33 a iseig e ucioa equaio o C(s is aoac as e mei o esaisig a geea equiaece ewee summaio omuae o e oisso ye a ucioa equaios o iice seies [7 55] aies ook coais a iec iusaio [13] wi a oo o e moua as- omaio o e eeki ucio

Perron's formula. A coecio o summaoy omuae usuay eee o as eos omua eess aia sums o coeicies o a iice seies as come iegas o e iese Mei ye aie o e iice seies ise [1] I ou esecie eos omua esus om akig e se ucio H (x) o (13 as e ase ucio e asom o H (x) eig H* (s) = 1/s oe as omay o a iice seies A (s) = 2k tLk s 1 e+ico s k E k H (uk x) = A (s) x — . s t x< i eos omua is esseia i aayic ume eoy o isace i e oo o e ime ume eoem I as ee ecey emoye o e aaysis o cos ucios o "iie-a-coque" agoims ee i emis o caue eioic ucuaios a ae oe o a aca aue o aicaios o megeso a maima iig i comuaioa geomey see [ 5]; o igia sums a occu i e aaysis o seea agoims (soig ewoks egise aocaio we ee o [] A eae cass o iie-a-coque ecueces (wi maimum as ee Ph. Flajolet et al. 1 Theoretical Computer Science 144 ( 1995 ) 3-58 37

treated via Tauberian methods by Fredman and Knuth [35], and elementarily by Pippenger [69]. Note that the use of Perron's formula is often delicate since the transform (s does not have good decay properties towards + i co.

PART II. COMBINATORIAL APPLICATIONS

In this part, we survey some of the major applications of Mellin asymptotics to combinatorial problems. Sums related to Catalan numbers form the subject of Section 5, and Section 6 develops the important "Bernoulli splitting process' that leads to dyadic sums. Additional combinatorial applications form the subject of Section 7.

5. Catalan sums

Catalan sums have the form

n (o (36) S = E 2n /

where the Ak are of an arithmetical character. Such binomial sums occur in average values of characteristic parameters of combinatorial objects enumerated by the Catalan numbers, ( 2n (37) n + 1 n like plane trees, binary trees, or ballot sequences [11, 38]. The historic paper of De Bruijn, Knuth, and Rice [16] provided the first analysis of this type. It concerns the expected height „ of rooted plane trees of n nodes under the uniform distribution. The sequence Ak is then the divisor function (k We briefly explain here the connection between this combinatorial problem and a Catalan sum like (36). (See also [51, p. 135] for details.) A plane tree decomposes recursively as a root node to which is attached a sequence of trees. Let A n be the number of trees with n nodes; the ordinary of the sequence {A„} is defined by

CO A ( = E A„" = I Then, by the classical laws of combinatorial analysis (see, e.g., [33, 38, 78, 87]), the decomposition translates into a functional equation that admits an explicit solution

1 — 1 — A ( = and A ( = 1 — A ( 2

We have A = C„ with C„ the Catalan number of (37). 3 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995) 3-58

Similarly let Ah(Z) be the generating function of trees of height at most h. As height is inherited from subtrees, one then has the basic recurrence

Ah + 1(z) — with A 1 ( = 1 — A (

Thus, the A ( are rational fractions that are also approximants to an infinite continued fraction representing A ( Solving the implied recurrence yields the closed form

(1 + — 4z)" — (1 — — 4z) A ( = (1 + — +1 — (1 — — 4z) +1 •

It results that the Ah can be expressed in terms of A(z) alone; their Taylor expansion then derives by the Lagrange—Biirmann inversion theorem for analytic functions:

An + 1,h — An+1,h— 1 = E (n (38) where

( = A ( 2n ( 2n ) 2n Om(1 1 — ( — m + 1 — m n — m) n( —2n 1 — m) •

Thus, the number of trees of height h appears as a "sampled" sum of the 2nth line of Pascal's triangle (upon taking second-order differences). By a well-known form of the expectations of discrete random variables, the mean height H + satisfies

1 i + 1 = E E i ( Ah+1 h j

Grouping terms according to the value of jh then reduces this expression to a simple sum:

1 F = A E d(k)wk(n). (39) 'in+ k We are therefore led to considering sums of a pattern similar to (36),

s,(°) = E ( I=1 n) since

1-.1 _ H +1 = S;(, 1) — 2Sr + s" , (40) + 1 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995) 3-58 39

e eame o e cea sum eig yica Siigs omua yies e Gaussia aoimaio o iomia umes o k = w a wi k = o(n 31 ), oe as

( .2nk e-w2 (1 w4 3w2 5W8 - 5w - +

( 2: 3

is eas o ioucig e coiuous amoic sum

G ( = d(k)e -k X

a a eemeay agume (omiaio o e cea ems usiies e use o e Gaussia aoimaio isie Sr :

1 = G (—,)+ o(1 (1 /

e asymoic aaysis o G( o sma (ow = -1 / is e simia o Eame 11 aoe om

G*(s) _ 1 s (s 2

oe ges

1 ( - og ( + 37 + - + • • • (

e oe sums S ( 1 ae eae simiay om ( (1 ( (a ei aaogues i is ou a the expected height of a random plane rooted tree of n nodes is

/ttn - + o (1

u asymoic easios cou aso e eemie y is ecique e asic meo ee cosiss i aoimaig Caaa sums (3 y Gaussia sums o e om

CO G(x)= l—2x2 a eaig e ae y Mei asoms eae Caaa sums suace i e aaysis o aces o-ee mege soig ewok [75] a i egise aocaio [3 5] wee e aimeic ucio l ioe i (3 is eie a ucio o e Gay coe eeseaio o k o e ucio (k) eeseig e eoe o i e ime ume ecomosiio o k. 40 Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995) 3-58

6. The Bernoulli splitting process and dyadic sums

e eoui siig ocess is a geea moe o e aom aocaio o esouce eie i e ime omai (suc as saios saig a commo commuica- io cae o i e sace omai (suc as keys saig some imay o secoay soage wose aaysis usuay eas o a aiey o yaic sums e ocess akes a se G o iiiuas a sis em ecusiey as oows - I ca (G) 1 e e ocess sos a o siig occus - Oewise ca(G a eac g E G is a coi e G o a G 1 e e wo suses o G coesoig o e gous o iiiuas aig ie eas ( a ais (1 e e ocess is ecusiey aie o e wo suses G o a G 1 A eaiaio o e ocess may e escie y a ee (G) wose iea iay oes coeso o siigs o moe a 1 eeme; e eea oes eie coai a sige iiiua o e emy se I oe iews e eemes o G as aig eeemie a iiie sequece o is e ee (G) is oig u e digital trie associae o G iewe as a se o "keys"; see [37 5 7] eiea o a eeme g i (G is aciee y oowig a access a icae y g. A sequeia eecuio o e siig ocess aso cosiues a way o eguae access o a commo sae cae (gous cosisig o sige iiiuas may eie ei message wiou ieeece; is is e tree communica- tion protocol o Caeaakis-syako; see [ 3] Gie a e caiaiy o e oigia gou G is n, ee ae wo asic aom aiaes e ume I, o oiia seaaio sages coesoig o e ume o iea oes i (G); e oa ume „ o coi iigs coesoig o a iea a eg i (G). e eecaios i„ = E {I„} a e = E {L„} saisy ecueces a eec e aue o e siig ocess; o n oe as

in = 1 + E nn,x(ik + in- k), en=n+ E nn,k((k + e-k k= k = k = (k (3

wi iiia coiios io = i 1 = eo = ei = e siig oaiiies tt„, k ae seci- ic o e eoui siig ocess a ey eese e oaiiy o uig k eas ou o coi is e asic ecique o soe (3 cosiss i ioucig e eoeia geeaig ucios

. zn zn 1(z) = E L(z) = E en ( n = 0 • • wi wic (3 asoms io z 1(z) = e" 1 (;) + (e — 1 — z), L(z) = e1 L (- ) + z(er — 1 (5

Ph. Flajolet et al.' Theoretical Computer Science 144 ( 1995 ) 3-58 41

A ucioa equaio o e om

( = e/ + a(z), ( wi a(z) a kow ucio a ( e ukow is soe y ieaio

4)(z) = a(z)+ 2ezl

= a(z)+ 2ezI a (1 ) + 4e 3z 1 4) (4- )

= x

= E 2kez(i - 2 - k)a(—z ). (7 k = 0 k is icie aies o /(z) a L(z) wi a(z)= ez — 1 — z a a(z)= z(ez — 1 eseciey Uo eaig e eoeias oe is e eici oms

— n = E 2k [i y1i n — y (1 — k =

1 n — In = E [1— (1— y 1 ( k = om ee e mos iec oue is e eoeia aoimaio

(1 — a) = e n l(— = e - n + (n 2 e -na I is egiimae o use i i ( (see [5 131] o a usiicaio ase o siig e sum Wi

-/k F(x)= E 2k[1- +—x)e G(x) = x E [1— e - / k ] k = k k oe is eemeaiy i„ = F (n) + (i a e = G(n) + 0(j/). e ucios F(x) a G( ae yaic sums o a ye aeay cosiee ece

F(x)= + (og + ( /7

Y 1 G(x)= og + ( + + xQ (og + ( og wee P(u) a Q(u) ae asouey coege ouie seies euig o ies a egecig e eioic ucuaios a ae o amiue ess a 1 we i a e ume o iay oes is o aeage aou 1 a % waste in storage, wie e aeage e en/n o a aom eea oe is aou og n wic i e iomaio-eoeic sese coesos o an asymptotically optimal search cost. 42 Ph. Flajolet et al.( Theoretical Computer Science 144 ( 1995) 3-58

e aiaces o ese aamees ae ee eesiey suie y Kisceoe oige a Sakowski [53 5] ese auos oe a i is o a iia oem o oai e eac oe o e omia ems as ee ae o-iia caceaios equiae o moua ye ieiies iscoee y amaua acque a egie [5] ae esaise a a eg a oe sie ae o asymoicay omay isiue e aaysis ioes e suy o oiea iaiae ieece equaios o wic e oowig is yica

T(u, z) = uT 2 (u — ) + (1 — u(1 + e ' 2

Iomaio o age come wi u ake as a aamee ca e gaee y a quasi-ieaiaio ocess ase o cosieig og T(u, z) wic is ameae o Mei asom ecique Oce is is oe e coeicie [e]T(u, z) ca e ecoee asymoicay a sice i is iecy eae o a caaceisic ucio o e ume o oes e Gaussia esu is e esaise Mamous ook [] coais a eaie esciio o is ieesig aicaio o Mei asoms o oiea iaiae oems A ece eesio as ee mae o sui ees a e eme—i aa comessio sceme [7]

7. Other combinatorial examples

Comiaoia sums may ecessiae a ceai amou o "eocessig" eoe eig euciie o amoic sums as aeay eemiie y Caaa sums o sums eae o ies is secio escies iiec aicaios o e asymoic aaysis o amoic sums o wo ew yes o comiaoia oems

Reduction to standard harmonic sums. oges us i aom iay sigs ae eae y Ku [57] i a ae a eas wi e equiae oem o cay oagaio i aae iay aes ee e oem equies a aaysis o omia oes o a amiy o aioa ucios eeuay eaig o yaic sums

Examples 16. Longest runs in strings. Cosie sigs oe a iay aae ai = { 1} e oem is o esimae e eece eg L„ o e oges u o s i a aom sig o eg wee a e 2" ossie sigs ae ake equay ikey e isiuio was suie y ee [1] a Ku [57] e oaiiy a a aom sig o eg as o u o k cosecuie s is

1 1 — qn = Ezn] (9 1 — 2z + zk +1 •

e se o suc sigs is escie y e egua eessio 1 k • (1 k wee 1 eoes a sequece o ess a k s a ( eoes aiay eeiio o a ae; e geea icies o comiaoia aaysis emi o wie e oiay Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58 43 geeaig ucio o e se o sigs ue cosieaio as 1_ k 1 1 — z 1 — z(1 — zk)/(1 — z)' wic usiies (9 e k e e smaes osiie oo o e eomiao o (9 a ies ewee a 1 A aicaio o e icie o e agume sows suc a oo o eis wi a oe oos a ae o a age mouus y omia oe aaysis e q, k saisy 1- q ,k Ck(2pk) n wi Ck = (5 k ( — (k + 1)p)' o age n u ie k. e eomiao o e acio i (9 eaes ea z = 1/ ike a "euaio" o 1 — so a oe eecs k o e aoimae y as k —0 co. A eemeay agume eaie i [57] sows a i ac

Pk = 1( 1 ± 2 —k— 1 + (k -k (51

Accoigy ck = 1 + (k y meas o coou iegaio Ku usiies e use o (51 isie (5 o a wie age o aues o k a wic esus i e aoimae omua qk _ - k —

e t k eoe e aoimaio e " to g„, k • oowig [57] oe is

CC CO (1 ) L„ E [1- g, k ] = E -4„,d+o k k=

( 1 = E [1- e--.2-k-I+ o k = 1-1 is is a yica case o a yaic sum suie eeaey i eious secios a

7 )1 1 ik7c _ og L„= og + + E e + 1 og og k e {} (og

us e eece eg o e oges u L„ ucuaes aou og + 337 wi a miue amiue

A eiey simia aaysis oies e eece sie o e ages summa i a aom comosiio o a iege n.

Nonstandard Dirichlet series. e agoim o Probabilistic Counting iouce i [7] emis o esimae wii a ew ece e ume o isic eemes o a age ie usig oy a ey sma amou o auiiay memoy a is o iees i e coe o quey oimiaio i aa ases e aaysis aeas o e osaa 44 Ph. Flajolet et al.1 Theoretical Computer Science 144 ( 1995) 3-58

iice seies co _ ov(i) N(s) E =1 wee v(j) is e sum o e igis i e iay eeseaio o j.

Example 17. Probabilistic counting. e ey esig o e agoim o [7] ecessi- aes e aaysis o a aamee o " wee gi = { 1} is e se o a iiiey og iay sigs e u = (u 1 ,..., u) e a eeme o ."; e aamee = „ is eie o ake e aue k i e sequeces 1 1 1 1 a occu as iiia segmes o some o e ifs u o u; sas wi e ae 1 A ausie easoig suggess a e eecaio k„ o oe " ake wi uiom measue sou e cose o og 2 u ige-oe asymoic iomaio is equie ee is a icusio—ecusio agume o [7] sows a

2k n {R„ k} E (-1(1(i _ (5 -= k

I is oe i [7] a i a cea egio ea og 2 oe ca use e eoeia aoimaio (1 — a" e "a wie simuaeousy eeig e age o aues o j o iiiy is usiies e aoimaio

co co (-0vo)e-in,k= — (/" qn,k k wee 4n , k = E (1- e (53 = = eie e ucio

((= E ( _ 1(i e -i = _ e -1 (5 Eq (53 meas a e cumuaie isiuio g„,,, is we aoimae y 0(n/2"). I ac a eemeay agume o [7] esaises a °° „ E g„, k = (n) + o(1 wee 0(x) (55) = E (y k1= k=1 a e asymoic om o 0(x) o age is equie e ucios 0(x) a 0(x) ae o amoic sums om (5 a (55 oe is s 0* (s) s 0* (s) = N(s)• r(s), 0* (s) — = N (s) F (s). (5 1 _ s 1 — 5 I aicua a moe eaie iesigaio o N (s) is eee Gouig ems y i e eiiio o N(s) a usig e iomia eoem (see aso oosiio eow sows a N(s) is a eie ucio a is o moeae gow i ay ig a-ae owig o caceaios aoe y e sig aeaio oeies o e sequece ( — 1" ( is emis o usiy (55 a ece y a esiue Ph. Flajolet et al. 1 Theoretical Computer Science 144 ( 1995) 3-58 45 comuaio i gies e asymoic om o ( y N' (0) (x) = og + + + (og + o(1 (57 og og o some osciaig ucio P(u) oce moe ou o e o sma amiue e gouig ecique yies ( = - 1 (use i (57 a i emis eessig ( as a aeaig sum o ogaims us om (55 (57 oe ges

R„ og (9 + (og n) + o(1), wee

c° (m + 1 (-1 2 - 11 ev 77351 m m ee esus a agoim ase o e iea a (1/q " ca e ue io a uiase saisica esimao o e a ioi ukow ume o isic iay sigs cosiee

e sequece e(j) = ( 1 is e cassica ue-Mose sequece iice seies eae o N(s) ae ee cosiee i [] Simia eciques ae use i oe oaiisic esimaio agoims ike Approximate Counting [] a e coisio esouio meos o [39]

PART III. GENERAL MELLIN ASYMPTOTICS

e as secios ae sow a Mei asymoics is aicae o amoic sums oie e iice seies is o moeae gow wie e asom o e ase ucio is o as ecease e aicaios ecouee so a ae mae a esseia use o oeies seciic o e iema ea ucio o e Gamma ucio o o e sie ucio is a sows a aks o geea eoems esee i Secio Mei asymoics may aso e aie o "imici" amoic sums wee i is o oge equie o ae cose oms o eie e iice seies o e asom o e ase ucio

8. General conditions for Mellin asymptotics

I is secio we oie geea coiios ue wic Mei asoms ae sma owas + i co a escie a geea cass o iice seies a ae o moeae gow ese esus ee e age o aicaiiy o Mei asym- oics o a muc age cass o amoic sums 46 Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995 ) 3-58

Smallness of Mellin transforms. The smallness of a Mellin transform is directly related to the degree of "smoothness" (differentiability, analyticity) of the original function.

Proposition 3 (Smallness in the fundamental strip). (i) Let f(x) be locally integrable with fundamental strip

(ii) If in addition f(x) is of class T. and the fundamental strip of e f contains , then

f * (a + it) = o(Itl - r) as t + co.

Proof (sketch). (i) From the form

f *(r + it) = f (x) e - trx e i og dx,

the function f* (s) is an integrable function hashed by a complex exponential. By the Riemann-Lebesgue lemma [43, 81], f * (s) tends to 0 as t + oo (ii) The second form results from the formula i [e f (x); s] = ( - 1)1. sr f * (s). D

The next proposition shows that smallness extends beyond the fundamental strip for smooth functions with smooth derivatives.

Proposition 4 (Smallness beyond the fundamental strip). Let f(x) be of class W' with fundamental strip . Assume that f(x) admits an asymptotic expansion as x 0 + (resp. x + co) of the form

f (x) = E C k x 4 (log x)k + 0 (x 7) , (58) (keA where the satisfy -a < y (resp. y < - 13). Assume also that each derivative (dj/dxj) f(x) for j = 1, ...,r satisfies an asymptotic expansion obtained by termwise differentiation of (58). Then the continuation of f*(s) satisfies

f * (a + it) = (I — as It] -> co (59) uniformly for a in any closed subinterval of ( -y, 13) (resp. of (a, - y)).

Proof. It suffices to consider extension to the left of f * (s). Choose some positive number p > y and define

a(x)=( E C k (log x)k exp ( - xP). (keA aoe e a I eoeica Comue Sciece 1 ( 1995 3-5 47

e ucio g(x) = f(x) — a(x) saisies e assumios o oosiio 3 a is asom g* (s) is us o (I s I - i is uamea si —y, ft>. e asom a* (s) is ise eoeiay sma gie gow oeies o e Gamma ucio a is eiaies us f * (s) = a* (s) + g* (s) saisies e sae ous

Aayiciy is e soges ossie om o smooess o a ucio f(x); i a case e asom (s) ecays eoeiay i a quaiiae way

rptn (Eoeia smaess i e aayic case Let f (x) be analytic in So where So is the sector

So = {z e CIO < ItI < + (x) and I ag(I } with 0 < i Assume that f(x) = 0(x -') as — in So, and f (x) 0(x - 13) as oo in So . Then f*(c + it) = 0(e -°1 `1 ) uniformly for c in every closed subinterval of (a fl).

rf (sketch). e iega eiig Mei asoms i is case aie o a aayic ucio y Caucys eoem e iegaio coou may e ake as e a-ie o soe 0:

e co f* (s) =I f We - dt o e cage o aiae t = pe' gies

f* (s = eies (peio ps-ip.

e esu oows as e iega coeges

Smaess ees ousie o e uamea si y a agume simia o a o oosiio a ase o suacig suiae comiaios o eoeias

Expl 8 A sum with an implicit transform. e amoic sum d(n) G (x) --= E =1 / cos nx

wi d (n) e iiso ucio amis e asom C (s) • g* (s) wee g* (s) is e asom o g(x) = (cos 1/ e ucio g*(s) is o simy eessie i ems o saa ucios (i is "imiciy" eie as e asom o g(x)). owee e uamea coesoece oies is comee sigua easio (see Eame wie oosiios a 5 sow a g* (s) is o as ecease i ay ig a-ae us Mei aaysis aies a e asymoics o G (x) as oais

Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995) 3-58

om e sigua easios o g (s) a 4 (s). Oe ges log x (g*)'(1) + 2yg*(1) 1 G (x) - g* (1) + + + (m -o o ay M ee g* (1) = g (x)dx a (g*)' (1) is a "Eue cosa" o g (x) wic is eessie as a iega as iscusse i Eame 15

Example 19. A lattice sum. e goa ee is o iscuss ceai (-imesioa "aice sums" o e om F (x) = E E ow ( m =1 =1 (See aso [1] o eae eeomes Suc a sum may e ewie as Ek r (x) f (kx ), wee r(k) is e ume o eeseaios o k as a sum o wo squaes e coesoig iice seies is e " r (k) 1 P(s) = E is = (m2 ± n s k = 1 is a eeyig ess o is eaio a + i co a is secia aues e 0 (x) = e-M2X2. e Mei asom o ( is 1 s ( = p(s) • - ew - A aeay iscusse Mei aaysis o e( yies is asymoic easio ea =

7C 1 (1 = + R(x), (1 i — e emaie em R(x) eig eoeiay sma (is aeaiey esus om oissos omua us ( amis a eici ee-em asymoic easio

t i 1 e(11= — - — + - + ( 2x 2x 4

wi agai ( eoeiay sma Cosequey p(s) is meomoic i e woe o C wi oes a s = 1 oy a sigua easio

7C 1 + 1 (s s=o + [0] s - 2 + [0], = 2(s - 2) - s _ + • •

3 I oe o aow o eesios o ige imesios o ige owes we o o make use ee o secia oeies o p (s). See [ C I] o a ii accou o ese asecs Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995) 3-58 9

I aiio oosiio 5 quaiies e gow o e asom o e ( i e om e (n14 — °I t us (s is ise o gow a mos es o ay e i ay iie si o e come ae is kowege emis o aaye aice sums o e om ( o isace 1 ( = E (m + + p 3

saisies (= (1/ oie oe akes (= (1 + -3 Oe as i 3 (s — 1(s — (s = si is ee esus a asymoic om o ( a iuces a coesoig esimae o ( I 37c 5 — IC (— 1 5 4p e eo em eig eoeiay sma sice (s aises a e ee egaie ieges e meo ceay ees o ige imesioa sums

Growth of Dirichlet series. iice seies wose comoes Ak uk ami esce- ig asymoic easios i owes o k ae e oey o eig meomoicay coiuae wi we iiiuae oes

Proposition 6 (Gow o secia iice seies e Ak a ik ami asymoic easios i esceig owes o k as k co

" a A( E — k w (1 + E — r 0 O =

e e iice seies Ek Ak k- S ca e coiue o a meomoic ucio A(s i e woe o e come ae e ucio A(s is o moeae gow i ay ig a-ae o e come ae

Proof (skec e aicua case a = = gies e esseia iea e iomia eoem yies b1A 1s ( s(s +± 1)/bl )2 1 ...... 1 — = — [ao + + • • • [1 „ 1

= a E k(s ws k nws +k (

o a amiy o oyomias k y summaio oe is a A(s as i ay iie si e same siguaiies as a aia sum o

(ws + E k(S(WS k k1

50 Ph. Flajolet et al. Theoretical Computer Science 144 (1995) 3-58

(This is easily justified rigorously by terminating forms of the binomial theorem.) Also, A (s) is of moderate growth since each component zeta function shares this characteristic. In the general case, one finds similarly (with a slight abuse of notations)

A (s) C(ws + oco + E P(s)Nws + , (63) e where ranges over the set S of all linear combinations of the form

r Si + ••• +

For instance, from the expansion 1 ( 2n ri i + 1 4" n ) 1/ 8n 128n one finds by summation that 112n 1 1 [c (s ± 1) 1 + 3) + 1 A (s) = C(s + + (s1 = i 'VA n )ns 2) 8 2 128 2 (64) where R(s) converges in the same half-plane as C(s + -I), namely in ( + oo). In a similar vein, if Q(u) is a polynomial that does not vanish at the positive integers, and P (u) is an arbitrary polynomial, then P ( A (s) = E = (Q (Os has poles only at a discrete set of rational numbers that is bounded from the right. Amplitudes involving the harmonic numbers lin = 1 ± 1/2 + • • • + 1/n can be

treated in this way by considering fi = Hn — log n. From 1 1 1 = log n + y + + + 0 (n - ), 1 1 one deduces

A (s) = '(s) + yC(s)+ (s + 1) — (s + 2) + C(s + 4) =i n (s e ( — 5, co>)

1 y 1 1 (s — 1) s — 1 i s = ± 2s 12(s + 1) ± 120(s + 3) For instance, A (s) has a simple pole with residue 1/120 at s = — 3. More information on this function may be found in [5]. Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995 ) 3-58 51

Example 20. A sum with binomial amplitudes. e ucio ( 1 1 ( 1 . 3 1 ( 1 3 5 1 G (x) = 2 ) 1 + 1 + 1 + 3

as e asom A (s) i/si it s wee A (s) = E„_ ( - s e siguaiies o A(s) ae gie y Eq ( ece

1 G(x) : - + A(0) + - i + ( wee A(0) is oaie y e aayic coiuaio ecique o oosiio " 1 1 1 _ (1 A(0) = E1; [( E_ +

A u asymoic easio i owes o )0 12 ca e eemie i is way

Example 21. Stirling's formula for modified Gamma functions. Cosie e oem o eauaig asymoicay as + oo

H(x) = (1 + n=i n(n + 1 )) Oe esimaes isea e amoic sum G(x) = og H (x) a is a amoic sum wi asom ai i - 1 -1 ; 1 EG* (s) = A( -s) • ( .7C ) wee A (s) = s si ITS n1 (n + n)s • om oosiio A(s) as a sigua easio iuce y e easio o (1 + n -1 ) - s. Oe as

A(s)= (s - (s + 1 + R(s)

wee R(s) coeges ike (s + i 91(s - e Mei asom G* (s) us as a sime oe a s = -1- a a ie oe a is oies "Siigs omua" o H (x):

H (x) -C, -ec wee "Siigs cosa" C is ee C = 1/11 I is aicua case H (x) is eiciy eessie i ems o igoomeic ucios (y e iiie ouc omua o cos (; e eame is oy mea o emosae e geea aoac o e aaysis o suc moiie Gamma ucios

52 Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995 ) 3-58

A similar technique works for Dirichlet series A (s) whose elements Ilk, Pk admit expansions in powers of 2k• Assume that

1+ E a 2 - ki Pk — k ( 1 E 1) '). i= 1 i= 1 A technique entirely similar to that of Proposition 6 applies. From 2 -ks,( 1 (a1 _ i s)2 -k

k + (a +(b — 2a 1 b 1 — 2b )s + ibls2)2- one gets by summation

2 - s 2-5-1 A (s) = 1 — 2 - s + (a1 is' 1 — 2 - s -1 ± •••• Thus, A (s) admits a pole at all points of a half-lattice 2ikic (m) k Xk = — m + for m 0, ey, og and is in addition of controlled growth away from poles in any finite strip of C. An immediate case of application is to modified dyadic sums involving frequencies of the form 1( + 1. This technique also applies to sums related to the Bernoulli splitting model of Section 6; for instance, the Mellin transform of oo x F (x) = [1— (1 k= 1 is

F * (s) = A (s) • F (s) where A (s) = E (log (1 — 2 ') - 1 ) - s. k=1 By the technique above one finds

25 s 2s -1 A (S E — 2>). 1 — 2s 2 1 — 2s -1 This permits to compute complete asymptotic expansions without a recourse to the exponential approximation. The half-lattice of poles implies the presence of fluctuat- ing functions at each level of the asymptotic expansion of F (x).

The transfer technique. Our final example illustrates the general approach seen so far in conjunction with an important transfer technique that consists in going back and forth between various harmonic sums involving related amplitude and frequencies but different base functions. This "zigzag" method appeals to the common occurrence of a Dirichlet series in two harmonic sums

E ak f (kx) and Eakg (kx) , Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58 53 wi g (x) = e " ayig a secia oe ecause o e eaio i esaises wi oiay geeaig ucios e ase ecique as aeay ee use imiciy o isace e suy o e amoic sum e (1 — 1 yies oeies o (s) (Eame a ca i u e use o aaye e ea ucio E k e -k (Eame 1 a eeuay aice sums (Eame 19 e icie is as oows Assume a e eaio o

F (x) = E ak f (kx) k = 1 is soug is equies kowege o e iice seies

ak a (s) = E k = 1 I e oiay geeaig ucio

A (x) = E ak x k , k= 1 is kow a i aiio A (x) is aayic a = 1 (is oe aes o aeaig seies wi eemeay coeicies e

A(e - = E b „,xm , o wic coesos o a sigua easio b,„ di (A (e s) = a (s) (s) E (s E C m=om+s Comaiso wi e sigua easio o e ouc a (s) F (s), amey

a( —m 1 a(s‹ ( 1m m= m! s-Fm' sows y ieiicaio a

a( —m = ( —1mm bm = ( — 1)'" m! [e] A (e (5 I is way coeicies i may easios ca e eemie eiciy I geea e omuae oaie ae oiia sice e oigia seies eiig a (s) sos eig coege a egaie ieges

e ase ocess oe oies a igoous couea o oma comuaios wi uey iege seies See e emaks eaie o Eue—Macaui summaios i Secio a e eoy o "eguaie" sums a oucs i [9] 54 Ph. Flajolet et al. Theoretical Computer Science 144 ( 1995 ) 3-58

Example 22. An alternating sum with harmonic numbers. eie

G ( = E - Hk e -k x , k=1 a aises as a aoimaio o e comiaoia sum

( 2n E _ k k= 1 n - k ) e Mei asom o G( is

G* (s) = h(s)- -21 F (-2S ) wee h (s) = E - -k k=1 us G (s) as oes a = - - a eemiig e esiues o G (s) equies e values o h(s) a e egaie ee ieges e iice seies h(s) is a eie ucio is esus om a sime eesio o oosiio o aeaig seies as aeaig ea ucios ae eie e secia aues o h(s) ae e oaie om e easio

E -1k Ik e -k = og k=1 1 +1- e' + e — log 2 (I log 2 + + — 2 4 4 16 1 og 1 + - — + — 3 — + 32 48 8 so a

h(0) = og h( - = h( -4) = - 1 ••• us iay

G( og - — ••• •

9. Conclusions

is ae as emosae e asic ecoogy o Mei asymoics o a- moic sums ee a cucia oe is aye y e seaaio oey a e uamea coesoece e meo is ikey o e aicae as soo as e eessios ioe ae o a aayic caace (i e o sese o e em aoig aayic coiuaio wic is e mos imoa equieme o e meo Comiaoia eessios ae us ey aua caiaes o Mei asymoics eae eciques i coecio wi iie ieeces ae eoe i [3] Ph. Flajolet et al. / Theoretical Computer Science 144 ( 1995) 3-58 55

As meioe i Secio eos omua eogs o e gaay o Mei-eae eciques We ae o eeoe is cassica asec ee as i is eesiey iscusse esewee I [5] i is sow ow iie-a-coque ecueces ea o ucuaios o a aca aue a ca e quaiie ia a Mei aaysis; igia sequeces ae suie aog simia ies i [] A ieesig osig o Mei asymoic o amoic sums is e cass o t-t meos I may cases a geeaig ucio ca e aaye asym- oicay as a amoic sum i e come eam ea a siguaiy o a ciica oi I e ecomes ossie o esimae e coeicies o e geeaig ucio y eie siguaiy aaysis o e sae-oi meo o a coucio o Mei a sae-oi meos e saa eame is e uis ioeeig wok o e eumeaio o iay aiios [1] wic was oows y e geea aoac o Meiaus i e eoy o iege aiios [3] Siguaiy aaysis use i coucio wi Mei asymoics may e use as a asis o e aaysis o Caaa sums [] as we as may oe comiaoia sums We oe o eu o ese quesios i a uue ae

Acknowledgements

is wok was ay suoe y e ESI asic eseac Acio o e EC o 711 (Acom II e auos wou ike o ak aie Kem (wo iouce oe o us o e suec i 197 oe Segewick (o a og-asig ieacio eo Guias a Aew Oyko (o umeous iscussios o Ku a G e ui (o ei suo emu oige ogee wi is gou o coaoaos a e ecica Uiesiy o iea Mieie egie iie acque a Woek Sakowski a coiue auae eeack a aious sages We ae eey gaeu o em o ei cooeaio

References

[1] M Aamowi a IA Segu Handbook of Mathematical Functions (oe ew Yok 1973; a ei o e 1 aioa ueau o Saas eiio 19 [] Aouce a Coe iice seies a cuious iiie oucs Bull. London Math. Soc. 17 (195 531-53 [3] GE Aews Encyclopedia of Mathematics and its Application, Vol. The Theory of Partitions (Aiso-Wesey eaig MA 197 [] M Aoso Introduction to Analytic (Sige ei 197 [5] M Aoso a u iice seies eae o e iema ea ucio J. Number Theory 19

(19 5 - 1 [] EW aes e Macaui sum omua Proc. London Math. Soc. (195 53-7 [7] ema Analytic Number Theory, An Introduction (eami-Cummigs eaig 19 [] C e Ramanujan's Notebooks, Part II (Sige ei 199 5 Ph. Flajolet et al.1 Theoretical Computer Science 144 ( 1995 ) 3-58

[9] C e a Eas Eesios o asymoic easios om Cae 15 o amauas seco oeook J. Reine Angew. Math. 361 (195 11-13 [1] M owei P.B. owei a Sai Aaysis o ceai aice sums J. Math. Anal. App!. 143 (199 1-137 [11] Come Advanced Combinatorics (eie oec 197 [1] aeo Multiplicative Number Theory, eise y Mogomey (Sige ew Yok e 19 [13] aies Integral Transforms and Their Applications (Sige ei 197 [1] G e ui O Maes aiio oem Indagationes Math. 10 (19 1-; eie om Koik ee Akaemie Weescae Se A [15] G e ui Asymptotic Methods in Analysis (oe ew Yok 191; a ei o e i o-oa eiio 197 (is eiio 195 [1] G e ui E Ku a SO ice e aeage eig o ae ae ees i C ea e Graph Theory and Computing (Acaemic ess ew Yok 197 15- [17] ige Asymptotic Expansions: Their Derivation and Interpretation (Acaemic ess oo 1973 [1] G oesc Handbuch der Laplace Transformation, Vols. 1-3 (ikuse ase 1955 [19] A Eêyi W Magus Oeeige a G icomi Tables of Integral Transforms (McGaw- i ew Yok 195 [] G ayoe aoe a M oi O a ucioa equaio aisig i e aaysis o a ooco o muiaccess oacas cae Adv. App!. Probab. 18 (19 1-7 [1] W ee An Introduction to Probability Theory and its Aplications, Vol. 1 (Wiey ew Yok 3 e 19 [] aoe Aoimae couig a eaie aaysis BIT 25 (195 113-13 [3] aoe O aaie samig Computing 34 (199 391- [] aoe a M Goi Eac asymoics o iie-a-coque ecueces i SCA igas a Kasso es Automata, Languages, and Programming, ecue oes i Comue Sciece o 7 (Sige ei 1993 137-19; Proc. 20th ICA Co u uy 1993 [5] aoe a M Goi Mei asoms a asymoics e megeso ecuece Acta Inform. 31 (199 73-9 [] aoe Gae Kisceoe oige a icy Mei asoms a asymoics igia sums Theoret. Comput. Sci. 123 (199 91-3 [7] aoe a G Mai oaiisic couig agoims o aa ase aicaios J. Comput. System Sci. 31 (195 1-9 [] aoe a oige egise aocaio o uay—iay ees SIAM J. Comput. 15 (19 9- [9] aoe a C uec aia mac eiea o muiimesioa aa J. ACM 33 (19 371-7 [3] aoe -C aou a uiemi e ume o egises equie o eauae aimeic eessios Theoret. Comput. Sci. 9 (1979 99-15 [31] aoe M egie a Segewick Some uses o e Mei iega asom i e aaysis o agoims i A Aosoico a Gai es Combinatorial Algorithms on Words, AO Aace Sciece Isiue Seies Seies Comue a Sysems Scieces o 1 (Sige ei 195 1-5 (Iie ecue [3] aoe a icmo Geeaie igia ees a ei ieece-ieeia equaios Random Struct. Algorithms 3 (199 35-3 [33] aoe Say a immema Auomaic aeage-case aaysis o agoims Theoret. Comput. Sci. 79 (1991 37-19 [3] aoe a Segewick Mei asoms a asymoics iie ieeces a ices iegas Theoret. Comput. Sci. 144 (1995 11-1 is oume [35] M ema a E Ku ecuece eaios ase o minimization, J. Math. Anal. App!. 48 (197 53-559 [3] G Goe oes o e eiaio o asymoic eessios om summaios Inform. Process. Lett. 7 ( (197 15-19 [37] G Goe a aea-Yaes Handbook of Algorithms and Data Structures: in Pascal and C. (Aiso-Wesey eaig MA e 1991 Ph. Flajolet et al. I Theoretical Computer Science 144 ( 1995 ) 3-58 57

[8] I Goue a M ackso Combinatorial Enumeration (Wiey ew Yok 193 [39] AG Geeeg aoe a E ae Esimaig e muiiciies o coics o see ei esouio in muie access caes J. ACM 4 (197 9-35 [] G ay Ramanujan: Twelve Lectures on Subjects Suggested by his Life and Work (Cesea uisig Comay ew Yok 3 e 197; eie a coece om e is eiio Camige 19 [1] G ay a M ies The General Theory of Dirichlet's Series, acs i Maemaics o 1 (Camige Ui ess Camige 1915 [] E ecke Lectures on Dirichlet Series, Modular Functions and Quadratic Forms, uo Scoeeg e (aeoeck a uec Giiige 193 [3] eici Applied and Computational Complex Analysis, (Wiey ew Yok 1977 [] M oi Probabilistic Analysis of Algorithms (Sige ei 197 [5] acque a M egie ie aiioig ocess imiig isiuios i aci-aeacci es CA AP '86, ecue oes i Comue Sciece o (Sige ei 19 19-1; Proc. 11th Colloq. on Trees in Algebra and Programming, ice ace Mac 19 [] acque a W Sakowski Uimae caaceiaios o e us esose o a iea seacig agoim a suy o a ucioa equaio SIAM J. Comput. 8 (199 777-791 [7] acque a W Sakowski Asymoic eaio o e eme—i asig sceme a igia seac ees ei 1991 [] acque a W Sakowski Auocoeaio o wos a is aicaios aaysis o sui ees y sig-ue aoac J. Combin. Theory Ser. A 66 (199 37-9 [9] A ogeso a S ag Basic Analysis of Regularized Series and Products, o ecue oes i Maemaics o 15 (Sige ei 1993 [5] Kem e aeage ume o egises eee o eauae a iay ee oimay Aca Iom (1979 33-37 [51] Kem Fundamentals of the Average Case Analysis of Particular Algorithms (Wiey-eue Suga 19 [5] Kisceoe C Maie a oige Aaysis o a oimie seac agoim o ski iss 1991 [53] Kisceoe a oige O some aicaios o omuae o amaua i e aaysis o agoims Mathematika 8 (1991 1-33 [5] Kisceoe oige a W Sakowski O e aiace o e eea a eg i a symmeic igia ie Discrete Appl. Math. 2 (199 19-13 [55] Kusc e samig eoem iice seies a ake asoms J. Comput. Appl. Math. 44 (199 1-73 [5] E Ku The Art of Computer Programming, Vol. 3: Sorting and Searching (Aiso-Wesey eaig MA 1973 [57] E Ku e aeage ime o cay oagaio Indagationes Math. 40 (197 3- [5] ewi e Structural Properties of Polylogarithms (Ame Maemaica Soc oiece I 1991 [59] E ie Robert , Aaces i Maemaics o 1 (1993 i—i ( Meis oice a iiogay [] G ogo e Multi-User Communication Systems, CISM Couses a ecue oes o 5 (Sige ei 191 [1] GG Macaae e aicaio o Mei asoms o e summaio o sowy coegig seies Philos. Mag. 40 (199 1-197 [] Mamou Evolution of Random Search Trees, (Wiey ew Yok 199 [3] Mays a aoe Q-ay coisio esouio agoims i aom access sysems wi ee o ocke cae access IEEE Trans. Inform. Theory I- (195 17-3 [] Mei ie iicesce eie ie aeeoeisce ukioe u ie eice ouke o eicem Gesec Acta Math. 28 (19 37- [5] Mei Ai eie eieiice eoie e Gamma- u e yegeomeisce ukioe Math. Ann. 68 (191 35-337 [] Oeeige Tables of Mellin Transforms (Sige ei 197 75 [7] Oeeige Tables of Fourier Transforms and Fourier Transforms of Distributions (Sige ei 199 5 Ph. Flajolet et al. 1 Theoretical Computer Science 144 ( 1995 ) 3-58

[] AM Oyko Eumeaio o sig i A Aosoico a Gai es Combinatorial Algorithms on Words, AO Aace Sciece Isiue Seies Seies Comue a Sysems Scieces o 1 (Sige ei 195 5- [9] iege A eemeay aoac o some aayic asymoics SIAM J. Math. Anal. 24 (1993 131-1377 [7] oige ow o seec a ose Discrete Math. 20 (1993 19-159 [] oige yoeica aayses aoimae couig i e sye o Ku a eg i e sye o aoe Theoret. Comput. Sci. 00 (1993 3-51 [7] M egie Eauaio es eomaces u acage yamique ese e 3e cyce Uiesiê ais-Su 193 [73] M egie Aaysis o gi ie agoims BIT 2 (195 335-357 [7] EM eigo a K Suowi oaiisic aaysis o iie-a-coque euisics o miimum weige Euciea macig Networks (193 9- [75] Segewick aa moeme i o—ee megig SIAM J. Comput. (197 39-7 [7] Segewick Algorithms (Aiso-Wesey eaig MA e 19 [77] I Seo The Use of Integral Transforms (McGaw-i ew Yok 197 [7] Saey Enumerative Combinatorics, Vol. I (Waswo ooks/Coe 19 [79] W Sakowski Some esus o -ay asymmeic ies J. Algorithms (19 - [] W Sakowski aicia ies agai eisie J. ACM (199 91-711 [1] EC icmas The Theory of Functions, (Oo Ui ess Oo e 1939 [] EC icmas Introduction to the Theory of Fourier Integrals (Cesea uisig Comay 19 eie om e seco eiio Oo 19 [3] EC icmas a ea-ow The Theory of the Riemann Zeta-function (Oo Sciece uicaios e 19 [] S ie a aoe Aaysis o agoims a aa sucues i a eeuwe e Handbook of Theoretical Computer Science, Vol. A: Algorithms and Complexity, ch. 9 (Eseie Amseam 199 31-5 [5] E Wiake a G Waso A Course of Modern Analysis (Camige Ui ess Camige 197; eie 1973 [] Wie The Laplace Transform (iceo Ui ess iceo 191 [7] S Wi Generatingfunctionology (Acaemic ess ew Yok 199 [] Wog Asymptotic Approximations of Integrals (Acaemic ess ew Yok 199