I am having a bit of trouble with basic combinatorics pertaining to the Ising model and mean field theory. Specifically, I get that the Hamiltonian can be written
$H=-\frac{J}{2}\Sigma_{i,j} s_is_{i+j} - \mu \Sigma_i s_i B$
Where the notation in the first sum denotes sum over all spins, i, and it nearest neigbours, indexed by j. The factor of 1/2 comes from double counting.
However then in my lectures notes, and other texts, when the mean spin is replaced by s, and the 2D nearest neighbours are explicitly put in, this somehow becomes
$H=-\Sigma_i s_i (\mu B + 2DJs)$
But this seems to be off by a factors of 2!
If s is the mean spin, then the sum over the nearest neighbours is
$\Sigma_{j} s_{i+j} = 2Ds$
i.e. number of nearest neighbours multiplied by the mean spin. The factor of 2 then cancels with the factor of $\frac{1}{2}$ in the first form of the Hamiltonian, so I get that the new Hamiltonian should be
$H=-\Sigma_i s_i (\mu B + DJs)$ ?
Where has the factor of 2 gone?