We're dividing 506140 by 30 
Our goal is to divide 506140 by 30.

Let's proceed to step 1:
30 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 30

Going ahead to step 2:
30 goes into 50 1 times with a remainder of 20.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 30 from 50 and we're left with 20.
Grab the next digit (6) from the dividend, add it to 20, then carry on: 206 / 30

Going ahead to step 3:
The number 30 fits into 206 6 times, leaving a remainder of 26.
Write down 6 as next digit of the result. 
Result so far: 16.0
Subtracting 180 from 206 leaves us with 26.
Bring next digit (1) of the dividend behind the 26 and repeat the process: 261 / 30

Going ahead to step 4:
The number 30 fits into 261 8 times, leaving a remainder of 21.
Record the quotient 8 as the next digit in the result. 
Result so far: 168.0
If we subtract 240 from 261, we get 21.
Append the next digit (4) from the dividend to 21 and continue with: 214 / 30

Moving on to step 5:
214 divided by 30 is 7 with a remainder of 4.
Put 7 as the next digit of the answer. 
Result so far: 1687.0
If we take 210 away from 214, we end up with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 30

Let's proceed to step 6:
40 divided by 30 is 1 with a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 16871.0
Subtract 30 from 40 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 7:
30 can be fit into 100 3 times, resulting in a remainder of 10.
Record the quotient 3 as the next digit in the result. 
Result so far: 16871.3
If we subtract 90 from 100, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
The number 30 fits into 100 3 times, leaving a remainder of 10.
Put 3 as the next digit of the answer. 
Result so far: 16871.33
Deduct 90 from 100 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final outcome is 16871.33, with a leftover of 0.01.