We look at the division of 512417 by 18 
We're looking to find how many times 18 goes into 512417.

On to step 1:
If we divide 5 by 18, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 18

Moving on to step 2:
When dividing 51 by 18, we get 2 with a remainder of 15.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 36 from 51, we get 15.
Grab the next digit (2) from the dividend, add it to 15, then carry on: 152 / 18

Going ahead to step 3:
18 can be fit into 152 8 times, resulting in a remainder of 8.
The next digit of our result is 8. 
Result so far: 28.0
The remainder is 8 after subtracting 144 from 152.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 18

Advancing to step 4:
If we divide 84 by 18, we get 4 and a remainder of 12.
The next digit of our result is 4. 
Result so far: 284.0
If we take 72 away from 84, we end up with 12.
Fetch the next digit (1) from the dividend, attach it to 12 and continue: 121 / 18

Going ahead to step 5:
18 can be fit into 121 6 times, resulting in a remainder of 13.
The next digit of our result is 6. 
Result so far: 2846.0
If we take 108 away from 121, we end up with 13.
Bring next digit (7) of the dividend behind the 13 and repeat the process: 137 / 18

Going ahead to step 6:
18 goes into 137 7 times with a remainder of 11.
The number 7 becomes the next digit in our result. 
Result so far: 28467.0
If we take 126 away from 137, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 7:
18 goes into 110 6 times with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 28467.6
Subtracting 108 from 110 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 8:
If we divide 20 by 18, we get 1 and a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 28467.61
If we subtract 18 from 20, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 9:
18 can be fit into 20 1 times, resulting in a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 28467.611
Subtract 18 from 20 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

After the division, we end up with 28467.611 and a remainder of 0.0002.