Mean field theory for long chain molecules