numtheory(deprecated)/sum2sqr - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : numtheory(deprecated)/sum2sqr

numtheory(deprecated)

  

sum2sqr

  

the sum of two squares problem

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

sum2sqr(n)

Parameters

n

-

integer

Description

• 

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 &lsqb;&lsqb;a1,b1&rsqb;,&lsqb;a2,b2&rsqb;,...,&lsqb;an,bn&rsqb; 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.

Examples

Important: The numtheory package has been deprecated.  Use the superseding command NumberTheory[SumOfSquares] instead.

withnumtheory&colon;

sum2sqr17

1&comma;4

(1)

sum2sqr938491

(2)

sum2sqr10281960

234&comma;3198&comma;1014&comma;3042&comma;1422&comma;2874&comma;1446&comma;2862&comma;2106&comma;2418

(3)

See Also

isolve

NumberTheory[SumOfSquares]