已知数列的通项公式是an=n^2+3n-50/(n+1),则n+1是该数列的第几项?