Problem Divide two integers without using multiplication, division and mod operator. Solution Long division in binary Wikipedia