numtheory(deprecated)
sum2sqr
the sum of two squares problem
Calling Sequence
Parameters
Description
Examples
sum2sqr(n)
n
-
integer
Important: The numtheory package has been deprecated. Use the superseding command NumberTheory[SumOfSquares] instead.
The sum2sqr returns the solutions of the sum of two squares problem.
The result is returned as in the form [[a1,b1],[a2,b2],...,[an,bn] where ai, bi are non-negative integers, ai2+bi2=n, and ai<=bi,1<=i<=n.
The command with(numtheory,sum2sqr) allows the use of the abbreviated form of this command.
with⁡numtheory:
sum2sqr⁡17
1,4
sum2sqr⁡938491
sum2sqr⁡10281960
234,3198,1014,3042,1422,2874,1446,2862,2106,2418
See Also
isolve
NumberTheory[SumOfSquares]
Download Help Document