an+1(x)=n+1p=0min(n,K-1)(p+1)xp+1an-p(x),