Skip to main content
QUICK REVIEW

[Paper Review] A variant of van Hoeij's algorithm to compute hypergeometric term solutions of holonomic recurrence equations

Bertrand Teguia Tabuguia|arXiv (Cornell University)|Dec 21, 2020
Polynomial and algebraic computationComputer Science2 citations
TL;DR

This paper presents a variant of van Hoeij's algorithm for computing hypergeometric term solutions of holonomic recurrence equations, using factorial and shifted factorial representations instead of Gamma functions. The method maintains the same efficiency as van Hoeij’s original algorithm while producing outputs more suitable for symbolic computation and power series representations, and it successfully handles cases where Maple’s LREtools[hypergeomsols] fails due to bugs in algebraic number handling.

ABSTRACT

Linear homogeneous recurrence equations with polynomial coefficients are said to be holonomic. Such equations have been introduced in the last century for proving and discovering combinatorial and hypergeometric identities. Given a field K of characteristic zero, a term a(n) is called hypergeometric with respect to K, if the ratio a(n+1)/a(n) is a rational function over K. The solutions space of holonomic recurrence equations gained more interest in the 1990s from the well known Zeilberger's algorithm. In particular, algorithms computing the subspace of hypergeometric term solutions which covers polynomial, rational, and some algebraic solutions of these equations were investigated by Marko Petkov\v{s}ek (1993) and Mark van Hoeij (1999). The algorithm proposed by the latter is characterized by a much better efficiency than that of the other; it computes, in Gamma representations, a basis of the subspace of hypergeometric term solutions of any given holonomic recurrence equation, and is considered as the current state of the art in this area. Mark van Hoeij implemented his algorithm in the Computer Algebra System (CAS) Maple through the command $LREtools[hypergeomsols]$. We propose a variant of van Hoeij's algorithm that performs the same efficiency and gives outputs in terms of factorials and shifted factorials, without considering certain recommendations of the original version. We have implementations of our algorithm for the CASs Maxima and Maple. Such an implementation is new for Maxima which is therefore used for general-purpose examples. Our Maxima code is currently available as a third-party package for Maxima. A comparison between van Hoeij's implementation and ours is presented for Maple 2020. It appears that both have the same efficiency, and moreover, for some particular cases, our code finds results where $LREtools[hypergeomsols]$ fails.

Motivation & Objective

  • To develop a more practical variant of van Hoeij’s algorithm that outputs solutions in terms of factorials and shifted factorials rather than Gamma functions.
  • To improve compatibility with symbolic computation systems like Maxima and future CASs by avoiding reliance on Gamma function representations.
  • To address known bugs in Maple’s LREtools[hypergeomsols] when handling algebraic numbers and rational functions.
  • To enable reliable computation of hypergeometric term solutions for holonomic recurrence equations in cases where existing implementations fail.
  • To support the construction of power series representations of holonomic functions via hypergeometric term solutions.

Proposed method

  • The algorithm uses asymptotic expansion techniques inspired by Petkovšek’s Poly method to compute local types at infinity, replacing the Newton polygon approach used in van Hoeij’s original algorithm.
  • It constructs the hypergeometric part h(n) as a product of factorials and Pochhammer symbols (p)_n, normalized to lie in the interval (0,1] for uniqueness.
  • Finite singularities are handled by analyzing the roots of P0(n) and Pd(n−d) modulo integers, ensuring correct valuation growths are captured in the solution structure.
  • The method automatically incorporates valuation growth conditions at finite singularities through monic factorization of polynomial coefficients modulo Z.
  • It avoids unnecessary field extensions by working directly over the base field K, preserving efficiency and reducing computational overhead.
  • Implementations are provided in Maxima (as a third-party package) and Maple, with careful simplification and order control for asymptotic expansions.

Experimental results

Research questions

  • RQ1Can a variant of van Hoeij’s algorithm be designed to produce hypergeometric term solutions in factorial and Pochhammer symbol form without sacrificing computational efficiency?
  • RQ2Why does Maple’s LREtools[hypergeomsols] fail on certain recurrence equations involving algebraic numbers, and can this be resolved with a redesigned algorithm?
  • RQ3How does the performance of the new algorithm compare to van Hoeij’s original implementation and other CAS tools in handling edge cases?
  • RQ4To what extent can the new algorithm recover solutions that are missed by existing implementations due to internal bugs or limitations?
  • RQ5Can the use of factorial-based representations improve the reliability and usability of hypergeometric term solutions in symbolic power series computations?

Key findings

  • The proposed algorithm achieves the same efficiency as van Hoeij’s original algorithm, with comparable or slightly better performance in certain benchmarks.
  • The implementation in Maxima successfully computes solutions where Maple’s LREtools[hypergeomsols] fails, particularly in cases involving algebraic numbers.
  • The algorithm correctly computes hypergeometric term solutions for recurrence equations with irrational or algebraic coefficients, such as those involving √7 or ln(x), where Maple’s internal commands fail.
  • Maple’s LREtools[hypergeomsols] fails on examples with algebraic numbers due to recursion depth errors and improper handling of RootOf representations, which the new algorithm avoids.
  • The new algorithm produces outputs in a more usable symbolic form—factorials and Pochhammer symbols—making them directly suitable for power series and m-fold hypergeometric term constructions.
  • The implementation demonstrates robustness in handling complex cases, including interlaced hypergeometric sequences and symbolic parameters, confirming theoretical equivalence with van Hoeij’s method.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.