How strange! I just remarked that our two solutions, mine with "zmax<-:peri" and yours with "zmax<:-:peri", lead to the same sequence with just a three step offset!
> http://oeis.org/A005044 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
