Loading [MathJax]/jax/output/HTML-CSS/jax.js
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(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?

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, n=a2+b2, 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?