Question about compute VACF

Hi
The summation comes from directly from the definition of auto-correlation.
You can see the link below for more information.
http://www.ccp5.ac.uk/DL_POLY/Democritus/Theory/vaf.html