OFFSET
1,2
COMMENTS
The root mean square of a partition [x(1),..,x(k)] is sqrt((x(1)^2 + ... + x(k)^2)/k).
EXAMPLE
a(10) counts these 6 partitions: [10], [5,5], [5,3,1,1], [4,2,1,1,1,1], [2,2,2,2,2], [1,1,1,1,1,1,1,1,1,1]; e.g., [5,3,1,1] has root mean square sqrt((25 + 9 + 1 + 1)/4) = 3.
MATHEMATICA
z = 15; ColumnForm[t = Map[Select[IntegerPartitions[#], IntegerQ[RootMeanSquare[#]] &] &, Range[z]]] (* shows the partitions *)
t1 = Map[Length, t] (* A240089 *)
ColumnForm[u = Map[Select[IntegerPartitions[#], IntegerQ[ContraharmonicMean[#]] &] &, Range[z]]] (* shows the partitions *)
t2 = Map[Length, u] (* A240090 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling and Peter J. C. Moses, Apr 01 2014
STATUS
approved
