quadratic sequences homework how solve case study