From Linear Pattern to Equation