S(α,β,n)=ββ-1((n-1)βnα-1+j=1n-1jβ(jα-(j+1)α)).