Patterns, Equations, and Graphs