HP Forums
(49g 50g) Self-convolutive sequences - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (49g 50g) Self-convolutive sequences (/thread-14473.html)

(49g 50g) Self-convolutive sequences - John Keith - 02-06-2020 10:02 PM

This simple program can generate a vast number of integer sequences, many relating to graph theory, combinatorics and theoretical physics. For a list of named sequences, see the CROSSREFS section of A172455. The theory behind the program is explained in this paper.

To use the program, level 2 should have a list of 3 integers on level 2, as explained in the two above links. Level 1 should have an integer indicating the number of terms to be returned in the output list. The program should be run in exact mode due to the sizes of the numbers involved.


\<< SWAP EVAL \-> n a1 a2 a3
  \<< { 1 } 2 n
OVER k 1 - GET k a1 * a2 + * + +

For additional entertainment, look at the description of A167872. Confused