Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Finding representation of a given number as a sum of squares

Is there a quick method using Sage to find all representations of a given (possible very large) positive integer B as a sum $x_1^2+....+x_n^2$ of exactly $n$ integers $x_i >0$?

Thanks for any help

Finding representation of a given number as a sum of squares

Is there a quick method using Sage to find all representations of a given (possible very large) positive integer B as a sum $x_1^2+....+x_n^2$ of exactly $n$ integers $x_i >0$?>0$, where we can assume that $x_i \leq x_{i+1}$ for all $i$?

Thanks for any help