"Consider a N X M array with every diagonal or subdiagonal, if it has length L, containing a permutation of 1..L" Maybe I have to add "or antidiagonal or subantidiagonal," to get the words right. rhhardin at mindspring.com rhhardin at att.net (either)