Mathematica > Mathematics and Algorithms > Mathematical Functions > Number Theoretic Functions >

SquaresR

SquaresR[d, n]
gives the number of ways r_d(n) to represent the integer n as a sum of d squares.
  • r_d(n) gives the number of ways to write , where the ni can be positive, negative or zero.
Number of ways to represent 45 as two sums of squares:
In[1]:=
Click for copyable input
Out[1]=
 
The number of integer points on a circle of radius :
In[1]:=
Click for copyable input
Out[1]=
 
Base 2 logarithm of the number of integer points on a sphere of dimension n:
In[1]:=
Click for copyable input
Out[1]=
New in 6
© 2008 Wolfram Research, Inc.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team