Let a,b be the roots of the quadratic equation x2+px+1=0, where p2=1. If k is a positive integer, then k∑n=1(a2n+b2n) is