数列{an}的前n项和为Sn,已知log2(Sn+2)=n+1