.. _sphx_glr_api_gallery_number_theory_sums_of_squares: Sums of squares --------------- Fermat's two-squares theorem and Lagrange's four-square theorem. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /api/gallery/number_theory/sums_of_squares/images/thumb/sphx_glr_plot_01_fermat_two_squares_thumb.png :alt: :doc:`/api/gallery/number_theory/sums_of_squares/plot_01_fermat_two_squares` .. raw:: html
Fermat's two-squares theorem
.. raw:: html
.. only:: html .. image:: /api/gallery/number_theory/sums_of_squares/images/thumb/sphx_glr_plot_02_lagrange_four_squares_thumb.png :alt: :doc:`/api/gallery/number_theory/sums_of_squares/plot_02_lagrange_four_squares` .. raw:: html
Lagrange's four-square theorem
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /api/gallery/number_theory/sums_of_squares/plot_01_fermat_two_squares /api/gallery/number_theory/sums_of_squares/plot_02_lagrange_four_squares