We're dividing 966586 by 18 
Let's see how many times 18 fits into 966586.

Let's proceed to step 1:
18 can be fit into 9 0 times, resulting in a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Grab the next digit (6) from the dividend, add it to 9, then carry on: 96 / 18

Moving on to step 2:
If we divide 96 by 18, we get 5 and a remainder of 6.
Write down 5 as next digit of the result. 
Result so far: 5.0
Deduct 90 from 96 and we're left with 6.
Bring next digit (6) of the dividend behind the 6 and repeat the process: 66 / 18

Advancing to step 3:
The number 18 fits into 66 3 times, leaving a remainder of 12.
Use 3 as the next digit of our solution. 
Result so far: 53.0
Deduct 54 from 66 and we're left with 12.
Append the next digit (5) from the dividend to 12 and continue with: 125 / 18

Going ahead to step 4:
18 goes into 125 6 times with a remainder of 17.
The number 6 becomes the next digit in our result. 
Result so far: 536.0
Deduct 108 from 125 and we're left with 17.
Grab the next digit (8) from the dividend, add it to 17, then carry on: 178 / 18

Let's proceed to step 5:
The number 18 fits into 178 9 times, leaving a remainder of 16.
Write down 9 as next digit of the result. 
Result so far: 5369.0
Subtract 162 from 178 to get 16.
Append the next digit (6) from the dividend to 16 and continue with: 166 / 18

On to step 6:
18 can be fit into 166 9 times, resulting in a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 53699.0
If we subtract 162 from 166, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 7:
18 goes into 40 2 times with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 53699.2
If we take 36 away from 40, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
18 can be fit into 40 2 times, resulting in a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 53699.22
If we take 36 away from 40, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

After the division, we end up with 53699.22 and a remainder of 0.004.