(p-1)sn=p^2-an,sn为前n项和,p>0,数列bn满足bn=2logp(an),求an