In BigIntnote the operation /%that supplies the pair with division and reminder (see API ). Pay attention, for example,
scala> BigInt(3) /% BigInt(2)
(scala.math.BigInt, scala.math.BigInt) = (1,1)
scala> BigInt(3) /% 2
(scala.math.BigInt, scala.math.BigInt) = (1,1)
Int BigInt.