Tara's mod works for all cases including n mod 0 (it returns an empty
BigNumber object and a simple print line).