507317 ÷ 18 
We want to divide 507317 by 18.

Advancing to step 1:
5 divided by 18 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 18

Moving on to step 2:
The number 18 fits into 50 2 times, leaving a remainder of 14.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 36 from 50 leaves us with 14.
Take the next digit (7) from the dividend and append it to 14, then repeat: 147 / 18

On to step 3:
When dividing 147 by 18, we get 8 with a remainder of 3.
The number 8 becomes the next digit in our result. 
Result so far: 28.0
The remainder is 3 after subtracting 144 from 147.
Include the next digit (3) from the dividend after 3, then repeat: 33 / 18

Let's proceed to step 4:
If we divide 33 by 18, we get 1 and a remainder of 15.
Write down 1 as next digit of the result. 
Result so far: 281.0
Deduct 18 from 33 and we're left with 15.
Grab the next digit (1) from the dividend, add it to 15, then carry on: 151 / 18

Advancing to step 5:
151 divided by 18 is 8 with a remainder of 7.
Write down 8 as next digit of the result. 
Result so far: 2818.0
If we subtract 144 from 151, we get 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 18

Moving on to step 6:
If we divide 77 by 18, we get 4 and a remainder of 5.
The next digit of our result is 4. 
Result so far: 28184.0
Subtracting 72 from 77 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 7:
18 goes into 50 2 times with a remainder of 14.
The next digit of our result is 2. 
Result so far: 28184.2
Subtracting 36 from 50 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 8:
The number 18 fits into 140 7 times, leaving a remainder of 14.
Put 7 as the next digit of the answer. 
Result so far: 28184.27
The remainder is 14 after subtracting 126 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 9:
The number 18 fits into 140 7 times, leaving a remainder of 14.
The number 7 becomes the next digit in our result. 
Result so far: 28184.277
If we subtract 126 from 140, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

In conclusion, the division gives 28184.277 with a balance of 0.0014.