worked over division algorithm succint version