Pattern and symmetry – with a touch of surprise – may be the mathematical formula for what we find beautiful.