[math-fun] Sums of three squares
There is a nice way to calculate the number r2(n), n>0, of integer solutions (x,y) of x^2 + y^2 = n. Factor n as n = p1^a1 p2^a2 ... q1^b1 q2^b2 ... 2^c, where the p's are primes == 1 mod 4, and the q's are primes == 3 mod 4. Then r2(n) = if any b is odd, then 0 else, 4 (1 + a1) (1 + a2) ... . Is there a similar formula for the number r3(n) of integer solutions (x,y,z) of x^2 + y^2 + z^2 = n ? __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com
Eugene Salamin wrote:
Is there a similar formula for the number r3(n) of integer solutions (x,y,z) of
x^2 + y^2 + z^2 = n ?
Davenport in The Higher Arithmetic says (end of chapter V, after discussing two and four squares) "The number of representations by three squares is a much more recondite function, but can be expressed in terms of certain class numbers of quadratic forms." Looking in Dickson's History of the Theory of Numbers, vol 3, p.109: if 12E(n) is the number of representations of n as a sum of three squares, then E(n) = 2F(n) - G(n) where G(n) = number of classes of determinant -n F(n) = number of uneven classes [of determinant -n ?] This is due to Kronecker. Class here means equivalence class of binary quadratic forms, I presume. I don't know what an "uneven" class is. There may be some constants omitted here. Gary McGuire
participants (2)
-
Eugene Salamin -
Gary McGuire