pinv, remainder