Sequence: 3,6,11,18,27,38. What is the nth term

Sequence: 3,6,11,18,27,38. What is the nth term

a2-a1=3
a3-a2=5
a4-a3=7
……
an--a(n-1)=2n-1
Add
an-a1=3+5+…… +(2n-1)=(3+2n-1)(n-1)/2=n²-1
a1=3
an=n²+2