Math 2.0

Special functions Definition

Gosper's algorithm

Builds on Rational functionPolynomial greatest common divisorRecurrence relation

Definition

Let tkt_k be a hypergeometric term in kk over a field of characteristic 00. This means that tk≠0t_k \ne 0 and that r(k)=tk+1/tkr(k) = t_{k+1}/t_k is a rational function of kk. Gosper's algorithm takes tkt_k and either returns a hypergeometric term TkT_k with Tk+1−Tk=tkT_{k+1} - T_k = t_k, or reports that no such term exists. It runs as follows.

  1. Write r(k)=a(k)b(k)⋅c(k+1)c(k)r(k) = \dfrac{a(k)}{b(k)}\cdot\dfrac{c(k+1)}{c(k)} with polynomials a,b,ca, b, c such that gcd⁡(a(k),b(k+h))=1\gcd\big(a(k), b(k + h)\big) = 1 for every integer h≥0h \ge 0 (a polynomial gcd condition).
  2. Search for a polynomial x(k)x(k) with a(k) x(k+1)−b(k−1) x(k)=c(k),a(k)\,x(k + 1) - b(k - 1)\,x(k) = c(k), using a bound on its degree computed from aa, bb, cc and linear algebra on its coefficients.
  3. If such an xx exists, return Tk=b(k−1) x(k)c(k) tkT_k = \dfrac{b(k - 1)\,x(k)}{c(k)}\,t_k. Otherwise report that tkt_k has no hypergeometric indefinite sum.

Remarks

Check of step 3: with y(k)=b(k−1)x(k)/c(k)y(k) = b(k-1)x(k)/c(k), one has Tk+1−Tk=(y(k+1)r(k)−y(k))tkT_{k+1} - T_k = \big(y(k + 1)r(k) - y(k)\big)t_k, and y(k+1)r(k)−y(k)=(a(k)x(k+1)−b(k−1)x(k))/c(k)=1y(k+1)r(k) - y(k) = \big(a(k)x(k+1) - b(k-1)x(k)\big)/c(k) = 1 by step 2. Gosper's theorem says that the method is complete: if some hypergeometric TkT_k works, then Tk/tkT_k/t_k is rational and the equation in step 2 has a polynomial solution. Example: tk=k⋅k!t_k = k\cdot k! has r(k)=(k+1)2/kr(k) = (k + 1)^2/k; take a(k)=k+1a(k) = k + 1, b(k)=1b(k) = 1, c(k)=kc(k) = k, which satisfy the gcd condition. The equation (k+1)x(k+1)−x(k)=k(k + 1)x(k + 1) - x(k) = k has the solution x=1x = 1, so Tk=k!T_k = k! for k≥1k \ge 1, and indeed (k+1)!−k!=k⋅k!(k + 1)! - k! = k\cdot k!. Non-example: for tk=1/(k+1)t_k = 1/(k + 1) the algorithm reports failure, since the partial sums are harmonic numbers, which are not a hypergeometric term. The equation of step 2 is a linear recurrence with polynomial coefficients for the unknown polynomial xx.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Polynomial greatest common divisor concept
  2. Rational function concept
  3. Recurrence relation concept
  4. Gosper's algorithm definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Gosper%27s_algorithm
About this page
TagWTXMRG6WR4
URIm2://WTXMRG6WR4
Kinddefinition
WritingW0 stub
MSC33F10, 68W30, 39A10
DefinesGosper's algorithm
UsesRational function, Polynomial greatest common divisor, Recurrence relation

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.