We divide 516478 by 18
We're looking to find how many times 18 goes into 516478.

Moving on to step 1:
5 divided by 18 is 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 18

On to step 2:
51 divided by 18 is 2 with a remainder of 15.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Deduct 36 from 51 and we're left with 15.
Append the next digit (6) from the dividend to 15 and continue with: 156 / 18

On to step 3:
18 can be fit into 156 8 times, resulting in a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 28.0
Subtracting 144 from 156 leaves us with 12.
Grab the next digit (4) from the dividend, add it to 12, then carry on: 124 / 18

Going ahead to step 4:
The number 18 fits into 124 6 times, leaving a remainder of 16.
The next digit of our result is 6. 
Result so far: 286.0
If we take 108 away from 124, we end up with 16.
Fetch the next digit (7) from the dividend, attach it to 16 and continue: 167 / 18

Advancing to step 5:
When dividing 167 by 18, we get 9 with a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 2869.0
Deduct 162 from 167 and we're left with 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 18

On to step 6:
58 divided by 18 is 3 with a remainder of 4.
Write down 3 as next digit of the result. 
Result so far: 28693.0
If we subtract 54 from 58, 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.

Moving on to step 7:
The number 18 fits into 40 2 times, leaving a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 28693.2
Subtracting 36 from 40 leaves us 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.

On to step 8:
The number 18 fits into 40 2 times, leaving a remainder of 4.
The next digit of our result is 2. 
Result so far: 28693.22
Subtract 36 from 40 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.

The quotient of the division is 28693.22, and the remainder is 0.004.