The energy of the lowest state is − JL, when all the spins are the same. For any other configuration, the extra energy is equal to 2 J times the number of sign changes that are encountered when scanning the configuration from left to right.