数列{an}的前n项和Sn满足log(Sn+1)=n+1,则an=?,