设数列{an}的前n项和为Sn,且对任意正整数n,an+Sn=4096