Let the five terms of the G.P. be
a, ar, ar2, ar3, ar4
Given that their mean is 1031,
5a+ar+ar2+ar3+ar4=1031
a(1+r+r2+r3+r4)=231(1)
The mean of their reciprocals is 4031,
5a1+ar1+ar21+ar31+ar41=4031
ar41+r+r2+r3+r4=831(2)
Dividing (1) by (2),
a2r4=4
Since all terms are positive,
ar2=2
Also,
ar2+ar3+ar4=14
ar2(1+r+r2)=14
2(1+r+r2)=14
1+r+r2=7
r2+r−6=0
(r+3)(r−2)=0
Since r>0,
r=2
Using ar2=2,
a(2)2=2
a=21
Hence the five terms are
21, 1, 2, 4, 8
Now,
∑ai2=(21)2+12+22+42+82
=41+1+4+16+64
=4341
Variance,
σ2=5∑ai2−(Mean)2
σ2=54341−(1031)2
=20341−100961
=1001705−961
=100744
=25186
Thus,
m=186,n=25
m+n=186+25=211
211