Discrete dynamics in nature and society