HP Forums

Full Version: (49g 50g) Self-convolutive sequences
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Reference URL's