 <p>In <code>BigInt</code>, note <code>/%</code> operation which delivers a pair with the division and the reminder (see <a href="http://www.scala-lang.org/api/current/#scala.math.BigInt" rel="nofollow">API</a>). Note for instance</p> <pre><code>scala&gt; BigInt(3) /% BigInt(2) (scala.math.BigInt, scala.math.BigInt) = (1,1) scala&gt; BigInt(3) /% 2 (scala.math.BigInt, scala.math.BigInt) = (1,1) </code></pre> <p>where the second example involves an implicit conversion from <code>Int</code> to <code>BigInt</code>.</p>