Jump to content

Sum of squares function

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Raulshc (talk | contribs) at 13:02, 17 March 2016 (+article (stub) under CC BY-SA 3.0 and the GFDL licenses). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The sum of square function is an arithmetic function that gives the number of representations for a given positive integer n as the sum of k squares, where representations that differ only in the order of the summands or in the signs of the square roots are counted as different and is denoted by rk(n).

Definition

The function is defined as

where |.| denotes the cardinality of the set.

Particular cases

The number of ways to write a natural number as sum of two squares is given by r2(n). It is given explicitly by

where d1(n) is the number of divisors of n which are congruent with 1 modulo 4 and d3(n) is the number of divisors of n which are congruent with 3 modulo 4.

See also

  • Weisstein, Eric W. "Sum of Squares Function". MathWorld.