Automated Generation of Generating Functions Related to Generalized Stern's Diatomic Arrays in the footsteps of Richard Stanley

By Shalosh B. Ekhad and Doron Zeilberger


.pdf   .ps   .tex  

Written: March 23, 2021

Exclusively published in the Personal Journal of Shalosh B. Ekhad and Doron Zeilberger and arxiv.org

Last update: June 17, 2025


Using Symbolic Dynamic Programming we describe algorithms, fully implemented in Maple, for automatically generating generating functions introduced by Richard Stanley in his study of generalized Stern arrays, generalized even further, to arrays defined in terms of general sequences satisfying linear recurrences with constant coefficients, rather than just the Fibonacci and k-bonacci sequences.


Added June 17, 2025: Congratulations to Jinlong Tang and Guoce Xin for Solving the Hard Problem on p. 2 of this paper. We were so impressed that we donated twice the promised amount to the OEIS, in other words we donated $200.

Maple packages



Sample Input and Output Files for StanleyStern.txt


Sample Input and Output Files for StanleyCF.txt


Personal Journal of SBE and DZ

Doron Zeilberger's Home Page