OFFSET
1,2
LINKS
Bradley K. Moon and Noah A. Rosenberg, Integer Sequences for Diversity Statistics, J. Int. Seq. 29(1) (2026), 26.1.5. See p. 9.
Bruce Reznick, The sum of the squares of the parts of a partition, and some related questions, J. Number Theory 33 (1989), 199-208.
Peter Winkler, Mean distance in a tree, Discr. Appl. Math. (1990), 179-185.
FORMULA
a(n) ~ n^2-2*sqrt(2)*n^(3/2)+O(n^(5/4)) (Reznick 1989, p. 201).
EXAMPLE
Consider n=3: 3 and 5 can be written as sums of squares of partitions of 3, as 3=1^2+1^2+1^2 and 5=2^2+1^2, but 7 cannot be written as a sum of squares of a partition of 3, so a(3)=5.
Consider n=4: 4, 6, 8, and 10 can be written as sums of squares of partitions of 4, as 4=1^2+1^2+1^2+1^2, 6=2^2+1^2+1^2, 8=2^2+2^2, and 10=3^2+1^2, but 12 cannot be written as a sum of squares of a partition of 4, so a(4)=10.
CROSSREFS
KEYWORD
nonn
AUTHOR
Noah A Rosenberg, May 05 2025
STATUS
approved
