The mathematics of life and art