[seqfan] Re: A063841

Richard Mathar mathar at strw.leidenuniv.nl
Sun Jan 22 13:21:37 CET 2012


http://list.seqfan.eu/pipermail/seqfan/2012-January/016298.html says

hpd> First, it needs to invoke the Combinatorica package before it is run.  Second, it then generates a grid but not the terms of the sequence (because the terms of the sequence require reading the grid by anti-diagonals).  How should the program be fixed?

All programs that deal with triangles or arrays should first define a function
that computes an element of the array (for the correct index combination and
the correct offset). Then, *separately* and optionally, add a code which
lists the terms in sequentialized (linearized) manner
...called modularity by programmers.
A code that merges these two aspects is rarely helpful to those who
need to use this afterwards. Of course, the code should use a naming convention
like Axxxxx for the main function such that manual editing is minimized
while re-using it.

RJM



More information about the SeqFan mailing list