Previous Up Next

7.1.22  Solving a2+b2=p in ℤ

Any prime number congruent to 1 modulo 4 can be written as a sum of two squares. The pa2b2 command finds such a decomposition.

Example

pa2b2(17)
     

4,1
          

indeed, 17=42+12.


Previous Up Next