Each of the sums a1+2a2+⋯+nan and a11+a22+⋯+ann contains 1+2+⋯+n=2n(n+1) numbers. From the given data, the arithmetic mean A and the harmonic mean H of numbers a1,a2,a3,a3,a3,…,an,an,…,an can be calculated. We get
A=2n(n+1)a1+2a2+⋯+nan=2n(n+1)6n=n+112
and
H=a11+a22+⋯+ann2n(n+1)=2+n12n(n+1)=2(2n+1)n2(n+1)
Since all the numbers are positive, the inequality of arithmetic and geometric means states
2(2n+1)n2(n+1)=H≤A=n+112,
which is equivalent to
n2(n+1)2≤24(2n+1).
But for n≥4 we have 2n3≥264=32>24 and hence
n2(n+1)2=2n2(n+1)(2n+2)≥(2n+1)2n3>24(2n+1),
from which we conclude that n may be at most 3.
For n=1 we get the conditions a1=6 and a11=3, which is impossible. For n=2 we get the conditions a1+2a2=12 and a11+a22=25. The second condition can now only be satisfied if one of the numbers is equal to 1. If this is not the case, when a1≥2 and a2≥2, the left side of the equality is too small. The first condition says that only a2 can be odd, hence a2=1 and a1=10. This is inconsistent with the second condition. We conclude that for n=2 again such numbers a1 and a2 do not exist.
In contrast, for n=3 such three numbers can be found. Consider a1=6, a2=3 and a3=2. It holds true
a1+2a2+3a3=6+2⋅3+3⋅2=18=6⋅3
and
a11+a22+a33=61+32+23=61+4+9=614=2+31.
The only natural number that solves the problem is thus 3.