ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 09 May 2012 03:51:59 +0200All decompositions of a prime as a sum of four squareshttps://ask.sagemath.org/question/8963/all-decompositions-of-a-prime-as-a-sum-of-four-squares/Jacobi [showed](http://en.wikipedia.org/wiki/Jacobi%27s_four-square_theorem) 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?
parzanWed, 09 May 2012 03:51:59 +0200https://ask.sagemath.org/question/8963/