WOLFRAM|DEMONSTRATIONS PROJECT

Representations by a Sum of Squares

​
squares
any
one
two
three
four
Lagrange proved that every positive integer can be written as the sum of four or fewer squares. Click a number to display the number of ordered positive sum of squares representations and the total number of representations. Equivalent distinct representations are listed as tooltips by the disk under that number. Numbers having
k
square representations are marked in individual black and white views. The colored view combines these special views to indicate similarities between numbers.