Quadratic function with integral coefficient