Gosper's algorithm

Gosper's algorithm

In mathematics, Gosper's algorithm is a procedure for finding sums of hypergeometric terms that are themselves hypergeometric terms. That is: suppose we have a(1) + ... + a(n) = S(n)-S(0), where S(n) is a hypergeometric term (i.e., S(n+1)/S(n) is a rational function of n); then necessarily a(n) is itself a hypergeometric term, and given the formula for a(n) Gosper's algorithm finds that for S(n).

Outline of the algorithm

Step 1: Find a polynomial p such that, writing b(n)=a(n)/p(n), the ratio b(n)/b(n-1) has the form q(n)/r(n) where q and r are polynomials and no q(n) has a nontrivial factor with r(n+j) for j = 0,1,2,... . (This is always possible, whether or not the series is summable in closed form.)

Step 2: Find a polynomial f such that S(n) = q(n+1)/p(n) f(n) a(n). If the series is summable in closed form then clearly a rational function f with this property exists; in fact it must always be a polynomial, and an upper bound on its degree can be found. Determining f (or finding that there is no such f) is then a matter of solving a system of linear equations.

Relationship to Wilf-Zeilberger pairs

Gosper's algorithm can be used to discover Wilf-Zeilberger pairs, where they exist. Suppose that F(n+1,k) - F(n,k) = G(n,k+1) - G(n,k) where F is known but G is not. Then feed a(k) := F(n+1,k)-F(n,k) into Gosper's algorithm. (Treat this as a function of k whose coefficients happen to be functions of n rather than numbers; everything in the algorithm works in this setting.) If it successfully finds S(k) with S(k)-S(k-1)=a(k), then we are done: this is the required G. If not, there is no such G.

Definite versus indefinite summation

Gosper's algorithm finds (where possible) a hypergeometric closed form for the "indefinite" sum of hypergeometric terms. It can happen that there is no such closed form, but that the sum over "all" n, or some particular set of values of n, has a closed form. This question is only meaningful when the coefficients are themselves functions of some other variable. So, suppose a(n,k) is a hypergeometric term in both n and k: that is, a(n,k)/a(n-1,k) and a(n,k)/a(n,k-1) are rational functions of n and k. Then Zeilberger's algorithm and Petkovšek's algorithm may be used to find closed forms for the sum over k of a(n,k).

History

Bill Gosper discovered this algorithm in the 1970s while working on the Macsyma computer algebra system at SAIL and MIT.

Further reading

*Marko Petkovsek, Herbert Wilf and Doron Zeilberger, "A=B", AK Peters 1996, ISBN 1568810636. Full text online. [http://www.math.upenn.edu/~wilf/AeqB.html]
* [http://www.pnas.org/cgi/reprint/75/1/40.pdf Gosper's 1977 article in PNAS] reporting on the algorithm.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Bill Gosper — Infobox Person name = Ralph William Gosper, Jr image size = 150px birth date = 1943 birth place = occupation = Programmer employer = residence = nationality = American field = computer scientist, mathemtician work institutions = Xerox PARC,… …   Wikipedia

  • Floyd–Warshall algorithm — In computer science, the Floyd–Warshall algorithm (sometimes known as the WFI Algorithm or Roy–Floyd algorithm, since Bernard Roy described this algorithm in 1959) is a graph analysis algorithm for finding shortest paths in a weighted, directed… …   Wikipedia

  • Computer algebra system — A computer algebra system (CAS) is a software program that facilitates symbolic mathematics. The core functionality of a CAS is manipulation of mathematical expressions in symbolic form. Contents 1 Symbolic manipulations 2 Additional capabilities …   Wikipedia

  • Wilf–Zeilberger pair — In mathematics, specifically combinatorics, a Wilf–Zeilberger pair, or WZ pair, is a pair of functions that can be used to certify certain combinatorial identities. In particular, WZ pairs are instrumental in the evaluation of many sums involving …   Wikipedia

  • Hypergeometric identities — In mathematics, hypergeometric identities are equalities involving sums over hypergeometric terms, i.e. the coefficients occurring in hypergeometric series. These identities occur frequently in solutions to combinatorial problems, and also in the …   Wikipedia

  • Hashlife — is an algorithm for computing the long term fate of a given starting configuration in various Life rules. The algorithm was invented by Bill Gosper in the early 1980s while he was engaged in research at the Xerox Palo Alto research center.… …   Wikipedia

  • Continued fraction — Finite continued fraction, where a0 is an integer, any other ai are positive integers, and n is a non negative integer. In mathematics, a continued fraction is an expression obtained through an iterative process of representing a number as the… …   Wikipedia

  • Conway's Game of Life — Conway game , which redirects to here, can also refer to games as defined by surreal numbers, which John Conway also developed …   Wikipedia

  • The Art of Computer Programming — [ [http://www cs faculty.stanford.edu/ uno/taocp.html The Art of Computer Programming ] ] is a comprehensive monograph written by Donald Knuth that covers many kinds of programming algorithms and their analysis. Knuth began the project, which was …   Wikipedia

  • Two's complement — The two s complement of a binary number is defined as the value obtained by subtracting the number from a large power of two (specifically, from 2 N for an N bit two s complement).A two s complement system or two s complement arithmetic is a… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”