mhypergeomsols - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


LREtools

  

mhypergeomsols

  

compute m-fold hypergeometric term solutions of holonomic recurrence equations

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

mhypergeomsols(rec, a(n), field, mj=[m,j])

Parameters

rec

-

holonomic recurrence equation

a(n)

-

unknown recurrence term, where n is the index variable

field

-

(optional) either complex or rational (default)

mj=[m,j]

-

(optional) list of two non-negative integers m&comma;j, where 0≤j<m, to compute a specific m-fold hypergeometric term solution of rec

Description

• 

The LREtools[mhypergeomsols] command computes m-fold hypergeometric term solutions of holonomic recurrence equations, i.e. linear homogeneous recurrence equation with polynomial coefficients, where m is a positive integer. An m-fold hypergeometric term a⁡n is such that a⁡n+ma⁡n is a rational function of n over the considered field.

• 

All appearances of the dependent variable a(.) in the rec must be of the form a⁡n+k, where k is an integer.

• 

The output is a list of pairs m&comma;Hm, where m is a positive integer and Hmis a nonempty set of hypergeometric terms, or, when mj=[m,j] is specified, just a single set Hm of hypergeometric terms.

– 

When mj is not specified, each h∈Hm corresponds to an m-fold hypergeometric term t via t⁡nm=h⁡n for n≥0 and t⁡k=0 when m does not divide k&gt;0.

– 

When mj=[m,j] is given, each h∈Hm corresponds to an m-fold hypergeometric term t via t⁡nm+j=h⁡n for n≥0 and t⁡k=0 when k≥0 and m does not divide k−j.

• 

In the former case, when mj is not given, for all positive integers m occurring in the result, the set of corresponding m-fold hypergeometric terms constitutes a basis of the solution space for j=0. The other solutions can be computed afterwards by calling mhypergeomsols with mj=[m,j], where m is a value taken from the result and 0≤j<m.

• 

The field of computation is controlled by the field parameter. When complex is supplied, the computation considers algebraic extension fields; this includes solutions containing symbols. By default, field equals rational and the corresponding field is the rational field ℚ without any symbols.

Examples

> 

with⁡LREtools&colon;

> 

RE≔n+1⁢n+2⁢n+3⁢n+4⁢a⁡n+4+10⁢n+1⁢n+2⁢a⁡n+2+9⁢a⁡n=0

RE≔n+1⁢n+2⁢n+3⁢n+4⁢a⁡n+4+10⁢n+1⁢n+2⁢a⁡n+2+9⁢a⁡n=0

(1)
> 

sol≔mhypergeomsols⁡RE&comma;a⁡n

sol≔2&comma;−9n2⁢n!&comma;−1n2⁢n!

(2)
> 

sol1≔unapply⁡eval⁡op⁡1&comma;2&comma;1&comma;sol&comma;n=n2&comma;n

sol1≔n↦−9n2n!

(3)
> 

normal⁡expand⁡eval⁡RE&comma;a=sol1

0=0

(4)
> 

sol2≔unapply⁡eval⁡op⁡1&comma;2&comma;2&comma;sol&comma;n=n2&comma;n

sol2≔n↦−1n2n!

(5)
> 

normal⁡expand⁡eval⁡RE&comma;a=sol2

0=0

(6)

One finds more solutions when allowing algebraic extension fields.

> 

mhypergeomsols⁡RE&comma;a⁡n&comma;complex

1&comma;RootOf⁡_Z2+1nn!&comma;RootOf⁡_Z2+9nn!&comma;2&comma;−9n2⁢n!&comma;−1n2⁢n!

(7)

The algebraic form (without RootOf) can be obtained using allvalues.

> 

map⁡allvalues&comma;mhypergeomsols⁡RE&comma;a⁡n&comma;complex&comma;mj=1&comma;0

−3⁢Inn!&comma;−Inn!&comma;Inn!&comma;3⁢Inn!

(8)

These latter hypergeometric terms (for m=1 only) can also be computed using LREtools[hypergeomsols].

> 

hypergeomsols⁡RE&comma;a⁡n&comma;∅&comma;output=basis

−3⁢InΓ⁡n+1&comma;3⁢InΓ⁡n+1&comma;InΓ⁡n+1&comma;−InΓ⁡n+1

(9)

As done with mj=1&comma;0, one can recover the 2-fold hypergeometric solutions similarly. Below we compute the other interlacing terms related to these solutions. They correspond to mj=2&comma;1.

> 

sol≔mhypergeomsols⁡RE&comma;a⁡n&comma;complex&comma;mj=2&comma;1

sol≔−9n2⁢n+1⁢2⁢n!&comma;−1n2⁢n+1⁢2⁢n!

(10)
> 

sol1≔unapply⁡eval⁡sol1&comma;n=n−12&comma;n

sol1≔n↦−9n2−12n⋅n−1!

(11)
> 

normal⁡expand⁡eval⁡RE&comma;a=sol1

0=0

(12)
> 

sol2≔unapply⁡eval⁡sol2&comma;n=n−12&comma;n

sol2≔n↦−1n2−12n⋅n−1!

(13)
> 

normal⁡expand⁡eval⁡RE&comma;a=sol2

0=0

(14)

More examples.

> 

RE≔n+1⁢a⁡n−4−p⁢n+1⁢a⁡n−2−q⁢n+1⁢a⁡n−1+p⁢q⁢n+1⁢a⁡n+1=0

RE≔n+1⁢a⁡n−4−p⁢n+1⁢a⁡n−2−q⁢n+1⁢a⁡n−1+p⁢q⁢n+1⁢a⁡n+1=0

(15)
> 

mhypergeomsols⁡RE&comma;a⁡n&comma;complex

1&comma;RootOf⁡p⁢_Z2−1n&comma;RootOf⁡q⁢_Z3−1n&comma;2&comma;1pn&comma;3&comma;1qn

(16)
> 

RE≔−9⁢n−132⁢a⁡n−13+3⁢n−19⁢n−102⁢a⁡n−10−18⁢n−9⁢n−11⁢a⁡n−9+3⁢n−10⁢n−72⁢a⁡n−7+6⁢n−6⁢n2−21⁢n+116⁢a⁡n−6−9⁢n−5⁢n−9⁢a⁡n−5+2⁢n−6⁢n−17⁢n−3⁢a⁡n−3+3⁢n−2⁢n−6⁢n−7⁢a⁡n−2−n−2⁢n−3⁢n+1⁢a⁡n+1=0

RE≔−9⁢n−132⁢a⁡n−13+3⁢n−19⁢n−102⁢a⁡n−10−18⁢n−9⁢n−11⁢a⁡n−9+3⁢n−10⁢n−72⁢a⁡n−7+6⁢n−6⁢n2−21⁢n+116⁢a⁡n−6−9⁢n−5⁢n−9⁢a⁡n−5+2⁢n−6⁢n−17⁢n−3⁢a⁡n−3+3⁢n−2⁢n−6⁢n−7⁢a⁡n−2−n−2⁢n−3⁢n+1⁢a⁡n+1=0

(17)
> 

mhypergeomsols⁡RE&comma;a⁡n

3&comma;1n!&comma;4&comma;−1nn

(18)
> 

RE≔5⁢n−6⁢n−112⁢a⁡n−11−5⁢n−5⁢n−102⁢a⁡n−10−3⁢2⁢n−19⁢n−4⁢n−9⁢a⁡n−9+3⁢2⁢n−17⁢n−3⁢n−8⁢a⁡n−8−3⁢n−2⁢n−7⁢a⁡n−7−n−6⁢97⁢n−597⁢a⁡n−6+n−5⁢97⁢n−500⁢a⁡n−5−n−4⁢2⁢n2−115⁢n+513⁢a⁡n−4+n−3⁢2⁢n2−111⁢n+400⁢a⁡n−3−3⁢n−2⁢n−7⁢a⁡n−2−n−1⁢5⁢n−8⁢n−6⁢a⁡n−1+n⁢5⁢n−3⁢n−5⁢a⁡n+4⁢n⁢n+1⁢n−4⁢a⁡n+1−4⁢n+1⁢n+2⁢n−3⁢a⁡n+2=0

RE≔5⁢n−6⁢n−112⁢a⁡n−11−5⁢n−5⁢n−102⁢a⁡n−10−3⁢2⁢n−19⁢n−4⁢n−9⁢a⁡n−9+3⁢2⁢n−17⁢n−3⁢n−8⁢a⁡n−8−3⁢n−2⁢n−7⁢a⁡n−7−n−6⁢97⁢n−597⁢a⁡n−6+n−5⁢97⁢n−500⁢a⁡n−5−n−4⁢2⁢n2−115⁢n+513⁢a⁡n−4+n−3⁢2⁢n2−111⁢n+400⁢a⁡n−3−3⁢n−2⁢n−7⁢a⁡n−2−n−1⁢5⁢n−8⁢n−6⁢a⁡n−1+n⁢5⁢n−3⁢n−5⁢a⁡n+4⁢n⁢n+1⁢n−4⁢a⁡n+1−4⁢n+1⁢n+2⁢n−3⁢a⁡n+2=0

(19)
> 

mhypergeomsols⁡RE&comma;a⁡n

1&comma;−1n&comma;2&comma;n!2⁢4nn2⁢2⁢n!&comma;5&comma;−1n

(20)

The recurrence equation may contain symbolic functions.

> 

RE≔−2⁢exp⁡x2⁢ln⁡x12⁢n−152⁢a⁡n−15+exp⁡x⁢ln⁡x12⁢n−19⁢n−132⁢a⁡n−13+ln⁡x12⁢n−13⁢n−112⁢a⁡n−11−4⁢exp⁡x2⁢ln⁡x6⁢n−9⁢n−12⁢a⁡n−9+2⁢exp⁡x⁢ln⁡x6⁢n−7⁢n2−20⁢n+127⁢a⁡n−7−ln⁡x6⁢n−5⁢n+19⁢n−7⁢a⁡n−5−2⁢exp⁡x2⁢n−3⁢n−9⁢a⁡n−3+exp⁡x⁢n−7⁢n−12⁢a⁡n−1−2⁢n−5⁢n−1⁢n+1⁢a⁡n+1=0

RE≔−2⁢&ExponentialE;x2⁢ln⁡x12⁢n−152⁢a⁡n−15+&ExponentialE;x⁢ln⁡x12⁢n−19⁢n−132⁢a⁡n−13+ln⁡x12⁢n−13⁢n−112⁢a⁡n−11−4⁢&ExponentialE;x2⁢ln⁡x6⁢n−9⁢n−12⁢a⁡n−9+2⁢&ExponentialE;x⁢ln⁡x6⁢n−7⁢n2−20⁢n+127⁢a⁡n−7−ln⁡x6⁢n−5⁢n+19⁢n−7⁢a⁡n−5−2⁢&ExponentialE;x2⁢n−3⁢n−9⁢a⁡n−3+&ExponentialE;x⁢n−7⁢n−12⁢a⁡n−1−2⁢n−5⁢n−1⁢n+1⁢a⁡n+1=0

(21)
> 

mhypergeomsols⁡RE&comma;a⁡n&comma;complex

1&comma;−I⁢ln⁡xnn&comma;I⁢ln⁡xnn&comma;−−I+3⁢ln⁡x2nn&comma;−I+3⁢ln⁡x2nn&comma;−3+I⁢ln⁡x2nn&comma;3+I⁢ln⁡x2nn&comma;2&comma;−ln⁡x2nn&comma;1+I⁢3⁢ln⁡x22nn&comma;−I⁢3−1⁢ln⁡x22nn&comma;&ExponentialE;xnn!&comma;3&comma;−I⁢ln⁡x3nn&comma;I⁢ln⁡x3nn&comma;6&comma;−ln⁡x6nn

(22)

References

  

Bertrand Teguia Tabuguia and Wolfram Koepf. Symbolic conversion of holonomic functions to hypergeometric type power series. Computer Algebra issue of the Journal of Programming and Computer Software. February 2022.

  

Bertrand Teguia Tabuguia. Power Series Representations of Hypergeometric Type and Non-Holonomic Functions in Computer Algebra. Ph.D. thesis. University of Kassel, Germany. May 2020.

  

Bertrand Teguia Tabuguia. A variant of van Hoeij's algorithm to compute hypergeometric term solutions of holonomic recurrence equations. arXiv:2012.11513 [cs.SC]. December 2020.

Compatibility

• 

The LREtools[mhypergeomsols] command was introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

convert/FormalPowerSeries

DEtools[FindODE]

gfun[diffeqtorec]

LREtools[hypergeomsols]

Slode[mhypergeom_series_sol]