Finding Linear and Quadratic Equations in Integer Patterns