Stable configurations for population and social dynamics