Let (n(n+1)2)=N
Expected value for counter 1 =1N×1
Expected value for counter 4 =2N×4=23N
Expected value for counter marked 9 =3N×9=33N
Similarly finding the expected value for each counter
Thus total expected value =13N+23N+33N................n3N
=13+23+33...........n3N=(n(n+1)2)2(n(n+1)2)=(n(n+1)2)