Processing math: 42%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sum of 2 squares

If the factorization of the integer n is either n=pa11pass or n=2pa11pass, where all pi are primes of form 4k+1, then n has 2s1 representations as n=a2+bs, where gcd (see for example this post ). The SAGE command sum_of_k_squares(2,n) will give one such representation. Is there a way to find all of them?

sum of 2 squares

If the factorization of the integer n is either n=p_1^{a_1}\cdots p_s^{a_s} or n=2p_1^{a_1}\cdots p_s^{a_s}, where all p_i are primes of form 4k+1, then n has 2^{s-1} representations as n=a^2+b^s, n=a^2+b^2, where \gcd(a,b)=1 (see for example this post ). The SAGE command sum_of_k_squares(2,n) will give one such representation. Is there a way to find all of them?