The nth term of a sequence of numbers is an and given by the formula an=an−1+2n for n≥2 and a1=1. Using the above information Sn is