Sum of first n terms of an arithmetic sequence is 3n2+n.
Let a1 denotes first term of the sequence,
a2 denotes second term of the sequence,
d denotes common difference of the sequence,
Sn denotes sum of first n terms of the sequence.
Sn=3n2+n
S1=a1=3(1)2+1=4
S2=a1+a2=3(2)2+2=14
∴a1+a2=14
∴a1+a1+d=14
∴2a1+d=14
∴2(4)+d=14
∴d=6
First term of the sequence is 4 and common difference is 6.