∵
S[n] = (1+n)^2+k
S[n-1] = n^2+k
∴
a[n] = S[n] - S[n-1] = 2n+1
a[1] = 3
∵S[1]=a[1]
∴S[1]=4+k=3
∴k=-1