a=b+kp^n