Abstract
We formalize the Legendre's three squares theorem and its consequences,
in particular the following results:
-
A natural number can be represented as the sum of
three squares of natural numbers if and only if it is not
of the form
, where and are natural numbers. -
If
is a natural number such that , then can be be represented as the sum of three squares of odd natural numbers.
-
An integer
can be written as , where , , are integers, if and only if . - The Legendre's four squares theorem: any natural number can be represented as the sum of four squares of natural numbers.