gosper - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


sumtools

  

gosper

  

Gosper's algorithm for summation

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

gosper(f, k)

gosper(f, k=m..n)

Parameters

f

-

expression

k

-

name, summation variable

m, n

-

expressions, representing upper and lower summation bounds

Description

• 

This function is an implementation of Gosper's algorithm, and calculates a closed form (upward) antidifference of a closed form expression f whenever a closed form (upward) antidifference exists. In this case, the procedure can be used to calculate definite sums

k=mnfk

  

whenever f does not depend on variables occurring in m and n.

• 

An expression f is called closed form with respect to k if

subsk=k+1,ff

  

is rational with respect to k. This is typically the case for ratios of products of rational functions, exponentials, factorials, binomial coefficients, and Pochhammer symbols that are integer-linear in their arguments. The implementation supports this type of input.

• 

An expression g is called closed form upward antidifference of f if

f=subsk=k+1,gg

• 

If the second argument k is a name, then gosper returns the closed form (upward) antidifference of f with respect to k, or FAIL, if either the input function is no closed form expression, or no closed form antidifference exists.  Which of these cases applies, can be seen with infolevelsum2 .

• 

If the second argument has the form k=m..n then the definite sum

k=mnfk

  

is determined if Gosper's algorithm applies.

• 

The command with(sumtools,gosper) allows the use of the abbreviated form of this command.

Examples

withsumtools:

see (SIAM Review, 1994, Problem 94-2)

gosper1k+14k+12k!k!4k2k1k+1!,k

2k+1−1k+12k!k!4k2k1k+1!

(1)

gosperbinomialk,n,k

knknn+1

(2)

gosperbinomialn,k2nbinomialn1,k2n1,k

knk2nn1k2n12kn

(3)

gosperpochhammerk,n,k

k1pochhammerk,nn+1

(4)

gosperpochhammerb,kk!,k=0..n

n+1pochhammerb,n+1bn+1!

(5)

gosperk2!,k

FAIL

(6)

gosper1k,k

FAIL

(7)

See Also

sum

sumtools

SumTools[Hypergeometric][Gosper]