The condition for an integer x to be a sum of two squares in more than one way is that x should have at least two prime factors of the form 4k+1. For example, , and , with both 5 and 13 being a multiple of 4 plus 1. But there is no particular relation between the pairs of numbers (1,8) and (4,7) occurring in those decompositions.