Let's divide 504997 by 30
Let's see how many times 30 fits into 504997.

Moving on to step 1:
If we divide 5 by 30, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 30

Advancing to step 2:
The number 30 fits into 50 1 times, leaving a remainder of 20.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 30 from 50, we get 20.
Grab the next digit (4) from the dividend, add it to 20, then carry on: 204 / 30

Let's proceed to step 3:
204 divided by 30 is 6 with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we subtract 180 from 204, we get 24.
Bring next digit (9) of the dividend behind the 24 and repeat the process: 249 / 30

Let's proceed to step 4:
The number 30 fits into 249 8 times, leaving a remainder of 9.
Put 8 as the next digit of the answer. 
Result so far: 168.0
If we take 240 away from 249, we end up with 9.
Grab the next digit (9) from the dividend, add it to 9, then carry on: 99 / 30

On to step 5:
If we divide 99 by 30, we get 3 and a remainder of 9.
The next digit of our result is 3. 
Result so far: 1683.0
Deduct 90 from 99 and we're left with 9.
Fetch the next digit (7) from the dividend, attach it to 9 and continue: 97 / 30

Step 6:
30 can be fit into 97 3 times, resulting in a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 16833.0
Deduct 90 from 97 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
If we divide 70 by 30, we get 2 and a remainder of 10.
Write down 2 as next digit of the result. 
Result so far: 16833.2
Subtracting 60 from 70 leaves us 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.

Let's proceed to step 8:
When dividing 100 by 30, we get 3 with a remainder of 10.
Use 3 as the next digit of our solution. 
Result so far: 16833.23
Subtracting 90 from 100 leaves us 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.

Moving on to step 9:
If we divide 100 by 30, we get 3 and a remainder of 10.
Record the quotient 3 as the next digit in the result. 
Result so far: 16833.233
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.

The final result is 16833.233 with a remainder of 0.001.