Sum of squares function

The sum of squares 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. In other words, rk(n) is the number of ways n can be written as a sum of k squares.

For example, , since , where every sum has 2 sign combinations, and also , since with 4 sign combinations. On the other hand is , because there exists no way to represent 3 as a sum of two squares.


The first 30 values for

n=r1(n)r2(n)r3(n)r4(n)r5(n)r6(n)r7(n)r8(n)
0011111111
11246810121416
22041224406084112
330083280160280448
42224624902525741136
550824481123128402016
62300249624054412883136
770006432096023685504
823041224200102034449328
9322430104250876354212112
102508241445601560442414112
11110024965602400756021312
12223008964002080924031808
131308241125602040845635168
1427004819280032641108838528
153500019296041601657656448
16242462473040921849474864
1717084814448034801780878624
182320436312124043801974084784
191900241601520720027720109760
202250824144752655234440143136
213700482561120460829456154112
2221100242881840816031304149184
232300019216001056049728194688
242330024961200822452808261184
2552212302481210781243414252016
26213087233620001020052248246176
2733003232022401312068320327040
2822700019216001248074048390784
2929087224016801010468376390240
30235004857627201414471120395136

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. Using sums, the expression can be written as:

The prime factorization , where are the prime factors of the form and are the prime factors of the form gives another formula

, if all exponents are even. If one or more are odd, then .

The number of ways to represent n as the sum of four squares was due to Carl Gustav Jakob Jacobi and it is eight times the sum of all its divisors which are not divisible by 4, i.e.

Jacobi also found an explicit formula for the case k=8:

The generating function of the sequence for fixed k can be expressed in terms of the Jacobi theta function:[1]

where

gollark: Is it in the AP or something?
gollark: How many magi do you have?
gollark: You can hunt on mobile, just poorly.
gollark: Night Furies?
gollark: Another idea: GoNs should show their "parentage" as the trio which summoned them.

See also

References

  1. Milne, Stephen C. (2002). "Introduction". Infinite Families of Exact Sums of Squares Formulas, Jacobi Elliptic Functions, Continued Fractions, and Schur Functions. Springer Science & Business Media. p. 9. ISBN 1402004915.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.