The mathematician and author sees mathematical patterns everywhere — from DNA to fireflies to social connections.