language changes: std::num::div_rem is deprecated (sadly).