Given the first n terms of sequence {an} and Sn = N2 + 3N + 1, then the general term formula of sequence {an} is______ .

Given the first n terms of sequence {an} and Sn = N2 + 3N + 1, then the general term formula of sequence {an} is______ .

When n = 1, A1 = S1 = 1 + 3 + 1 = 5; when n ≥ 2, an = sn-sn-1 = N2 + 3N + 1 - [(n-1) 2 + 3 (n-1) + 1] = 2n + 2