a^2 + b^2 =k, where k< n, print all k.