In A065611 it says: "Least k such that n^2 + Sum (from 1 to k) m^2 is a prefect square. " Aren't they funny, these "prefect" numbers? ;-P Obviously it should say "perfect". Jose