We divide 517018 by 9
We're looking to find how many times 9 goes into 517018.

Advancing to step 1:
5 divided by 9 is 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 9

On to step 2:
51 divided by 9 is 5 with a remainder of 6.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtracting 45 from 51 leaves us with 6.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 9

Advancing to step 3:
If we divide 67 by 9, we get 7 and a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 57.0
The remainder is 4 after subtracting 63 from 67.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 9

Advancing to step 4:
The number 9 fits into 40 4 times, leaving a remainder of 4.
Use 4 as the next digit of our solution. 
Result so far: 574.0
If we subtract 36 from 40, we get 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 9

Step 5:
The number 9 fits into 41 4 times, leaving a remainder of 5.
Use 4 as the next digit of our solution. 
Result so far: 5744.0
If we take 36 away from 41, we end up with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 9

On to step 6:
58 divided by 9 is 6 with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 57446.0
Subtract 54 from 58 to 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.

Moving on to step 7:
9 can be fit into 40 4 times, resulting in a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 57446.4
The remainder is 4 after subtracting 36 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 8:
40 divided by 9 is 4 with a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 57446.44
Deduct 36 from 40 and we're left 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.

The final result is 57446.44 with a remainder of 0.004.