[math-fun] invertible nearly-linear integer functions