Representations by a Sum of Squares

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 square representations are marked in individual black and white views. The colored view combines these special views to indicate similarities between numbers.



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Related Curriculum Standards

US Common Core State Standards, Mathematics