Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

All decompositions of a prime as a sum of four squares

Jacobi showed that a prime $p$ has $8(p+1)$ decompositions as sum of four squares. sage.rings.arith.four_squares computes one such decomposition. Is there a way to compute all of them?

All decompositions of a prime as a sum of four squares

Jacobi showed that a prime $p$ has $8(p+1)$ decompositions as a sum of four squares. sage.rings.arith.four_squares computes one such decomposition. Is there a way to compute all of them?