ak=pki^bki
S(ak)=(bk1+1)(bk2+1)...(bki+1)=2ak+1i^bk+1i