已知数列{an}满足a1=t,an+1-an+2=0(t∈N*,n∈N*),记数列{an}的前n项和的最大值为f(t),