updated int division - no recursion, better format