1: \begin{abstract}
2:
3: We study the number $P(n)$ of partitions of an integer $n$ into sums of distinct
4: squares and derive an integral representation of the function $P(n)$. Using
5: semiclassical and quantum statistical methods, we determine its asymptotic
6: average part $P_{as}(n)$, deriving higher-order contributions to the known
7: leading-order expression [M. Tran {\it et al.}, Ann.\ Phys.\ (N.Y.) {\bf 311},
8: 204 (2004)], which yield a faster convergence to the average values of the exact
9: $P(n)$. From the Fourier spectrum of $P(n)$ we obtain hints that integer-valued
10: frequencies belonging to the smallest Pythagorean triples $(m,p,q)$ of integers
11: with $m^2+p^2=q^2$ play an important role in the oscillations of $P(n)$. Finally
12: we analyze the oscillating part $\delta P(n)=P(n)-P_{as}(n)$ in the spirit of
13: semiclassical periodic orbit theory [M. Brack and R. K. Bhaduri: {\it
14: Semiclassical Physics} (Bolder, Westview Press, 2003)]. A semiclassical trace
15: formula is derived which accurately reproduces the exact $\delta P(n)$ for $n\simg
16: 500$ using 10 pairs of `orbits'. For $n\simg 4000$ only two pairs of orbits with the
17: frequencies 4 and 5 -- belonging to the lowest Pythagorean triple (3,4,5) -- are
18: relevant and create the prominent beating pattern in the oscillations. For $n\simg
19: 100,000$ the beat fades away and the oscillations are given by just one pair of
20: orbits with frequency 4.
21:
22: \end{abstract}