We need to find n (odd) such that the mean deviation about the mean of 1,2,3,…,n equals n5(n+1).
To begin, xˉ=2n+1.
Next, letting n=2m+1 gives xˉ=m+1.
The deviations ∣xi−xˉ∣ are: m,m−1,…,1,0,1,…,m.
Hence, the sum of deviations is 2(1+2+⋯+m)=2⋅2m(m+1)=m(m+1).
Therefore, the mean deviation is MD=nm(m+1)=2m+1m(m+1).
Equating this to n5(n+1)=2m+15(2m+2)=2m+110(m+1) and noting that m+1=0 allows division by 2m+1m+1, which yields m=10.
Therefore, n=2m+1=21.
The answer is 21.