Finding the Nth Term of Quadratic Sequences