For a one-dimensional crystal of size 
where the factor in parentheses comes from the fact the sum is over nearest-neighbour pairs (), next nearest-neighbours (), ... and for a crystal of  planes, there are  pairs of nearest neighbours,  pairs of next-nearest neighbours, etc.