Given that the sum of the first n terms of the sequence {an} is Sn = n2-2n + 3, then the general term formula of the sequence is______ .

Given that the sum of the first n terms of the sequence {an} is Sn = n2-2n + 3, then the general term formula of the sequence is______ .

∵ Sn = n2-2n + 3, A1 = 2, ∵ an = sn-sn-1 = n2-2n + 3 - [(n-1) 2-2 (n-1) + 3] = 2n-3 (n > 1), ∵ when n = 1, A1 = - 1 ≠ 2, ∵ an = 2, n = 12n − 3, n > 1