Maxima's indexing for Lists starts at 1 and for arrays at 0. If you are working with numbers only (i.e., no symbolic elements), it is better to use arrays instead of lists. It will reduce your execution times for large array operations. dp