507164 divided by 30 
Let's see how many times 30 fits into 507164.

Step 1:
30 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 30

Moving on to step 2:
30 goes into 50 1 times with a remainder of 20.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 30 from 50 leaves us with 20.
Fetch the next digit (7) from the dividend, attach it to 20 and continue: 207 / 30

Step 3:
If we divide 207 by 30, we get 6 and a remainder of 27.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
If we subtract 180 from 207, we get 27.
Append the next digit (1) from the dividend to 27 and continue with: 271 / 30

Step 4:
271 divided by 30 is 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 169.0
If we subtract 270 from 271, we get 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 30

Going ahead to step 5:
30 goes into 16 0 times with a remainder of 16.
Write down 0 as next digit of the result. 
Result so far: 1690.0
Deduct 0 from 16 and we're left with 16.
Grab the next digit (4) from the dividend, add it to 16, then carry on: 164 / 30

Step 6:
30 can be fit into 164 5 times, resulting in a remainder of 14.
Put 5 as the next digit of the answer. 
Result so far: 16905.0
If we subtract 150 from 164, 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.

Moving on to step 7:
140 divided by 30 is 4 with a remainder of 20.
The number 4 becomes the next digit in our result. 
Result so far: 16905.4
Subtract 120 from 140 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 8:
The number 30 fits into 200 6 times, leaving a remainder of 20.
Write down 6 as next digit of the result. 
Result so far: 16905.46
The remainder is 20 after subtracting 180 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 9:
30 goes into 200 6 times with a remainder of 20.
Record the quotient 6 as the next digit in the result. 
Result so far: 16905.466
Subtract 180 from 200 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final outcome is 16905.466, with a leftover of 0.002.